com.infoteria.gui.property
クラス ChoiceProperty
java.lang.Object
|
+--com.infoteria.gui.property.AbstractProperty
|
+--com.infoteria.gui.property.StringProperty
|
+--com.infoteria.gui.property.ChoiceProperty
- すべての実装インタフェース:
- com.infoteria.gui.property.provider.ChoiceItemProvider, Cloneable, Property
- public class ChoiceProperty
- extends StringProperty
- implements com.infoteria.gui.property.provider.ChoiceItemProvider
選択プロパティ
選択肢がドロップダウンリストから選べる形式のPropertyEditorを持つプロパティです。
| クラス com.infoteria.gui.property.AbstractProperty から継承したメソッド |
addPropertyChangeListener, assign, assignTo, clone, createUndoableEdit, doSetValue, getDisplayName, getEditor, getName, getOwner, getRenderer, getTooltip, getValue, getValueAsString, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, setValueAsString, setVisible |
PROPERTY_TYPE
public static final String PROPERTY_TYPE
ChoiceProperty
public ChoiceProperty(PropertyHolder owner,
String name)
ChoiceProperty
public ChoiceProperty(String name)
getType
public String getType()
- インタフェース
Property の記述:
- プロパティ型を返します。
- オーバーライド:
- クラス
StringProperty 内の getType
setValue
public UndoableEdit setValue(Object o,
boolean canUndo)
throws PropertyException
- インタフェース
Property の記述:
- プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- オーバーライド:
- クラス
StringProperty 内の setValue
getAdapter
public Object getAdapter(Class clazz)
- インタフェース
Property の記述:
- Adapterを返します。
- オーバーライド:
- クラス
AbstractProperty 内の getAdapter
getChoiceItems
public Object[] getChoiceItems()
- 選択肢の配列を取得します。
- 定義:
- インタフェース
com.infoteria.gui.property.provider.ChoiceItemProvider 内の getChoiceItems
setChoiceItems
public void setChoiceItems(String[] items)
- 選択肢の配列を設定します。
addChoiceItem
public void addChoiceItem(String item)
- 選択肢の配列にitemを追加します。
clearChoiceItems
public void clearChoiceItems()
- 選択肢の配列をクリアします。
setChoiceItemDisplayNameProvider
public void setChoiceItemDisplayNameProvider(DisplayNameProvider dnp)
- 選択肢の配列に対する表示名のProviderを設定します。
getChoiceItemDisplayNameProvider
public DisplayNameProvider getChoiceItemDisplayNameProvider()
- 選択肢の配列に対する表示名のProviderを取得します。
- 定義:
- インタフェース
com.infoteria.gui.property.provider.ChoiceItemProvider 内の getChoiceItemDisplayNameProvider
isChoiceOnly
public boolean isChoiceOnly()
- PropertyEditorで選択のみが可能か入力もできるかを取得します。
- 定義:
- インタフェース
com.infoteria.gui.property.provider.ChoiceItemProvider 内の isChoiceOnly
setChoiceOnly
public void setChoiceOnly(boolean b)
- PropertyEditorで選択のみが可能か入力もできるかを設定します。
doClone
protected void doClone(AbstractProperty prop)
- クラス
AbstractProperty の記述:
- cloneメソッドの実装部分
DeepCopyが必要な場合はオーバーライドしてください。
- オーバーライド:
- クラス
AbstractProperty 内の doClone