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 Details

    • onRegister

      void onRegister(Element element, N node)
      Method will be called on registration of node in BrowserNodeHandler.register(Element,Object). Implementation can for example visually decorate element and/or setup mouseover effects.
      Parameters:
      element - related element of registered node
      node - registered node
      Since:
      4.2.426
    • onUnregister

      void onUnregister(Element element, N node)
      Method will be called on unregistration of node in BrowserNodeHandler.unregister(Object). Implementation should remove previous decoration applied in onRegister(Element,Object).
      Parameters:
      element - related element of unregistered node
      node - unregistered node
      Since:
      4.2.426
    • onSelect

      void onSelect(Element element, N node, boolean selected)
      Method will be called on selection change (when selection mode is not BrowserNodeHandlerBuilder.SelectionMode.NONE).
      Parameters:
      element - related element of registered node
      node - registered node
      selected - specified is now selected or not and should be decorated
      Since:
      4.2.426