|
||||||||||
| 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 java.util.Map<java.lang.String,CategoryModel> |
categories
le dictionnaire des options disponibles par categorie |
static java.lang.String |
CATEGORY_MODEL_PROPERTY_NAME
|
protected CategoryModel |
categoryModel
la cateogrie en cours d'utilisation |
protected java.lang.Runnable |
closeAction
optional action to execute (if not null) if no call backs fits. |
protected org.nuiton.util.ApplicationConfig |
config
La configuration de l'application |
protected java.beans.PropertyChangeSupport |
pcs
support of modification notifications |
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)
|
|
| Method Summary | |
|---|---|
void |
addCategory(CategoryModel category)
Ajoute une categorie dans le modele. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
destroy()
|
protected void |
finalize()
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
CallBackMap |
getCallBacksForSaved()
Obtain the dictionnary of callback for all to saved modified options. |
protected CallBacksManager |
getCallBacksManager()
|
int |
getCategoryIndex(java.lang.String category)
|
CategoryModel |
getCategoryModel()
|
java.lang.Runnable |
getCloseAction()
|
protected org.nuiton.util.ApplicationConfig |
getConfig()
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String propertyName)
|
boolean |
hasListeners(java.lang.String propertyName)
|
boolean |
isSaved()
|
boolean |
isStandalone()
|
java.util.Iterator<CategoryModel> |
iterator()
|
void |
registerCallBack(java.lang.String name,
java.lang.String description,
javax.swing.Icon icon,
java.lang.Runnable action)
Registers a new callback. |
void |
registerOptionCallBack(java.lang.String name,
OptionModel option)
Registers a option into a known callback. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
reset()
|
void |
saveModified()
|
void |
setCategory(java.lang.String category)
Change la categorie en cours d'édition. |
void |
setCategoryModel(CategoryModel categoryModel)
|
void |
setCloseAction(java.lang.Runnable closeAction)
|
void |
setFinalizer(CallBackFinalizer finalizer)
|
void |
setSaved(boolean saved)
|
void |
setStandalone(boolean standalone)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CATEGORY_MODEL_PROPERTY_NAME
protected final java.util.Map<java.lang.String,CategoryModel> categories
protected final org.nuiton.util.ApplicationConfig config
protected CategoryModel categoryModel
protected boolean saved
protected boolean standalone
protected CallBacksManager callBacksManager
protected java.lang.Runnable closeAction
protected final java.beans.PropertyChangeSupport pcs
| Constructor Detail |
|---|
public ConfigUIModel(org.nuiton.util.ApplicationConfig config)
| Method Detail |
|---|
public void addCategory(CategoryModel category)
category - la categorie a ajouter au modèle.public void setCategory(java.lang.String category)
category - l'id de la categorie courante
public void registerCallBack(java.lang.String name,
java.lang.String description,
javax.swing.Icon icon,
java.lang.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(java.lang.String name,
OptionModel option)
name - the name of the callbackoption - the option to register for the given callbackpublic void setFinalizer(CallBackFinalizer finalizer)
public java.lang.Runnable getCloseAction()
public void setCloseAction(java.lang.Runnable closeAction)
public CallBackMap getCallBacksForSaved()
public java.util.Iterator<CategoryModel> iterator()
iterator in interface java.lang.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)
public void saveModified()
public void reset()
public int getCategoryIndex(java.lang.String category)
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
public boolean hasListeners(java.lang.String propertyName)
public java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String propertyName)
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
public void destroy()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected org.nuiton.util.ApplicationConfig getConfig()
protected CallBacksManager getCallBacksManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||