Package com.infoteria.gui.property
Class IntegerProperty
java.lang.Object
com.infoteria.gui.property.AbstractProperty
com.infoteria.gui.property.NumberProperty
com.infoteria.gui.property.IntegerProperty
- All Implemented Interfaces:
Property,com.infoteria.gui.property.provider.NumberInfoProvider,Cloneable
整数プロパティ
java.lang.Longを扱うためのプロパティです。
-
Field Summary
FieldsFields inherited from class com.infoteria.gui.property.AbstractProperty
_listenerList, ATTR_DISPLAY_NAME, ATTR_NAME, ATTR_READONLY, ATTR_TYPE, ATTR_VISIBLE, ELEM_PROPERTY, PROPERTY_NSURI -
Constructor Summary
ConstructorsConstructorDescriptionIntegerProperty(PropertyHolder owner, String name) IntegerProperty(String name) -
Method Summary
Modifier and TypeMethodDescriptiongetType()プロパティ型を返します。intintValue()booleanこのNumberプロパティがBigDecimal型の場合はtruebooleanこのNumberプロパティが整数型の場合はtruelongsetValue(long value) setValue(long value, boolean canUndo) プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。setValueAsString(String o, boolean canUndo) プロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。Methods inherited from class com.infoteria.gui.property.NumberProperty
getAdapter, getFormat, isAllowNegative, setAllowNegative, setFormatMethods inherited from class com.infoteria.gui.property.AbstractProperty
addPropertyChangeListener, assign, assignTo, clone, createUndoableEdit, doClone, doGetDifference, doSetValue, getDifference, getDisplayName, getEditor, getName, getOwner, getPropertyChangeListeners, getRenderer, getTooltip, getValue, getValueAsString, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, setValueAsString, setVisible, valueEquals
-
Field Details
-
PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
IntegerProperty
-
IntegerProperty
-
-
Method Details
-
getType
Description copied from interface:Propertyプロパティ型を返します。 -
setValue
Description copied from interface:Propertyプロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。- Specified by:
setValuein interfaceProperty- Specified by:
setValuein classAbstractProperty- Throws:
PropertyException
-
setValueAsString
Description copied from interface:Propertyプロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。- Specified by:
setValueAsStringin interfaceProperty- Specified by:
setValueAsStringin classAbstractProperty- Throws:
PropertyException
-
isInteger
public boolean isInteger()Description copied from class:NumberPropertyこのNumberプロパティが整数型の場合はtrue- Specified by:
isIntegerin interfacecom.infoteria.gui.property.provider.NumberInfoProvider- Specified by:
isIntegerin classNumberProperty
-
isBigDecimal
public boolean isBigDecimal()Description copied from class:NumberPropertyこのNumberプロパティがBigDecimal型の場合はtrue- Specified by:
isBigDecimalin interfacecom.infoteria.gui.property.provider.NumberInfoProvider- Specified by:
isBigDecimalin classNumberProperty
-
intValue
public int intValue() -
longValue
public long longValue() -
setValue
- Throws:
PropertyException
-
setValue
- Throws:
PropertyException
-