public class BasicCategorizedProperty<T> extends BasicDescriptiveProperty<T> implements CategorizedProperty<T>
CategorizedProperty.Option<T>
Constructor and Description |
---|
BasicCategorizedProperty()
Bean compatibility...
|
BasicCategorizedProperty(java.lang.String name,
java.lang.String displayNameKey,
java.lang.String categoryKey,
java.lang.Class<T> cls) |
BasicCategorizedProperty(java.lang.String name,
java.lang.String displayNameKey,
java.lang.String categoryKey,
java.lang.Class<T> cls,
T defaultValue) |
BasicCategorizedProperty(java.lang.String name,
java.lang.String displayNameKey,
java.lang.String categoryKey,
java.lang.String descriptionKey,
java.lang.Class<T> cls,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
java.util.List<CategorizedProperty.Option<T>> |
getOptions()
If this returns a non-null value then a drop-down menu of
CategorizedProperty.Option s will be displayed to the user. |
void |
setOptions(java.util.List<CategorizedProperty.Option<T>> options) |
getCategory, getCategoryKey, getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, setCategory, setDisplayName
equals, getClazz, getDefaultValue, getName, getType, hashCode, setClazz_, setClazz, setDefaultValue_, setDefaultValue, setName_, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCategory, getDescription, getDisplayName
getDefaultValue, getName, getType
public BasicCategorizedProperty()
public BasicCategorizedProperty(java.lang.String name, java.lang.String displayNameKey, java.lang.String categoryKey, java.lang.Class<T> cls)
public BasicCategorizedProperty(java.lang.String name, java.lang.String displayNameKey, java.lang.String categoryKey, java.lang.Class<T> cls, T defaultValue)
public java.util.List<CategorizedProperty.Option<T>> getOptions()
CategorizedProperty
CategorizedProperty.Option
s will be displayed to the user.getOptions
in interface CategorizedProperty<T>
CategorizedProperty.Option
s to display, or null if this property doesn't need a drop-down.public void setOptions(java.util.List<CategorizedProperty.Option<T>> options)