com.extjs.gxt.ui.client.widget.form
クラス NumberField

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<D>
                      extended by com.extjs.gxt.ui.client.widget.form.TextField<java.lang.Number>
                          extended by com.extjs.gxt.ui.client.widget.form.NumberField
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener

public class NumberField
extends TextField<java.lang.Number>

Numeric text field that provides automatic keystroke filtering and numeric validation.


入れ子クラス 概要
 class NumberField.NumberFieldMessages
          NumberField messages.
 
クラス com.extjs.gxt.ui.client.widget.form.TextField から継承された 入れ子クラス/インターフェース
TextField.TextFieldMessages
 
クラス 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
 
コンストラクタ 概要
NumberField()
          Creates a new number field.
 
メソッド 概要
 boolean getAllowDecimals()
          Returns true of decimal values are allowed.
 boolean getAllowNegative()
          Returns true if negative values are allowed.
 java.lang.String getBaseChars()
          Returns the base characters.
 java.lang.String getDecimalSeparator()
          Returns the field's decimal seperator.
 com.google.gwt.i18n.client.NumberFormat getFormat()
          Returns the field's number format.
 double getMaxValue()
          Returns the fields max value.
 NumberField.NumberFieldMessages getMessages()
          Returns the field's messages.
 double getMinValue()
          Returns the field's minimum value.
 NumberPropertyEditor getPropertyEditor()
          Retuns the field's property editor.
 void setAllowDecimals(boolean allowDecimals)
          Sets whether decimal value are allowed (defaults to true).
 void setAllowNegative(boolean allowNegative)
          Sets whether negative value are allowed.
 void setBaseChars(java.lang.String baseChars)
          Sets the base set of characters to evaluate as valid numbers (defaults to '0123456789').
 void setDecimalSeparator(java.lang.String decimalSeparator)
          Sets the character(s) to allow as the decimal separator (defaults to '.').
 void setFormat(com.google.gwt.i18n.client.NumberFormat format)
          Sets the cell's number formatter.
 void setMaxValue(double maxValue)
          Sets the field's max allowable value.
 void setMinValue(double minValue)
          Sets the field's minimum allowed value.
 
クラス com.extjs.gxt.ui.client.widget.form.TextField から継承されたメソッド
getAllowBlank, getCursorPos, getMaxLength, getMinLength, getRegex, getSelectedText, getSelectionLength, getSelectOnFocus, getValidator, isPassword, select, selectAll, setAllowBlank, setCursorPos, setMaxLength, setMinLength, setPassword, setRegex, setSelectionRange, setSelectOnFocus, setValidator, setValue
 
クラス com.extjs.gxt.ui.client.widget.form.Field から継承されたメソッド
addKeyListener, clearInvalid, focus, getAutoValidate, getEmptyText, getFieldLabel, getLabelSeparator, getLabelStyle, getMessageTarget, getName, getRawValue, getValidateOnBlur, getValidationDelay, getValue, isDirty, isReadOnly, isValid, markInvalid, onComponentEvent, removeKeyListener, reset, setAutoValidate, setEmptyText, setFieldLabel, setLabelSeparator, setLabelStyle, setMessages, setMessageTarget, setName, setPropertyEditor, setRawValue, setReadOnly, setTabIndex, setValidateOnBlur, setValidationDelay, 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, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isEnabled, isRendered, isVisible, onBrowserEvent, 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
 

コンストラクタ 詳細

NumberField

public NumberField()
Creates a new number field.

メソッド 詳細

getAllowDecimals

public boolean getAllowDecimals()
Returns true of decimal values are allowed.

戻り値:
the allow decimal state

getAllowNegative

public boolean getAllowNegative()
Returns true if negative values are allowed.

戻り値:
the allow negative value state

getBaseChars

public java.lang.String getBaseChars()
Returns the base characters.

戻り値:
the base characters

getDecimalSeparator

public java.lang.String getDecimalSeparator()
Returns the field's decimal seperator.

戻り値:
the seperator

getFormat

public com.google.gwt.i18n.client.NumberFormat getFormat()
Returns the field's number format.

戻り値:
the number format

getMaxValue

public double getMaxValue()
Returns the fields max value.

戻り値:
the max value

getMessages

public NumberField.NumberFieldMessages getMessages()
Description copied from class: Field
Returns the field's messages.

オーバーライド:
getMessages in class TextField<java.lang.Number>
戻り値:
the messages

getMinValue

public double getMinValue()
Returns the field's minimum value.

戻り値:
the min value

getPropertyEditor

public NumberPropertyEditor getPropertyEditor()
Description copied from class: Field
Retuns the field's property editor.

オーバーライド:
getPropertyEditor in class Field<java.lang.Number>
戻り値:
the property editor

setAllowDecimals

public void setAllowDecimals(boolean allowDecimals)
Sets whether decimal value are allowed (defaults to true).

パラメータ:
allowDecimals - true to allow negative values

setAllowNegative

public void setAllowNegative(boolean allowNegative)
Sets whether negative value are allowed.

パラメータ:
allowNegative - true to allow negative values

setBaseChars

public void setBaseChars(java.lang.String baseChars)
Sets the base set of characters to evaluate as valid numbers (defaults to '0123456789').

パラメータ:
baseChars - the base character

setDecimalSeparator

public void setDecimalSeparator(java.lang.String decimalSeparator)
Sets the character(s) to allow as the decimal separator (defaults to '.').

パラメータ:
decimalSeparator -

setFormat

public void setFormat(com.google.gwt.i18n.client.NumberFormat format)
Sets the cell's number formatter.

パラメータ:
format - the format

setMaxValue

public void setMaxValue(double maxValue)
Sets the field's max allowable value.

パラメータ:
maxValue - the max value

setMinValue

public void setMinValue(double minValue)
Sets the field's minimum allowed value.

パラメータ:
minValue - the min value