com.infoteria.gui.property
クラス BooleanProperty

java.lang.Object
  |
  +--com.infoteria.gui.property.AbstractProperty
        |
        +--com.infoteria.gui.property.BooleanProperty
すべての実装インタフェース:
com.infoteria.gui.property.provider.ChoiceItemProvider, Cloneable, com.infoteria.gui.util.DisplayNameProvider, MetaData, Property
直系の既知のサブクラス:
BooleanProperty

public class BooleanProperty
extends AbstractProperty
implements com.infoteria.gui.property.provider.ChoiceItemProvider, MetaData, com.infoteria.gui.util.DisplayNameProvider

Booleanプロパティ


フィールドの概要
static String PROPERTY_TYPE
           
 
クラス com.infoteria.gui.property.AbstractProperty から継承したフィールド
_listenerList, ATTR_DISPLAY_NAME, ATTR_NAME, ATTR_READONLY, ATTR_TYPE, ATTR_VISIBLE, ELEM_PROPERTY, PROPERTY_NSURI
 
コンストラクタの概要
BooleanProperty(PropertyHolder owner, String name)
           
BooleanProperty(String name)
           
 
メソッドの概要
 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)
           
 
クラス com.infoteria.gui.property.AbstractProperty から継承したメソッド
addPropertyChangeListener, assign, assignTo, clone, createUndoableEdit, doClone, doSetValue, getDisplayName, getEditor, getName, getOwner, getRenderer, getTooltip, getValue, getValueAsString, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, setValueAsString, setVisible
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース 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()
インタフェース Property の記述:
プロパティ型を返します。

setup

public void setup(Element el)
インタフェース MetaData の記述:
定義情報のある要素から設定情報を自身に反映します。
定義:
インタフェース MetaData 内の setup

getAdapter

public Object getAdapter(Class clazz)
インタフェース Property の記述:
Adapterを返します。
オーバーライド:
クラス AbstractProperty 内の getAdapter

setValue

public UndoableEdit setValue(Object o,
                             boolean canUndo)
                      throws PropertyException
インタフェース Property の記述:
プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
オーバーライド:
クラス AbstractProperty 内の setValue

setValueAsString

public UndoableEdit setValueAsString(String o,
                                     boolean canUndo)
                              throws PropertyException
インタフェース Property の記述:
プロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
オーバーライド:
クラス AbstractProperty 内の setValueAsString

getChoiceItems

public Object[] getChoiceItems()
定義:
インタフェース com.infoteria.gui.property.provider.ChoiceItemProvider 内の getChoiceItems

getChoiceItemDisplayNameProvider

public DisplayNameProvider getChoiceItemDisplayNameProvider()
定義:
インタフェース com.infoteria.gui.property.provider.ChoiceItemProvider 内の getChoiceItemDisplayNameProvider

getDisplayName

public String getDisplayName(Object obj)
定義:
インタフェース com.infoteria.gui.util.DisplayNameProvider 内の getDisplayName

getRealObject

public Object getRealObject(String displayName)
定義:
インタフェース com.infoteria.gui.util.DisplayNameProvider 内の getRealObject

isChoiceOnly

public boolean isChoiceOnly()
定義:
インタフェース com.infoteria.gui.property.provider.ChoiceItemProvider 内の isChoiceOnly

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