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プロパティ


Field Summary
static String PROPERTY_TYPE
           
 
Fields 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
BooleanProperty(PropertyHolder owner, String name)
           
BooleanProperty(String name)
           
 
Method Summary
 boolean booleanValue()
           
 Object getAdapter(Class clazz)
           
 DisplayNameProvider getChoiceItemDisplayNameProvider()
           
 Object[] getChoiceItems()
           
 String getDisplayName(Object obj)
           
 String getFalseValue()
          プロパティ値が「false」の場合の表示名を取得します。
 Object getRealObject(String displayName)
           
 String getTrueValue()
          プロパティ値が「true」の場合の表示名を取得します。
 String getType()
           
 boolean isChoiceOnly()
           
 void setFalseValue(String s)
          プロパティ値が「false」の場合の表示名を設定します。
 void setTrueValue(String s)
          プロパティ値が「true」の場合の表示名を設定します。
 void setup(Element el)
           
 UndoableEdit setValue(boolean value)
           
 UndoableEdit setValue(boolean value, boolean canUndo)
           
 UndoableEdit setValue(Object o, boolean canUndo)
           
 UndoableEdit setValueAsString(String o, boolean canUndo)
           
 
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
 

Field Detail

PROPERTY_TYPE

public static final String PROPERTY_TYPE
Constructor Detail

BooleanProperty

public BooleanProperty(PropertyHolder owner,
                       String name)

BooleanProperty

public BooleanProperty(String name)
Method Detail

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」の場合の表示名を設定します。