Class ChoiceProperty

All Implemented Interfaces:
Property, com.infoteria.gui.property.provider.ChoiceItemProvider, Cloneable

public class ChoiceProperty extends StringProperty implements com.infoteria.gui.property.provider.ChoiceItemProvider
選択プロパティ
選択肢がドロップダウンリストから選べる形式のPropertyEditorを持つプロパティです。
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public String getType()
      Description copied from interface: Property
      プロパティ型を返します。
      Specified by:
      getType in interface Property
      Overrides:
      getType in class StringProperty
    • setValue

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

      public Object getAdapter(Class<?> clazz)
      Description copied from interface: Property
      Adapterを返します。
      Specified by:
      getAdapter in interface Property
      Overrides:
      getAdapter in class AbstractProperty
    • getChoiceItems

      public Object[] getChoiceItems()
      選択肢の配列を取得します。
      Specified by:
      getChoiceItems in interface com.infoteria.gui.property.provider.ChoiceItemProvider
    • setChoiceItems

      public void setChoiceItems(String[] items)
      選択肢の配列を設定します。
    • addChoiceItem

      public void addChoiceItem(String item)
      選択肢の配列にitemを追加します。
    • clearChoiceItems

      public void clearChoiceItems()
      選択肢の配列をクリアします。
    • setChoiceItemDisplayNameProvider

      public void setChoiceItemDisplayNameProvider(com.infoteria.gui.util.DisplayNameProvider dnp)
      選択肢の配列に対する表示名のProviderを設定します。
    • getChoiceItemDisplayNameProvider

      public com.infoteria.gui.util.DisplayNameProvider getChoiceItemDisplayNameProvider()
      選択肢の配列に対する表示名のProviderを取得します。
      Specified by:
      getChoiceItemDisplayNameProvider in interface com.infoteria.gui.property.provider.ChoiceItemProvider
    • isChoiceOnly

      public boolean isChoiceOnly()
      PropertyEditorで選択のみが可能か入力もできるかを取得します。
      Specified by:
      isChoiceOnly in interface com.infoteria.gui.property.provider.ChoiceItemProvider
    • setChoiceOnly

      public void setChoiceOnly(boolean b)
      PropertyEditorで選択のみが可能か入力もできるかを設定します。
    • doClone

      protected void doClone(AbstractProperty prop)
      Description copied from class: AbstractProperty
      cloneメソッドの実装部分 DeepCopyが必要な場合はオーバーライドしてください。
      Overrides:
      doClone in class AbstractProperty