Public Member Functions | |
void | stopListening () |
void | startListening () |
void | propertyChange (PropertyChangeEvent pce) |
Protected Member Functions | |
WorkspaceSwitchListenerSupport () | |
WorkspaceSwitchListenerSupport (Workspace myWorkspace, boolean mineOnly) | |
void | workspaceEntered (Workspace ws) |
void | workspaceExited (Workspace ws) |
void | myWorkspaceEntered () |
void | myWorkspaceExited () |
Private Attributes | |
final Workspace | myWorkspace |
final boolean | mineOnly |
boolean | listening |
final Object | listeningLock = new Object() |
|
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 |
|
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
|
|
Reimplemented in cern::gp::windows::test::TestWorkspaceSwitchListenerSupport.
|
|
Reimplemented in cern::gp::windows::test::TestWorkspaceSwitchListenerSupport.
|
|
|
|
tell this object to start listening again. This method is called in the constructor. It is not necessary (but not harmful either) to call this menthod again even if we are already listening. Precautions are taken to avoid adding a second listener. This method is thread safe with regards to its counterpart
|
|
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
|
|
Reimplemented in cern::gp::windows::test::TestWorkspaceSwitchListenerSupport.
|
|
Reimplemented in cern::gp::windows::test::TestWorkspaceSwitchListenerSupport.
|
|
|
|
|
|
|
|
|