|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.property.hilite.HiLiteManager
public final class HiLiteManager
A manager for hilite events between one source (from) HiLiteHandler
and a number of target handlers (to). This class provides one source hilite
handler instantiated within the constructor. The target hilite handlers can
be added individually.
This class hosts two listeners one which is registered with the source handler and one which is registered with all target handlers. These listeners are called when something changes either on the source (from) or target side (to), and then invoke the corresponding handlers on the other side to hilite, unhilite, and clear hilite.
Constructor Summary | |
---|---|
HiLiteManager()
Creates a new manager. |
Method Summary | |
---|---|
void |
addToHiLiteHandler(HiLiteHandler targetHandler)
Adds a new target HiLiteHandler to the list of registered
hilite handlers and adds the private target listener if the list of hilit
keys is empty. |
HiLiteHandler |
getFromHiLiteHandler()
The source hilite handler. |
Set<HiLiteHandler> |
getToHiLiteHandlers()
An unmodifiable set of target hilite handlers. |
void |
removeAllToHiliteHandlers()
Removes all target hilite handlers from this translator. |
void |
removeToHiLiteHandler(HiLiteHandler targetHandler)
Removes the given target HiLiteHandler from the list of
registered hilite handlers and removes the private target listener from
if the list of hilit keys is empty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiLiteManager()
Method Detail |
---|
public void removeToHiLiteHandler(HiLiteHandler targetHandler)
HiLiteHandler
from the list of
registered hilite handlers and removes the private target listener from
if the list of hilit keys is empty.
targetHandler
- the target hilite handler to removepublic void addToHiLiteHandler(HiLiteHandler targetHandler)
HiLiteHandler
to the list of registered
hilite handlers and adds the private target listener if the list of hilit
keys is empty.
targetHandler
- the target hilite handler to addpublic Set<HiLiteHandler> getToHiLiteHandlers()
public void removeAllToHiliteHandlers()
public HiLiteHandler getFromHiLiteHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |