|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocap.environment.Environment
public abstract class Environment
Represents an environment that provides the context in which applications run.
NOTE: Applicable events announcing such changes are generated as expected. For example, org.dvb.application.AppStateChangeEvents announcing that applications have been paused or terminated; and java.awt.event.ComponentEvents announcing that an HScene has been hidden.
Constructor Summary | |
---|---|
protected |
Environment()
Constructor for environments. |
Method Summary | |
---|---|
void |
addEnvironmentListener(EnvironmentListener l)
Add a listener for environment events. |
void |
deselect()
Request this environment cease being selected. |
static Environment |
getHome()
Return the calling applications home environment |
EnvironmentState |
getState()
Queries the state of this environment. |
void |
removeEnvironmentListener(EnvironmentListener l)
Remove a listener for environment events. |
void |
select()
Request this environment become selected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Environment()
Method Detail |
---|
public static Environment getHome()
public void addEnvironmentListener(EnvironmentListener l)
l
- the listener to addpublic void removeEnvironmentListener(EnvironmentListener l)
l
- the listener to removepublic EnvironmentState getState()
public void select()
This request SHALL be unconditionally granted except under the following circumstances.
java.lang.IllegalStateException
- if a state change is
already in progress for this environment or
if the request fails for one of the circumstances defined above
java.lang.SecurityException
- if and only if the calling application
does not have MonitorAppPermission("environment.selection")
public void deselect()
NOTE It is implementation dependent which environment becomes selected when this call is used.
java.lang.SecurityException
- if and only if the calling application
does not have MonitorAppPermission("environment.selection")
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |