|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.editor.config.model.CallBacksManager
public class CallBacksManager
CallBack manager.
| Field Summary | |
|---|---|
protected List<CallBackEntry> |
callbacks
lists of registred callback. |
| Constructor Summary | |
|---|---|
CallBacksManager()
|
|
| Method Summary | |
|---|---|
protected CallBackEntry |
getCallBack(OptionModel option)
Get the first callBack for a given option. |
protected CallBackEntry |
getCallBack(String name)
Obtain a registred callBack from his name. |
Map<CallBackEntry,List<OptionModel>> |
getCallBacksForSaved(CategoryModel category)
Scan a category and grab per callBack the options saved. |
Map<CallBackEntry,List<OptionModel>> |
getCallBacksForSaved(ConfigUIModel model)
Scan a model and grab per callBack the options saved. |
void |
registerCallBack(String name,
String description,
Icon icon,
Runnable action)
Registers a new callback. |
void |
registerOption(String name,
OptionModel option)
Registers a option into a known callback. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<CallBackEntry> callbacks
| Constructor Detail |
|---|
public CallBacksManager()
| Method Detail |
|---|
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 - icon of callBack (used in ui)action - the action of the callback
public void registerOption(String name,
OptionModel option)
name - the name of the callbackoption - the option to register for the given callbackpublic Map<CallBackEntry,List<OptionModel>> getCallBacksForSaved(ConfigUIModel model)
model - the model to scan
public Map<CallBackEntry,List<OptionModel>> getCallBacksForSaved(CategoryModel category)
category - the category to scan
protected CallBackEntry getCallBack(OptionModel option)
option - the option
protected CallBackEntry getCallBack(String name)
name - the name of the searched callBack
null if not found).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||