public class CategoryModel extends Object implements Iterable<OptionModel>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
category
category short name (i18n key)
|
protected String |
categoryLabel
category long name (i18n key)
|
protected List<OptionModel> |
entries
options of the category
|
static String |
MODIFIED_PROPERTY_NAME |
protected PropertyChangeSupport |
pcs
suport of modification
|
static String |
RELOAD_PROPERTY_NAME |
static String |
VALID_PROPERTY_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
CategoryModel(String category,
String categoryLabel) |
|
CategoryModel(String category,
String categoryLabel,
OptionModel[] entries)
Deprecated.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String RELOAD_PROPERTY_NAME
public static final String MODIFIED_PROPERTY_NAME
public static final String VALID_PROPERTY_NAME
protected final String category
protected final String categoryLabel
protected final List<OptionModel> entries
protected final PropertyChangeSupport pcs
@Deprecated public CategoryModel(String category, String categoryLabel, OptionModel[] entries)
protected void addOption(OptionModel option)
public String getCategory()
public String getCategoryLabel()
public List<OptionModel> getEntries()
public boolean isModified()
public boolean isValid()
public OptionModel getOptionModel(String optionModelKey)
public void setValue(OptionModel key, Object val)
public Iterator<OptionModel> iterator()
iterator in interface Iterable<OptionModel>public List<OptionModel> getInvalidOptions()
public List<OptionModel> getModifiedOptions()
public List<OptionModel> getSavedOptions()
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
public boolean hasListeners(String propertyName)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
public PropertyChangeListener[] getPropertyChangeListeners()
public void destroy()
Copyright © 2008–2018 Ultreia.io. All rights reserved.