Methods' Details |
terminate
- Description
- tries to terminate the desktop.
First, every terminate listener is called by his XTerminateListener::queryTermination() method.
Throwing of a TerminationVetoException can break the termination process and the listener how has
done that will be the new "controller" of the desktop lifetime. He should try to terminate it by himself after
his own processes will be finished.
If nobody disagree with the termination request, every listener will be called by his
XTerminateListener::notifyTermination() method.
- Returns
- trueif all listener agree with this request
falseotherwise
|
|
addTerminateListener
- Description
- registers an event listener to the desktop, which is called
when the desktop is queried to terminate, and when it really
terminates.
- Parameter Listener
- listener for termination events
|
|
removeTerminateListener
- Description
- unregisters an event listener for termination events.
- Parameter Listener
- listener which wish to be deregistered
|
|
getComponents
- Description
- provides read access to collection of all currently loaded components
inside the frame tree
The component is, by definition, the model of the control which
is loaded into a frame, or if no model exists, into the control
itself.
The service Components which is available from this
method is a collection of all components of the desktop which are open
within a frame of the desktop.
- Returns
- the collection of all components
|
|
getCurrentComponent
- Description
- provides read access to the component inside the tree which has the UI focus
Normally, the component is the model part of the
active component. If no model exists it is the active controller
(view) itself.
- Returns
- the component within the desktop environment which has the UI focus.
|
|
getCurrentFrame
- Description
- provides read access to the frame wich contains the current component
- Returns
- the frame of the component which has the
UI focus within this desktop enviroment
|
|
Copyright © 2010 Sun Microsystems, Inc.