|
|||||||||
| 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 AdapterField |
buttonAdapter
|
protected VerticalPanel |
buttonBar
|
protected ListField<D> |
fromField
|
protected DualListField.Mode |
mode
|
protected ListField<D> |
toField
|
| 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, 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. |
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()
|
protected void |
initDND()
|
boolean |
isEnableDND()
Returns true if drag and drop is enabled. |
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, 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 |
|---|
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ListField<D extends ModelData> fromField
protected ListField<D extends ModelData> toField
protected AdapterField buttonAdapter
protected VerticalPanel buttonBar
protected DualListField.Mode mode
| Constructor Detail |
|---|
public DualListField()
| Method Detail |
|---|
public java.lang.String getDNDGroup()
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()
public boolean isEnableDND()
public 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 modeprotected void initButtons()
protected void initDND()
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 onFocus(ComponentEvent ce)
onFocus in class Field<Field<?>>
protected void onResize(int width,
int height)
BoxComponent
onResize in class MultiField<Field<?>>width - the widthheight - the height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||