Interface BrowserNodeHandlerBuilder.ElementDecorator<N>
- Type Parameters:
N
- the type of node
- Enclosing interface:
- BrowserNodeHandlerBuilder<N>
public static interface BrowserNodeHandlerBuilder.ElementDecorator<N>
Decorator for registered elements.
- Since:
- 4.2.426
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRegister
(Element element, N node) Method will be called on registration of node inBrowserNodeHandler.register(Element,Object)
.void
Method will be called on selection change (when selection mode is notBrowserNodeHandlerBuilder.SelectionMode.NONE
).void
onUnregister
(Element element, N node) Method will be called on unregistration of node inBrowserNodeHandler.unregister(Object)
.
-
Method Details
-
onRegister
Method will be called on registration of node inBrowserNodeHandler.register(Element,Object)
. Implementation can for example visually decorate element and/or setup mouseover effects.- Parameters:
element
- related element of registered nodenode
- registered node- Since:
- 4.2.426
-
onUnregister
Method will be called on unregistration of node inBrowserNodeHandler.unregister(Object)
. Implementation should remove previous decoration applied inonRegister(Element,Object)
.- Parameters:
element
- related element of unregistered nodenode
- unregistered node- Since:
- 4.2.426
-
onSelect
Method will be called on selection change (when selection mode is notBrowserNodeHandlerBuilder.SelectionMode.NONE
).- Parameters:
element
- related element of registered nodenode
- registered nodeselected
- specified is now selected or not and should be decorated- Since:
- 4.2.426
-