Class BooleanProperty

java.lang.Object
com.infoteria.gui.property.AbstractProperty
com.infoteria.gui.property.BooleanProperty
All Implemented Interfaces:
Property, com.infoteria.gui.property.provider.ChoiceItemProvider, com.infoteria.gui.util.DisplayNameProvider, MetaData, Cloneable
Direct Known Subclasses:
BooleanProperty

public class BooleanProperty extends AbstractProperty implements com.infoteria.gui.property.provider.ChoiceItemProvider, MetaData, com.infoteria.gui.util.DisplayNameProvider
Booleanプロパティ
  • Field Details

  • Constructor Details

    • BooleanProperty

      public BooleanProperty(PropertyHolder owner, String name)
    • BooleanProperty

      public BooleanProperty(String name)
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Property
      プロパティ型を返します。
      Specified by:
      getType in 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を返します。
      Specified by:
      getAdapter in interface Property
      Overrides:
      getAdapter in class AbstractProperty
    • setValue

      public UndoableEdit setValue(Object o, boolean canUndo) throws PropertyException
      Description copied from interface: Property
      プロパティ値を設定します。
      Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
      Specified by:
      setValue in interface Property
      Specified by:
      setValue in class AbstractProperty
      Throws:
      PropertyException
    • setValueAsString

      public UndoableEdit setValueAsString(String o, boolean canUndo) throws PropertyException
      Description copied from interface: Property
      プロパティ値を文字列で設定します。
      Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
      Specified by:
      setValueAsString in interface Property
      Specified by:
      setValueAsString in class AbstractProperty
      Throws:
      PropertyException
    • getChoiceItems

      public Object[] getChoiceItems()
      Specified by:
      getChoiceItems in interface com.infoteria.gui.property.provider.ChoiceItemProvider
    • getChoiceItemDisplayNameProvider

      public com.infoteria.gui.util.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
      Throws:
      PropertyException
    • setValue

      public UndoableEdit setValue(boolean value, boolean canUndo) throws PropertyException
      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」の場合の表示名を設定します。