com.infoteria.gui.property
Class BooleanProperty
java.lang.Object
|
+--com.infoteria.gui.property.AbstractProperty
|
+--com.infoteria.gui.property.BooleanProperty
- All Implemented Interfaces:
- com.infoteria.gui.property.provider.ChoiceItemProvider, Cloneable, com.infoteria.gui.util.DisplayNameProvider, MetaData, Property
- Direct Known Subclasses:
- BooleanProperty
- public class BooleanProperty
- extends AbstractProperty
- implements com.infoteria.gui.property.provider.ChoiceItemProvider, MetaData, com.infoteria.gui.util.DisplayNameProvider
Booleanプロパティ
Methods 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 |
Methods inherited from interface com.infoteria.gui.util.MetaData |
clone |
PROPERTY_TYPE
public static final String PROPERTY_TYPE
BooleanProperty
public BooleanProperty(PropertyHolder owner,
String name)
BooleanProperty
public BooleanProperty(String name)
getType
public String getType()
- Description copied from interface:
Property
- プロパティ型を返します。
setup
public void setup(Element el)
- Description copied from interface:
MetaData
- 定義情報のある要素から設定情報を自身に反映します。
- Specified by:
setup
in interface MetaData
getAdapter
public Object getAdapter(Class clazz)
- Description copied from interface:
Property
- Adapterを返します。
- Overrides:
getAdapter
in class AbstractProperty
setValue
public UndoableEdit setValue(Object o,
boolean canUndo)
throws PropertyException
- Description copied from interface:
Property
- プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- Overrides:
setValue
in class AbstractProperty
setValueAsString
public UndoableEdit setValueAsString(String o,
boolean canUndo)
throws PropertyException
- Description copied from interface:
Property
- プロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- Overrides:
setValueAsString
in class AbstractProperty
getChoiceItems
public Object[] getChoiceItems()
- Specified by:
getChoiceItems
in interface com.infoteria.gui.property.provider.ChoiceItemProvider
getChoiceItemDisplayNameProvider
public DisplayNameProvider getChoiceItemDisplayNameProvider()
- Specified by:
getChoiceItemDisplayNameProvider
in interface com.infoteria.gui.property.provider.ChoiceItemProvider
getDisplayName
public String getDisplayName(Object obj)
- Specified by:
getDisplayName
in interface com.infoteria.gui.util.DisplayNameProvider
getRealObject
public Object getRealObject(String displayName)
- Specified by:
getRealObject
in interface com.infoteria.gui.util.DisplayNameProvider
isChoiceOnly
public boolean isChoiceOnly()
- Specified by:
isChoiceOnly
in interface com.infoteria.gui.property.provider.ChoiceItemProvider
booleanValue
public boolean booleanValue()
setValue
public UndoableEdit setValue(boolean value)
throws PropertyException
setValue
public UndoableEdit setValue(boolean value,
boolean canUndo)
throws PropertyException
getTrueValue
public String getTrueValue()
- プロパティ値が「true」の場合の表示名を取得します。
setTrueValue
public void setTrueValue(String s)
- プロパティ値が「true」の場合の表示名を設定します。
getFalseValue
public String getFalseValue()
- プロパティ値が「false」の場合の表示名を取得します。
setFalseValue
public void setFalseValue(String s)
- プロパティ値が「false」の場合の表示名を設定します。