|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.WeakListener
WeakListeners
class.
Nested Class Summary | |
static class |
WeakListener.Change
Deprecated. use appropriate method instead |
static class |
WeakListener.Document
Deprecated. use appropriate method instead |
static class |
WeakListener.FileChange
Deprecated. use appropriate method instead |
static class |
WeakListener.FileStatus
Deprecated. use appropriate method instead |
static class |
WeakListener.Focus
Deprecated. use appropriate method instead |
static class |
WeakListener.Node
Deprecated. use appropriate method instead |
static class |
WeakListener.PropertyChange
Deprecated. use appropriate method instead |
static class |
WeakListener.Repository
Deprecated. use appropriate method instead |
static class |
WeakListener.VetoableChange
Deprecated. use appropriate method instead |
Constructor Summary | |
protected |
WeakListener(Class listenerClass,
EventListener l)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected WeakListener(Class listenerClass, EventListener l)
listenerClass
- class/interface of the listenerl
- listener to delegate to, l
must be an instance of
listenerClassMethod Detail |
protected final void setSource(Object source)
source
- is any Object or null
, though only setting an object
that has an appropriate remove*listenerClass*Listener method and on which this listener is listening on,
is useful.protected abstract String removeMethodName()
protected final EventListener get(EventObject ev)
ev
- the event the we want to distribute
public String toString()
public static NodeListener node(NodeListener l, Object source)
NodeOp.weakNodeListener(org.openide.nodes.NodeListener, java.lang.Object)
or WeakListeners.create(java.lang.Class, java.util.EventListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static PropertyChangeListener propertyChange(PropertyChangeListener l, Object source)
WeakListeners.propertyChange(java.beans.PropertyChangeListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static VetoableChangeListener vetoableChange(VetoableChangeListener l, Object source)
WeakListeners.vetoableChange(java.beans.VetoableChangeListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static FileChangeListener fileChange(FileChangeListener l, Object source)
FileUtil.weakFileChangeListener(org.openide.filesystems.FileChangeListener, java.lang.Object)
or WeakListeners.create(java.lang.Class, java.util.EventListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static FileStatusListener fileStatus(FileStatusListener l, Object source)
FileUtil.weakFileStatusListener(org.openide.filesystems.FileStatusListener, java.lang.Object)
or WeakListeners.create(java.lang.Class, java.util.EventListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static RepositoryListener repository(RepositoryListener l, Object source)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static DocumentListener document(DocumentListener l, Object source)
WeakListeners.document(javax.swing.event.DocumentListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static ChangeListener change(ChangeListener l, Object source)
WeakListeners.change(javax.swing.event.ChangeListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static FocusListener focus(FocusListener l, Object source)
WeakListeners.create(java.lang.Class, java.util.EventListener, java.lang.Object)
l
- the listener to delegate tosource
- the source that the listener should detach from when
listener l
is freed, can be null
l
.public static EventListener create(Class lType, EventListener l, Object source)
WeakListeners.create(java.lang.Class, java.util.EventListener, java.lang.Object)
lType
.
lType
- the type of listener to create. It can be any interface,
but only interfaces are allowed.l
- the listener to delegate to, l
must be an instance
of lType
source
- the source that the listener should detach from when
listener l
is freed, can be null
lType
delegating all the interface
calls to l
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |