|
|||||||||
| 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<D>
public class MultiField<D>
A field that displays multiple fields in a single row or column.
| Nested Class Summary |
|---|
| 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 java.util.List<Field<?>> |
fields
|
protected LayoutContainer |
lc
|
protected Style.Orientation |
orientation
|
protected int |
spacing
|
protected Validator |
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 | |
|---|---|
MultiField()
Creates a new multi-field. |
|
MultiField(java.lang.String fieldLabel,
Field<?>... fields)
Creates a new multi-field. |
|
| Method Summary | |
|---|---|
void |
add(Field<?> field)
Adds a field (pre-render). |
void |
clear()
Clears the value from the field. |
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
Field<?> |
get(int index)
Returns the field at the index. |
java.util.List<Field<?>> |
getAll()
Returns all the child field's. |
protected El |
getInputEl()
Provides support for wrapping the actual input element. |
Style.Orientation |
getOrientation()
Returns the fields orientation. |
int |
getSpacing()
Returns the field's spacing. |
Validator |
getValidator()
Returns the field's validator. |
boolean |
isResizeFields()
Returns true if child fields are being resized. |
boolean |
isValid(boolean silent)
Returns whether or not the field value is currently valid. |
protected void |
notifyHide()
|
protected void |
notifyShow()
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
Components delegate event handling to Component.onComponentEvent(ComponentEvent). |
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
protected void |
onDisable()
|
protected void |
onEnable()
|
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 |
reset()
Resets the current field value to the originally loaded value and clears any validation messages. |
void |
setOrientation(Style.Orientation orientation)
Sets the fields orientation (defaults to horizontal). |
void |
setReadOnly(boolean readOnly)
Sets the field's read only state. |
void |
setResizeFields(boolean resizeFields)
True to resize the child fields to fit available space (defaults to false). |
void |
setSpacing(int spacing)
Sets the amount of spacing between fields. |
void |
setValidator(Validator validator)
Sets the field's validator. |
protected boolean |
validateValue(java.lang.String value)
Subclasses should provide the validation implementation by overriding this. |
| 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, unsinkEvents |
| 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, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Field<?>> fields
protected LayoutContainer lc
protected Style.Orientation orientation
protected int spacing
protected Validator validator
| Constructor Detail |
|---|
public MultiField()
public MultiField(java.lang.String fieldLabel,
Field<?>... fields)
fieldLabel - the field labelfields - the field(s) to add| Method Detail |
|---|
public void add(Field<?> field)
field - the field to addpublic void clear()
Field
clear in class Field<D>public Field<?> get(int index)
index - the index
public java.util.List<Field<?>> getAll()
public Style.Orientation getOrientation()
public int getSpacing()
public Validator getValidator()
public boolean isResizeFields()
public boolean isValid(boolean silent)
Field
isValid in class Field<D>silent - true for silent validation (no invalid event and field
is not marked invalid)
true if the value is valid, otherwise
falsepublic void onBrowserEvent(com.google.gwt.user.client.Event event)
ComponentComponent.onComponentEvent(ComponentEvent). Subclasses should not override.
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class Componentevent - the dom eventpublic void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class Field<D>ce - the base eventpublic void reset()
Field
reset in class Field<D>public void setOrientation(Style.Orientation orientation)
orientation - the orientationpublic void setReadOnly(boolean readOnly)
Field
setReadOnly in class Field<D>readOnly - the read only statepublic void setResizeFields(boolean resizeFields)
resizeFields - true to resize childrenpublic void setSpacing(int spacing)
spacing - the spacing in pixelspublic void setValidator(Validator validator)
validator - the validatorprotected void doAttachChildren()
doAttachChildren in class Componentprotected void doDetachChildren()
doDetachChildren in class Field<D>protected El getInputEl()
Field
getInputEl in class Field<D>protected void notifyHide()
notifyHide in class Componentprotected void notifyShow()
notifyShow in class Componentprotected void onDisable()
onDisable in class Field<D>protected void onEnable()
onEnable in class Field<D>
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Field<D>target - the target elementindex - the insert location
protected void onResize(int width,
int height)
BoxComponent
onResize in class Field<D>width - the widthheight - the heightprotected boolean validateValue(java.lang.String value)
Field
validateValue in class Field<D>value - the value to validate
true for valid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||