Class CategoryModel
- java.lang.Object
-
- org.nuiton.jaxx.widgets.config.model.CategoryModel
-
- All Implemented Interfaces:
Serializable,Iterable<OptionModel>
public class CategoryModel extends Object implements Iterable<OptionModel>, Serializable
le modele d'une categorie d'options. Une categorie est un ensemble d'options.- Since:
- 2.5.11
- Author:
- tchemit
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringcategorycategory short name (i18n key)protected StringcategoryLabelcategory long name (i18n key)protected List<OptionModel>entriesoptions of the categorystatic StringMODIFIED_PROPERTY_NAMEprotected PropertyChangeSupportpcssuport of modificationstatic StringRELOAD_PROPERTY_NAMEstatic StringVALID_PROPERTY_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedCategoryModel(String category, String categoryLabel)CategoryModel(String category, String categoryLabel, OptionModel[] entries)Deprecated.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
RELOAD_PROPERTY_NAME
public static final String RELOAD_PROPERTY_NAME
- See Also:
- Constant Field Values
-
MODIFIED_PROPERTY_NAME
public static final String MODIFIED_PROPERTY_NAME
- See Also:
- Constant Field Values
-
VALID_PROPERTY_NAME
public static final String VALID_PROPERTY_NAME
- See Also:
- Constant Field Values
-
category
protected final String category
category short name (i18n key)
-
categoryLabel
protected final String categoryLabel
category long name (i18n key)
-
entries
protected final List<OptionModel> entries
options of the category
-
pcs
protected final PropertyChangeSupport pcs
suport of modification
-
-
Constructor Detail
-
CategoryModel
@Deprecated public CategoryModel(String category, String categoryLabel, OptionModel[] entries)
Deprecated.
-
-
Method Detail
-
addOption
protected void addOption(OptionModel option)
-
getCategory
public String getCategory()
-
getCategoryLabel
public String getCategoryLabel()
-
getEntries
public List<OptionModel> getEntries()
-
isModified
public boolean isModified()
-
isValid
public boolean isValid()
-
getOptionModel
public OptionModel getOptionModel(String optionModelKey)
-
setValue
public void setValue(OptionModel key, Object val)
-
iterator
public Iterator<OptionModel> iterator()
- Specified by:
iteratorin interfaceIterable<OptionModel>
-
getInvalidOptions
public List<OptionModel> getInvalidOptions()
-
getModifiedOptions
public List<OptionModel> getModifiedOptions()
-
getSavedOptions
public List<OptionModel> getSavedOptions()
-
firePropertyChange
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
-
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
-
removePropertyChangeListener
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
-
hasListeners
public boolean hasListeners(String propertyName)
-
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
-
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners()
-
destroy
public void destroy()
-
-