public interface BrowserNodeHandlerBuilder<N>
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);
Modifier and Type | Interface and Description |
---|---|
static interface |
BrowserNodeHandlerBuilder.DragContext
Interface providing access to drag context.
|
static interface |
BrowserNodeHandlerBuilder.DragListener<N>
A drag listener receiving information on drag events.
|
static interface |
BrowserNodeHandlerBuilder.DropHandler<N>
A drop handler receiving information on drop events.
|
static interface |
BrowserNodeHandlerBuilder.ElementDecorator<N>
Decorator for registered elements.
|
static class |
BrowserNodeHandlerBuilder.SelectionMode
Selection mode for the registered nodes
|
Modifier and Type | Method and Description |
---|---|
void |
addDropHandler(BrowserNodeHandlerBuilder.DropHandler<N> handler,
Collection<TransferType<?>> types)
Registers a handler receiving all transfer type-mapped commodities.
|
void |
addDropHandler(BrowserNodeHandlerBuilder.DropHandler<N> handler,
TransferType<?>... types)
Registers a handler receiving all transfer type-mapped commodities.
|
BrowserNodeHandler<N> |
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 |
setDragListener(BrowserNodeHandlerBuilder.DragListener<N> listener)
Sets a
BrowserNodeHandlerBuilder.DragListener receiving drag events on a node. |
void |
setElementDecorator(BrowserNodeHandlerBuilder.ElementDecorator<N> decorator)
Sets
BrowserNodeHandlerBuilder.ElementDecorator implementation that should be used for decoration of registered elements. |
void |
setSelectionMode(BrowserNodeHandlerBuilder.SelectionMode mode)
Sets selection mode that should be used.
|
void setSelectionMode(BrowserNodeHandlerBuilder.SelectionMode mode)
mode
- selection modevoid setElementDecorator(BrowserNodeHandlerBuilder.ElementDecorator<N> decorator)
BrowserNodeHandlerBuilder.ElementDecorator
implementation that should be used for decoration of registered elements.decorator
- used for decoration of registered elementsvoid setActionProvider(BrowserNodeActionProvider<N> provider)
provider
- The provider to be set.void setDragListener(BrowserNodeHandlerBuilder.DragListener<N> listener)
BrowserNodeHandlerBuilder.DragListener
receiving drag events on a node.listener
- The listener to be set.void addDropHandler(@NotNull BrowserNodeHandlerBuilder.DropHandler<N> handler, @NotNull TransferType<?>... types)
handler
- The handler to be registered.types
- The transfer types to be handled by the given handler.void addDropHandler(@NotNull BrowserNodeHandlerBuilder.DropHandler<N> handler, @NotNull Collection<TransferType<?>> types)
handler
- The handler to be registered.types
- The transfer types to be handled by the given handler.BrowserNodeHandler<N> bind()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500