com.infoteria.gui.property
Class ChoiceProperty
java.lang.Object
|
+--com.infoteria.gui.property.AbstractProperty
|
+--com.infoteria.gui.property.StringProperty
|
+--com.infoteria.gui.property.ChoiceProperty
- All Implemented Interfaces:
- com.infoteria.gui.property.provider.ChoiceItemProvider, java.lang.Cloneable, Property
- public class ChoiceProperty
- extends StringProperty
- implements com.infoteria.gui.property.provider.ChoiceItemProvider
選択プロパティ
選択肢がドロップダウンリストから選べる形式のPropertyEditorを持つプロパティです。
| Methods inherited from class com.infoteria.gui.property.AbstractProperty |
addPropertyChangeListener, assign, assignTo, clone, createUndoableEdit, 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 |
PROPERTY_TYPE
public static final java.lang.String PROPERTY_TYPE
ChoiceProperty
public ChoiceProperty(PropertyHolder owner,
java.lang.String name)
ChoiceProperty
public ChoiceProperty(java.lang.String name)
getType
public java.lang.String getType()
- Description copied from interface:
Property
- プロパティ型を返します。
- Overrides:
getType in class StringProperty
setValue
public javax.swing.undo.UndoableEdit setValue(java.lang.Object o,
boolean canUndo)
throws PropertyException
- Description copied from interface:
Property
- プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- Overrides:
setValue in class StringProperty
getAdapter
public java.lang.Object getAdapter(java.lang.Class clazz)
- Description copied from interface:
Property
- Adapterを返します。
- Overrides:
getAdapter in class AbstractProperty
getChoiceItems
public java.lang.Object[] getChoiceItems()
- 選択肢の配列を取得します。
- Specified by:
getChoiceItems in interface com.infoteria.gui.property.provider.ChoiceItemProvider
setChoiceItems
public void setChoiceItems(java.lang.String[] items)
- 選択肢の配列を設定します。
addChoiceItem
public void addChoiceItem(java.lang.String item)
- 選択肢の配列にitemを追加します。
clearChoiceItems
public void clearChoiceItems()
- 選択肢の配列をクリアします。
setChoiceItemDisplayNameProvider
public void setChoiceItemDisplayNameProvider(DisplayNameProvider dnp)
- 選択肢の配列に対する表示名のProviderを設定します。
getChoiceItemDisplayNameProvider
public 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