|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.form.Field<D>
com.extjs.gxt.ui.client.widget.form.MultiField<Field<?>>
com.extjs.gxt.ui.client.widget.form.DualListField<D>
D
- the model typepublic class DualListField<D extends ModelData>
Combines two list fields and allows selections to be moved between fields either using buttons or by dragging and dropping selections.
Nested Class Summary | |
---|---|
class |
DualListField.DualListFieldMessages
The dual list field messages. |
static class |
DualListField.Mode
The DND mode enumeration. |
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field |
---|
Field.FieldImages, Field.FieldMessages |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
protected IconButton |
allLeft
|
protected IconButton |
allRight
|
protected AdapterField |
buttonAdapter
|
protected VerticalPanel |
buttonBar
|
protected IconButton |
down
|
protected ListField<D> |
fromField
|
protected IconButton |
left
|
protected DualListField.Mode |
mode
|
protected IconButton |
right
|
protected ListViewDragSource |
sourceFromField
|
protected ListViewDragSource |
sourceToField
|
protected ListViewDropTarget |
targetFromField
|
protected ListViewDropTarget |
targetToField
|
protected ListField<D> |
toField
|
protected IconButton |
up
|
Fields inherited from class com.extjs.gxt.ui.client.widget.form.MultiField |
---|
fields, lc, orientation, spacing, validator |
Fields inherited from class com.extjs.gxt.ui.client.widget.form.Field |
---|
autoValidate, emptyText, errorIcon, fieldStyle, focusStyle, focusValue, forceInvalidText, hasFocus, images, invalidStyle, messages, name, originalValue, preventMark, propertyEditor, readOnly, readOnlyFieldStyle, validationDelay, validationTask, value |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
DualListField()
|
Method Summary | |
---|---|
java.lang.String |
getDNDGroup()
Returns the DND group name. |
ListViewDragSource |
getDragSourceFromField()
Returns the from field's drag source instance. |
ListViewDragSource |
getDragSourceToField()
Returns the to field's drag source instance. |
ListViewDropTarget |
getDropTargetFromField()
Returns the from field's drop target instance. |
ListViewDropTarget |
getDropTargetToField()
Returns the to field's drop target instance. |
ListField<D> |
getFromField()
Returns the from list field. |
ListField<D> |
getFromList()
Returns the from list field. |
DualListField.DualListFieldMessages |
getMessages()
Returns the field's messages. |
DualListField.Mode |
getMode()
Returns the list field's mode. |
ListField<D> |
getToField()
Return the to list field. |
ListField<D> |
getToList()
Returns the to list field. |
protected void |
initButtons()
|
boolean |
isEnableDND()
Returns true if drag and drop is enabled. |
protected void |
onButtonAllLeft(IconButtonEvent be)
|
protected void |
onButtonAllRight(IconButtonEvent be)
|
protected void |
onButtonDown(IconButtonEvent be)
|
protected void |
onButtonLeft(IconButtonEvent be)
|
protected void |
onButtonRight(IconButtonEvent be)
|
protected void |
onButtonUp(IconButtonEvent be)
|
protected void |
onFocus(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
onResize(int width,
int height)
Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs. |
void |
setDNDGroup(java.lang.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 |
setMode(DualListField.Mode mode)
Specifies if selections are either inserted or appended when moving between lists. |
Methods inherited from class com.extjs.gxt.ui.client.widget.form.MultiField |
---|
add, clear, doAttachChildren, doDetachChildren, get, getAll, getInputEl, getOrientation, getSpacing, getValidator, isResizeFields, isValid, notifyHide, notifyShow, onBrowserEvent, onComponentEvent, onDisable, onEnable, reset, setOrientation, setReadOnly, setResizeFields, setSpacing, setValidator, validateValue |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AdapterField buttonAdapter
protected VerticalPanel buttonBar
protected ListField<D extends ModelData> fromField
protected DualListField.Mode mode
protected ListField<D extends ModelData> toField
protected ListViewDragSource sourceFromField
protected ListViewDragSource sourceToField
protected ListViewDropTarget targetFromField
protected ListViewDropTarget targetToField
protected IconButton left
protected IconButton right
protected IconButton allLeft
protected IconButton allRight
protected IconButton up
protected IconButton down
Constructor Detail |
---|
public DualListField()
Method Detail |
---|
public java.lang.String getDNDGroup()
public ListViewDragSource getDragSourceFromField()
public ListViewDragSource getDragSourceToField()
public ListViewDropTarget getDropTargetFromField()
public ListViewDropTarget getDropTargetToField()
public ListField<D> getFromField()
public ListField<D> getFromList()
public DualListField.DualListFieldMessages getMessages()
Field
getMessages
in class Field<Field<?>>
public DualListField.Mode getMode()
public ListField<D> getToField()
public ListField<D> getToList()
protected void initButtons()
public boolean isEnableDND()
protected void onButtonAllLeft(IconButtonEvent be)
protected void onButtonAllRight(IconButtonEvent be)
protected void onButtonDown(IconButtonEvent be)
protected void onButtonLeft(IconButtonEvent be)
protected void onButtonRight(IconButtonEvent be)
protected void onButtonUp(IconButtonEvent be)
protected void onFocus(ComponentEvent ce)
onFocus
in class Field<Field<?>>
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class MultiField<Field<?>>
target
- the target elementindex
- the insert locationprotected void onResize(int width, int height)
BoxComponent
onResize
in class MultiField<Field<?>>
width
- the widthheight
- the heightpublic void setDNDGroup(java.lang.String group)
group
- the group namepublic void setEnableDND(boolean enableDND)
enableDND
- true to enable drag and droppublic void setMode(DualListField.Mode mode)
mode
- the mode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |