Inherits java::beans::PropertyChangeListener.
List of all members.
Detailed Description
A helper class to listen to workspace switches. It listens to the Workspace changes and notifies the appropriate xxEntered and xxExited methods . The user has to write a sub-class that overrides the methods s/he is interested in. For instance, if a program wants to be informed any time a workspace is exited, s/he will override the method workspaceExited(). Or, as another example, if a window wants to be informed whenever its own Workspace is entered, it will use the constructor WorkspaceSwitchListenerSupport(Workspace) and override the method myWorkspaceEntered().
- Author:
- Vito Baggiolini
- Version:
- Revision:
- 1.2
- Date:
- 2006/09/25 08:52:36
Constructor & Destructor Documentation
cern.gp.windows.WorkspaceSwitchListenerSupport.WorkspaceSwitchListenerSupport |
( |
|
) |
[protected] |
constructor to be used if you want to be informed about which workspace is being entered. This constructor will only invoke the methods workspaceEntered/Exited
cern.gp.windows.WorkspaceSwitchListenerSupport.WorkspaceSwitchListenerSupport |
( |
Workspace |
myWorkspace, |
|
|
boolean |
mineOnly | |
|
) |
| | [protected] |
constructor to be used if you want to be informed about a specific workspace. if this constructor is used and mineOnly==false all four Entered/Exited methods will be called; if mineOnly == true, only myWorkspaceEntered/Exited will be called
- Parameters:
-
| myWorkspace | the workspace for which entering and exiting is monitored |
| whether | only my workspace shall be monitored, if true, the methodsworkspaceEntered/Exited will not be invoked. |
References cern.gp.windows.WorkspaceSwitchListenerSupport.startListening().
Member Function Documentation
void cern.gp.windows.WorkspaceSwitchListenerSupport.myWorkspaceEntered |
( |
|
) |
[protected] |
void cern.gp.windows.WorkspaceSwitchListenerSupport.myWorkspaceExited |
( |
|
) |
[protected] |
void cern.gp.windows.WorkspaceSwitchListenerSupport.propertyChange |
( |
PropertyChangeEvent |
pce |
) |
|
void cern.gp.windows.WorkspaceSwitchListenerSupport.startListening |
( |
|
) |
|
void cern.gp.windows.WorkspaceSwitchListenerSupport.stopListening |
( |
|
) |
|
tell the workspace listener to stop listening. This method is thread safe with regards to its counterpart You don't have to call this in the end, as we use a weaklistener
- See also:
- startListening
void cern.gp.windows.WorkspaceSwitchListenerSupport.workspaceEntered |
( |
Workspace |
ws |
) |
[protected] |
void cern.gp.windows.WorkspaceSwitchListenerSupport.workspaceExited |
( |
Workspace |
ws |
) |
[protected] |
The documentation for this class was generated from the following file: