M
- the model typeT
- the type displayed in the list viewpublic class DualListField<M,T> extends AdapterField<List<M>>
Modifier and Type | Class and Description |
---|---|
static interface |
DualListField.DualListFieldAppearance |
static interface |
DualListField.DualListFieldMessages
The locale-sensitive messages used by this class.
|
static class |
DualListField.Mode
The DND mode enumeration.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
DualListField(ListStore<M> fromStore,
ListStore<M> toStore,
ValueProvider<? super M,T> valueProvider,
Cell<T> cell)
Creates a dual list field that allows selections to be moved between two
list views using buttons or by dragging and dropping selections.
|
DualListField(ListStore<M> fromStore,
ListStore<M> toStore,
ValueProvider<? super M,T> valueProvider,
Cell<T> cell,
DualListField.DualListFieldAppearance appearance)
Creates a dual list field that allows selections to be moved between two
list views using buttons or by dragging and dropping selections.
|
DualListField(ModelKeyProvider<? super M> keyProvider,
ValueProvider<? super M,T> valueProvider,
Cell<T> cell)
Creates a dual list field that allows selections to be moved between two
list views using buttons or by dragging and dropping selections
|
Modifier and Type | Method and Description |
---|---|
IconButton |
getAllLeftButton()
Returns the all left button.
|
IconButton |
getAllRightButton()
Returns the all right button.
|
DualListField.DualListFieldAppearance |
getAppearance() |
String |
getDndGroup()
Returns the DND group name.
|
IconButton |
getDownButton()
Returns the down button.
|
ListViewDragSource<M> |
getDragSourceFromField()
Returns the from field's drag source instance.
|
ListViewDragSource<M> |
getDragSourceToField()
Returns the to field's drag source instance.
|
ListViewDropTarget<M> |
getDropTargetFromField()
Returns the from field's drop target instance.
|
ListViewDropTarget<M> |
getDropTargetToField()
Returns the to field's drop target instance.
|
ListStore<M> |
getFromStore()
Returns the ListStore that manages the source of selectable items.
|
ListView<M,T> |
getFromView()
Returns the list view that provides the source of selectable items.
|
IconButton |
getLeftButton()
Returns the left icon button.
|
DualListField.DualListFieldMessages |
getMessages()
Returns the locale-sensitive messages used by this class.
|
DualListField.Mode |
getMode()
Returns the list field's mode.
|
IconButton |
getRightButton()
Returns the right button.
|
ListStore<M> |
getToStore()
Returns the ListStore that manages the destination for selectable items.
|
ListView<M,T> |
getToView()
Returns the list view that provides the destination for selectable items.
|
IconButton |
getUpButton()
Returns the up button.
|
List<M> |
getValue() |
boolean |
isEnableDnd()
Returns true if drag and drop is enabled.
|
void |
setDndGroup(String group)
Sets the drag and drop group name.
|
void |
setEnableDnd(boolean enableDnd)
True to allow selections to be dragged and dropped between lists (defaults
to true).
|
void |
setMessages(DualListField.DualListFieldMessages messages)
Sets the local-sensitive messages used by this class.
|
void |
setMode(DualListField.Mode mode)
Specifies if selections are either inserted or appended when moving between
lists.
|
void |
setValue(List<M> value) |
addInvalidHandler, addValidator, addValidHandler, addValueChangeHandler, clear, clearInvalid, disable, enable, finishEditing, flush, forceInvalid, getErrors, getErrorSupport, getValidators, isValid, isValid, markInvalid, onPropertyChange, removeValidator, reset, setDelegate, setErrorSupport, showErrors, validate, validate
add, add, getWidget, isResize, setResize, setWidget, setWidget
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize
add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disableEvents, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addBlurHandler
fireEvent
public DualListField(ModelKeyProvider<? super M> keyProvider, ValueProvider<? super M,T> valueProvider, Cell<T> cell)
keyProvider
- the key provider to use to track itemsvalueProvider
- the interface to <M>
cell
- displays the data in the list views (e.g. TextCell
)@UiConstructor public DualListField(ListStore<M> fromStore, ListStore<M> toStore, ValueProvider<? super M,T> valueProvider, Cell<T> cell)
fromStore
- the store containing the base set of itemstoStore
- the store containing the items selected by the uservalueProvider
- the interface to <M>
cell
- displays the data in the list view (e.g. TextCell
)public DualListField(ListStore<M> fromStore, ListStore<M> toStore, ValueProvider<? super M,T> valueProvider, Cell<T> cell, DualListField.DualListFieldAppearance appearance)
fromStore
- the store containing the base set of itemstoStore
- the store containing the items selected by the uservalueProvider
- the interface to <M>
cell
- displays the data in the list view (e.g. TextCell
)appearance
- the appearance instance to use when rendering this widgetpublic DualListField.DualListFieldAppearance getAppearance()
public String getDndGroup()
public ListViewDragSource<M> getDragSourceFromField()
public ListViewDragSource<M> getDragSourceToField()
public ListViewDropTarget<M> getDropTargetFromField()
public ListViewDropTarget<M> getDropTargetToField()
public ListView<M,T> getFromView()
public ListStore<M> getFromStore()
public DualListField.DualListFieldMessages getMessages()
public DualListField.Mode getMode()
public ListView<M,T> getToView()
public ListStore<M> getToStore()
public IconButton getLeftButton()
public IconButton getAllLeftButton()
public IconButton getRightButton()
public IconButton getAllRightButton()
public IconButton getUpButton()
public IconButton getDownButton()
public boolean isEnableDnd()
public void setDndGroup(String group)
group
- the group namepublic void setEnableDnd(boolean enableDnd)
enableDnd
- true to enable drag and droppublic void setMessages(DualListField.DualListFieldMessages messages)
messages
- the locale sensitive messages used by this class.public void setMode(DualListField.Mode mode)
mode
- the modeCopyright © 2015. All rights reserved.