public static interface BrowserNodeHandlerBuilder.ElementDecorator<N>
Modifier and Type | Method and Description |
---|---|
void |
onRegister(Element element,
N node)
Method will be called on registration of node in
BrowserNodeHandler.register(Element,Object) . |
void |
onSelect(Element element,
N node,
boolean selected)
Method will be called on selection change (when selection mode is not
BrowserNodeHandlerBuilder.SelectionMode.NONE ). |
void |
onUnregister(Element element,
N node)
Method will be called on unregistration of node in
BrowserNodeHandler.unregister(Object) . |
void onRegister(Element element, N node)
BrowserNodeHandler.register(Element,Object)
. Implementation can for example visually decorate element and/or
setup mouseover effects.element
- related element of registered nodenode
- registered nodevoid onUnregister(Element element, N node)
BrowserNodeHandler.unregister(Object)
. Implementation should remove previous decoration applied in onRegister(Element,Object)
.element
- related element of unregistered nodenode
- unregistered nodevoid onSelect(Element element, N node, boolean selected)
BrowserNodeHandlerBuilder.SelectionMode.NONE
).element
- related element of registered nodenode
- registered nodeselected
- specified is now selected or not and should be decoratedCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500