com.extjs.gxt.ui.client.widget.form
クラス MultiField<F extends Field>

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.form.Field<F>
                      extended by com.extjs.gxt.ui.client.widget.form.MultiField<F>
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener
Direct Known Subclasses:
CheckBoxGroup, RadioGroup

public class MultiField<F extends Field>
extends Field<F>

A field that displays multiple fields in a single row.


入れ子クラス 概要
 
クラス com.extjs.gxt.ui.client.widget.form.Field から継承された 入れ子クラス/インターフェース
Field.FieldMessages
 
クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields)
DEBUG_ID_PREFIX
 
コンストラクタ 概要
MultiField()
          Creates a new checkbox group.
MultiField(java.lang.String fieldLabel, F... fields)
          Creates a new checkbox group.
 
メソッド 概要
 void add(F field)
          Adds a field (pre-render).
 void disable()
          Disable this component.
 void enable()
          Enable this component.
 F get(int index)
          Returns the field at the index.
 java.util.List<F> getAll()
          Returns all the child field's.
 Style.Orientation getOrientation()
          Returns the fields orientation.
 int getSpacing()
          Returns the field's spacing.
 Validator getValidator()
          Returns the field's validator.
 boolean isValid()
          Returns whether or not the field value is currently valid.
 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.
 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 setSpacing(int spacing)
          Sets the amount of spacing between fields.
 void setValidator(Validator validator)
          Sets the field's validator.
 
クラス com.extjs.gxt.ui.client.widget.form.Field から継承されたメソッド
addKeyListener, clearInvalid, focus, getAutoValidate, getEmptyText, getFieldLabel, getLabelSeparator, getLabelStyle, getMessages, getMessageTarget, getName, getPropertyEditor, getRawValue, getValidateOnBlur, getValidationDelay, getValue, isDirty, isReadOnly, markInvalid, removeKeyListener, setAutoValidate, setEmptyText, setFieldLabel, setLabelSeparator, setLabelStyle, setMessages, setMessageTarget, setName, setPropertyEditor, setRawValue, setTabIndex, setValidateOnBlur, setValidationDelay, setValue, validate
 
クラス com.extjs.gxt.ui.client.widget.BoxComponent から継承されたメソッド
getBounds, getHeight, getHeight, getPosition, getShadow, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShim, setSize, setSize, setWidth, setWidth
 
クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド
addListener, addStyleName, addWidgetListener, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isEnabled, isRendered, isVisible, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, show, toString
 
クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド
getParent, isAttached
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

MultiField

public MultiField()
Creates a new checkbox group.


MultiField

public MultiField(java.lang.String fieldLabel,
                  F... fields)
Creates a new checkbox group.

パラメータ:
fieldLabel - the field label
fields - the field(s) to add
メソッド 詳細

add

public void add(F field)
Adds a field (pre-render).

パラメータ:
field - the field to add

disable

public void disable()
Description copied from class: Component
Disable this component. Fires the Disable event.

オーバーライド:
disable in class Component

enable

public void enable()
Description copied from class: Component
Enable this component. Fires the Enable event.

オーバーライド:
enable in class Component

get

public F get(int index)
Returns the field at the index.

パラメータ:
index - the index
戻り値:
the field

getAll

public java.util.List<F> getAll()
Returns all the child field's.

戻り値:
the fields

getOrientation

public Style.Orientation getOrientation()
Returns the fields orientation.

戻り値:
the orientation

getSpacing

public int getSpacing()
Returns the field's spacing.

戻り値:
the spacing

getValidator

public Validator getValidator()
Returns the field's validator.

戻り値:
the validator

isValid

public boolean isValid()
Description copied from class: Field
Returns whether or not the field value is currently valid.

オーバーライド:
isValid in class Field<F extends Field>
戻り値:
true if the value is valid, otherwise false

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Description copied from class: Component
Components delegate event handling to Component.onComponentEvent(ComponentEvent). Sublcasses should not override.

Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
オーバーライド:
onBrowserEvent in class Component
パラメータ:
event - the dom event

onComponentEvent

public void onComponentEvent(ComponentEvent ce)
Description copied from class: Component
Any events a component receives will be forwarded to this method. Subclasses should override as needed. The Component.onBrowserEvent(com.google.gwt.user.client.Event) method should not be overridden or modified.

オーバーライド:
onComponentEvent in class Field<F extends Field>
パラメータ:
ce - the base event

reset

public void reset()
Description copied from class: Field
Resets the current field value to the originally loaded value and clears any validation messages.

オーバーライド:
reset in class Field<F extends Field>

setOrientation

public void setOrientation(Style.Orientation orientation)
Sets the fields orientation (defaults to horizontal).

パラメータ:
orientation - the orientation

setReadOnly

public void setReadOnly(boolean readOnly)
Description copied from class: Field
Sets the field's read only state.

オーバーライド:
setReadOnly in class Field<F extends Field>
パラメータ:
readOnly - the read only state

setSpacing

public void setSpacing(int spacing)
Sets the amount of spacing between fields. Spacing is applied to the right of each field for horizontal orientataion and applied to the bottom of each field for vertical orientation (defaults to 0, pre-render).

パラメータ:
spacing - the spacing in pixels

setValidator

public void setValidator(Validator validator)
Sets the field's validator.

パラメータ:
validator - the validator