|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.property.hilite.HiLiteTranslator
public final class HiLiteTranslator
A translator for hilite events between one source (from)
HiLiteHandler
and a number of target handlers (to). The source hilite
handler is passed through the constructor of this class. The target hilite
handlers can be set independently, as well as the mapping which is defined
between RowKey
row keys and RowKey
sets.
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 or target side, and then invoke the corresponding handlers on the other side to hilite, unhilite, and clear mapped keys.
Constructor Summary | |
---|---|
HiLiteTranslator()
Creates a translator with an empty mapping and a default hilite handler. |
|
HiLiteTranslator(HiLiteHandler handler)
Creates a new translator. |
|
HiLiteTranslator(HiLiteHandler handler,
HiLiteMapper mapper)
Creates a new translator. |
|
HiLiteTranslator(HiLiteMapper mapper)
Creates a new translator. |
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
hilite keys is empty. |
HiLiteHandler |
getFromHiLiteHandler()
The source hilite handler. |
HiLiteMapper |
getMapper()
|
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 hilite keys is empty. |
void |
setMapper(HiLiteMapper mapper)
Sets a new hilite mapper which can be null in case no
hilite translation is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiLiteTranslator()
public HiLiteTranslator(HiLiteHandler handler)
handler
- a given source HiLiteHandler
public HiLiteTranslator(HiLiteMapper mapper)
mapper
- mapping from aggregation to single patternspublic HiLiteTranslator(HiLiteHandler handler, HiLiteMapper mapper)
handler
- a given source HiLiteHandler
mapper
- mapping from aggregation to single patternsMethod Detail |
---|
public void setMapper(HiLiteMapper mapper)
null
in case no
hilite translation is available.
mapper
- the new hilite mapperpublic HiLiteMapper getMapper()
public void removeToHiLiteHandler(HiLiteHandler targetHandler)
HiLiteHandler
from the list of
registered hilite handlers and removes the private target listener from
if the list of hilite 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
hilite 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 |