Interface BrowserNodeHandlerBuilder<N>
- Type Parameters:
N
- Type of document nodes handled.
public interface BrowserNodeHandlerBuilder<N>
Builder for creating and binding a
BrowserNodeHandler
.
Usage:
final BrowserApplication application; final BrowserNodeHandlerBuilder builder = application.createNodeHandlerBuilder(); builder.setElementDecorator(myDecorator); builder.set... final BrowserNodeHandler handler = builder.bind(); handler.register(Element domNode, N node); handler.register(Element domNode2, N node2);
- Since:
- 4.2.426
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Interface providing access to drag context.static interface
A drag listener receiving information on drag events.static interface
A drop handler receiving information on drop events.static interface
Decorator for registered elements.static enum
Selection mode for the registered nodes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDropHandler
(@NotNull BrowserNodeHandlerBuilder.DropHandler<N> handler, @NotNull TransferType<?>... types) Registers a handler receiving all transfer type-mapped commodities.void
addDropHandler
(@NotNull BrowserNodeHandlerBuilder.DropHandler<N> handler, @NotNull Collection<TransferType<?>> types) Registers a handler receiving all transfer type-mapped commodities.bind()
Creates and binds the configured handler.void
setActionProvider
(BrowserNodeActionProvider<N> provider) Set an action provider serving actions for click and context menu operations.void
Sets aBrowserNodeHandlerBuilder.DragListener
receiving drag events on a node.void
SetsBrowserNodeHandlerBuilder.ElementDecorator
implementation that should be used for decoration of registered elements.void
Sets selection mode that should be used.
-
Method Details
-
setSelectionMode
Sets selection mode that should be used.- Parameters:
mode
- selection mode- Since:
- 4.2.426
-
setElementDecorator
SetsBrowserNodeHandlerBuilder.ElementDecorator
implementation that should be used for decoration of registered elements.- Parameters:
decorator
- used for decoration of registered elements- Since:
- 4.2.426
-
setActionProvider
Set an action provider serving actions for click and context menu operations.- Parameters:
provider
- The provider to be set.- Since:
- 4.2.426
-
setDragListener
Sets aBrowserNodeHandlerBuilder.DragListener
receiving drag events on a node.- Parameters:
listener
- The listener to be set.- Since:
- 4.2.426
-
addDropHandler
void addDropHandler(@NotNull @NotNull BrowserNodeHandlerBuilder.DropHandler<N> handler, @NotNull @NotNull TransferType<?>... types) Registers a handler receiving all transfer type-mapped commodities.- Parameters:
handler
- The handler to be registered.types
- The transfer types to be handled by the given handler.- Since:
- 4.2.426
-
addDropHandler
void addDropHandler(@NotNull @NotNull BrowserNodeHandlerBuilder.DropHandler<N> handler, @NotNull @NotNull Collection<TransferType<?>> types) Registers a handler receiving all transfer type-mapped commodities.- Parameters:
handler
- The handler to be registered.types
- The transfer types to be handled by the given handler.- Since:
- 4.2.426
-
bind
BrowserNodeHandler<N> bind()Creates and binds the configured handler.- Returns:
- The bound handler.
- Since:
- 4.2.426
-