|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.intern.CListenerCollection
public class CListenerCollection
A collection of the listeners which are normally added to a CDockable
.
This class can be used by subclasses of CDockable
to easily store
listeners and fire events.
Constructor Summary | |
---|---|
CListenerCollection()
|
Method Summary | |
---|---|
void |
addCDockableLocationListener(CDockableLocationListener listener)
Stores an additional CDockableLocationListener in this collection. |
void |
addCDockablePropertyListener(CDockablePropertyListener listener)
Stores an additional CDockablePropertyListener in this collection. |
void |
addCDockableStateListener(CDockableStateListener listener)
Stores an additional CDockableStateListener in this collection. |
void |
addDoubleClickListener(CDoubleClickListener listener)
Stores an additional CDoubleClickListener in this collection. |
void |
addFocusListener(CFocusListener listener)
Adds a CFocusListener to this collection. |
void |
addKeyboardListener(CKeyboardListener listener)
Stores an additional CKeyboardListener in this collection. |
void |
addVetoClosingListener(CVetoClosingListener listener)
Stores an additional CVetoClosingListener in this collection. |
void |
addVetoFocusListener(CVetoFocusListener listener)
Adds a listener to this collection. |
CDockableLocationListener |
getCDockableLocationListener()
Gets a CDockableLocationListener which forwards all calls to its
methods to the listeners registered at this collection. |
CDockableLocationListener[] |
getCDockableLocationListeners()
Gets all currently registered CDockableLocationListener s collected
in an array. |
CDockablePropertyListener |
getCDockablePropertyListener()
Gets a CDockablePropertyListener which forwards all calls to its
methods to the listeners registered at this collection. |
CDockablePropertyListener[] |
getCDockablePropertyListeners()
Gets all currently registered CDockableStateListener s collected
in an array. |
CDockableStateListener |
getCDockableStateListener()
Gets a CDockableStateListener which forwards all calls to its
methods to the listeners registered at this collection. |
CDockableStateListener[] |
getCDockableStateListeners()
Gets all currently registered CDockableStateListener s collected
in an array. |
CDoubleClickListener |
getDoubleClickListener()
Gets a CDoubleClickListener which forwards all calls to its
methods to the listener registered at this collection. |
CDoubleClickListener[] |
getDoubleClickListeners()
Gets all currently registered CDoubleClickListener s collected
in an array. |
CFocusListener |
getFocusListener()
Gets a CFocusListener which forwards all calls to its
methods to the listener registered at this collection. |
CFocusListener[] |
getFocusListeners()
Gets all currently registered CFocusListener s collected in
an array. |
CKeyboardListener |
getKeyboardListener()
Gets a CKeyboardListener which forwards all calls to its
methods to the listener registered at this collection. |
CKeyboardListener[] |
getKeyboardListeners()
Gets all currently registered CKeyboardListener s collected
in an array. |
CVetoClosingListener |
getVetoClosingListener()
Gets a CVetoClosingListener that forwards all events to the other
registered listeners. |
CVetoClosingListener[] |
getVetoClosingListeners()
Gets all currently registered CVetoClosingListener s collected
in an array. |
CVetoFocusListener |
getVetoFocusListener()
Gets a CVetoFocusListener which forwards all calls to
its methods to the listeners registered in this collection. |
CVetoFocusListener[] |
getVetoFocusListeners()
Gets all the CVetoFocusListener that are collected in
this collection. |
boolean |
hasCDockableLocationListeners()
Tells whether at least one CDockableStateListener is currently
registered. |
boolean |
hasVetoClosingListeners()
Tells whether there is at least one CVetoClosingListener registered in
this collection. |
void |
removeCDockableLocationListener(CDockableLocationListener listener)
Removes a listener from this collection |
void |
removeCDockablePropertyListener(CDockablePropertyListener listener)
Removes a listener from this collection. |
void |
removeCDockableStateListener(CDockableStateListener listener)
Removes a listener from this collection |
void |
removeDoubleClickListener(CDoubleClickListener listener)
Removes a listener from this collection. |
void |
removeFocusListener(CFocusListener listener)
Removes a listener from this collection. |
void |
removeKeyboardListener(CKeyboardListener listener)
Removes a listener from this collection. |
void |
removeVetoClosingListener(CVetoClosingListener listener)
Removes listener from this collection. |
void |
removeVetoFocusListener(CVetoFocusListener listener)
Removes a listener from this collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CListenerCollection()
Method Detail |
---|
public void addCDockableStateListener(CDockableStateListener listener)
CDockableStateListener
in this collection.
listener
- the additional listenerpublic void removeCDockableStateListener(CDockableStateListener listener)
listener
- the listener to removepublic CDockableStateListener[] getCDockableStateListeners()
CDockableStateListener
s collected
in an array. Modifications of the array will not modify this collection.
public CDockableLocationListener getCDockableLocationListener()
CDockableLocationListener
which forwards all calls to its
methods to the listeners registered at this collection.
public boolean hasCDockableLocationListeners()
CDockableStateListener
is currently
registered.
true
if there is at least one listenerpublic void addCDockableLocationListener(CDockableLocationListener listener)
CDockableLocationListener
in this collection.
listener
- the additional listenerpublic void removeCDockableLocationListener(CDockableLocationListener listener)
listener
- the listener to removepublic CDockableLocationListener[] getCDockableLocationListeners()
CDockableLocationListener
s collected
in an array. Modifications of the array will not modify this collection.
public CDockableStateListener getCDockableStateListener()
CDockableStateListener
which forwards all calls to its
methods to the listeners registered at this collection.
public void addCDockablePropertyListener(CDockablePropertyListener listener)
CDockablePropertyListener
in this collection.
listener
- the additional listenerpublic void removeCDockablePropertyListener(CDockablePropertyListener listener)
listener
- the listener to removepublic CDockablePropertyListener[] getCDockablePropertyListeners()
CDockableStateListener
s collected
in an array. Modifications of the array will not modify this collection.
public CDockablePropertyListener getCDockablePropertyListener()
CDockablePropertyListener
which forwards all calls to its
methods to the listeners registered at this collection.
public void addFocusListener(CFocusListener listener)
CFocusListener
to this collection.
listener
- the new listenerpublic void removeFocusListener(CFocusListener listener)
listener
- the listener to removepublic CFocusListener[] getFocusListeners()
CFocusListener
s collected in
an array. Modifications of the array will not modify this collection.
public CFocusListener getFocusListener()
CFocusListener
which forwards all calls to its
methods to the listener registered at this collection.
public void addVetoFocusListener(CVetoFocusListener listener)
listener
- the additional listenerpublic void removeVetoFocusListener(CVetoFocusListener listener)
listener
- the listener to removepublic CVetoFocusListener[] getVetoFocusListeners()
CVetoFocusListener
that are collected in
this collection.
public CVetoFocusListener getVetoFocusListener()
CVetoFocusListener
which forwards all calls to
its methods to the listeners registered in this collection.
public void addKeyboardListener(CKeyboardListener listener)
CKeyboardListener
in this collection.
listener
- the new listenerpublic void removeKeyboardListener(CKeyboardListener listener)
listener
- the listener to removepublic CKeyboardListener[] getKeyboardListeners()
CKeyboardListener
s collected
in an array. Modifications of the array will not modify this collection.
public CKeyboardListener getKeyboardListener()
CKeyboardListener
which forwards all calls to its
methods to the listener registered at this collection.
public void addDoubleClickListener(CDoubleClickListener listener)
CDoubleClickListener
in this collection.
listener
- the additional listenerpublic void removeDoubleClickListener(CDoubleClickListener listener)
listener
- the listener to removepublic CDoubleClickListener[] getDoubleClickListeners()
CDoubleClickListener
s collected
in an array. Modifications of the array will not modify this collection.
public CDoubleClickListener getDoubleClickListener()
CDoubleClickListener
which forwards all calls to its
methods to the listener registered at this collection.
public CVetoClosingListener getVetoClosingListener()
CVetoClosingListener
that forwards all events to the other
registered listeners.
public void addVetoClosingListener(CVetoClosingListener listener)
CVetoClosingListener
in this collection.
listener
- the new listenerpublic void removeVetoClosingListener(CVetoClosingListener listener)
listener
from this collection.
listener
- the listener to removepublic boolean hasVetoClosingListeners()
CVetoClosingListener
registered in
this collection.
public CVetoClosingListener[] getVetoClosingListeners()
CVetoClosingListener
s collected
in an array. Modifications of the array will not modify this collection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |