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, java.lang.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 class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.infoteria.gui.util.MetaData |
clone |
PROPERTY_TYPE
public static final java.lang.String PROPERTY_TYPE
BooleanProperty
public BooleanProperty(PropertyHolder owner,
java.lang.String name)
BooleanProperty
public BooleanProperty(java.lang.String name)
getType
public java.lang.String getType()
- Description copied from interface:
Property
- プロパティ型を返します。
setup
public void setup(org.w3c.dom.Element el)
- Description copied from interface:
MetaData
- 定義情報のある要素から設定情報を自身に反映します。
- Specified by:
setup in interface MetaData
getAdapter
public java.lang.Object getAdapter(java.lang.Class clazz)
- Description copied from interface:
Property
- Adapterを返します。
- Overrides:
getAdapter in class AbstractProperty
setValue
public javax.swing.undo.UndoableEdit setValue(java.lang.Object o,
boolean canUndo)
throws PropertyException
- Description copied from interface:
Property
- プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- Overrides:
setValue in class AbstractProperty
setValueAsString
public javax.swing.undo.UndoableEdit setValueAsString(java.lang.String o,
boolean canUndo)
throws PropertyException
- Description copied from interface:
Property
- プロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- Overrides:
setValueAsString in class AbstractProperty
getChoiceItems
public java.lang.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 java.lang.String getDisplayName(java.lang.Object obj)
- Specified by:
getDisplayName in interface com.infoteria.gui.util.DisplayNameProvider
getRealObject
public java.lang.Object getRealObject(java.lang.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 javax.swing.undo.UndoableEdit setValue(boolean value)
throws PropertyException
setValue
public javax.swing.undo.UndoableEdit setValue(boolean value,
boolean canUndo)
throws PropertyException
getTrueValue
public java.lang.String getTrueValue()
- プロパティ値が「true」の場合の表示名を取得します。
setTrueValue
public void setTrueValue(java.lang.String s)
- プロパティ値が「true」の場合の表示名を設定します。
getFalseValue
public java.lang.String getFalseValue()
- プロパティ値が「false」の場合の表示名を取得します。
setFalseValue
public void setFalseValue(java.lang.String s)
- プロパティ値が「false」の場合の表示名を設定します。