|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.editor.config.model.ConfigUIModel
public class ConfigUIModel
Le modele de l'ui des preferences.
Ce modele contient les catégories des options.
| Field Summary | |
|---|---|
protected CallBacksManager |
callBacksManager
Callbacks manager |
protected Map<String,CategoryModel> |
categories
le dictionnaire des options disponibles par categorie |
static String |
CATEGORY_MODEL_PROPERTY_NAME
|
protected CategoryModel |
categoryModel
la cateogrie en cours d'utilisation |
protected org.nuiton.util.ApplicationConfig |
config
La configuration de l'application |
protected PropertyChangeSupport |
pcs
suport of modification |
protected Runnable |
reloadApplicationCallback
Deprecated. |
protected Runnable |
reloadUICallback
Deprecated. |
protected boolean |
saved
un drapeau pour savoir si la configuration a été modifiée au moins une fois. |
protected boolean |
standalone
un drapeau pour savoir si l'ui de configuration a été lancée en mode standalone ou pas. |
| Constructor Summary | |
|---|---|
ConfigUIModel(org.nuiton.util.ApplicationConfig config)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CATEGORY_MODEL_PROPERTY_NAME
protected final Map<String,CategoryModel> categories
protected final org.nuiton.util.ApplicationConfig config
protected CategoryModel categoryModel
protected boolean saved
protected boolean standalone
protected CallBacksManager callBacksManager
@Deprecated protected Runnable reloadUICallback
@Deprecated protected Runnable reloadApplicationCallback
protected final PropertyChangeSupport pcs
| Constructor Detail |
|---|
public ConfigUIModel(org.nuiton.util.ApplicationConfig config)
| Method Detail |
|---|
@Deprecated
public void addCategory(String category,
String categoryLabel,
org.nuiton.util.ApplicationConfig.OptionDef... keys)
addCategory(CategoryModel)
category - l'id de la categorie (la clef de traduction du nom
de la categorie)categoryLabel - la clef de traduction de la description de
la categoriekeys - les options de la categoriepublic void addCategory(CategoryModel category)
category - la categorie a ajouter au modèle.public void setCategory(String category)
category - l'id de la categorie courante
public void registerCallBack(String name,
String description,
Icon icon,
Runnable action)
name - the unique name of a callbackdescription - the i18n key to describe the actionicon - the icon of the callBack (used in ui)action - the action of the callback
public void registerOptionCallBack(String name,
OptionModel option)
name - the name of the callbackoption - the option to register for the given callbackpublic Map<CallBackEntry,List<OptionModel>> getCallBacksForSaved()
public Iterator<CategoryModel> iterator()
iterator in interface Iterable<CategoryModel>public CategoryModel getCategoryModel()
public void setCategoryModel(CategoryModel categoryModel)
public boolean isSaved()
public void setSaved(boolean saved)
public boolean isStandalone()
public void setStandalone(boolean standalone)
@Deprecated public Runnable getReloadApplicationCallback()
@Deprecated public Runnable getReloadUICallback()
public void saveModified()
public void reset()
public int getCategoryIndex(String category)
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()
@Deprecated protected void setReloadApplicationCallback(Runnable reloadApplicationCallback)
@Deprecated protected void setReloadUICallback(Runnable reloadUICallback)
protected org.nuiton.util.ApplicationConfig getConfig()
protected CallBacksManager getCallBacksManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||