Package jaxx.runtime.swing.config
Class ConfigUIHandler
- java.lang.Object
-
- jaxx.runtime.swing.config.ConfigUIHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfigUIHandler.ChangeCategoryCallBackTo be able to veto a change of a category.static interfaceConfigUIHandler.ConfigCallBackUICustomizerTo customize config call back ui.
-
Field Summary
Fields Modifier and Type Field Description static StringCALLBACKSstatic StringCALLBACKS_WITH_OPTIONSstatic org.apache.commons.logging.Loglogstatic StringQUIT_ACTION
-
Constructor Summary
Constructors Constructor Description ConfigUIHandler(ConfigUI ui)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaskUser(String title, String message, int typeMessage, Object[] options, int defaultOption)protected booleancanQuitCategory()voidchangeCategory(ChangeEvent e)protected voidcloseUI(Window parentWindow, ConfigUIModel model)protected ActioncreateQuitAction()voiddestroy()voiddisplayUI(Frame parentUI, boolean undecorated)voidinitUI(String defaultCategory)voidsetChangeCategoryCallBack(ConfigUIHandler.ChangeCategoryCallBack changeCategoryCallBack)voidsetConfigCallBackUICustomizer(ConfigUIHandler.ConfigCallBackUICustomizer configCallBackUICustomizer)voidsetTopContainer(Container topContainer)
-
-
-
Field Detail
-
log
public static final org.apache.commons.logging.Log log
-
CALLBACKS_WITH_OPTIONS
public static final String CALLBACKS_WITH_OPTIONS
- See Also:
- Constant Field Values
-
CALLBACKS
public static final String CALLBACKS
- See Also:
- Constant Field Values
-
QUIT_ACTION
public static final String QUIT_ACTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigUIHandler
public ConfigUIHandler(ConfigUI ui)
-
-
Method Detail
-
setChangeCategoryCallBack
public void setChangeCategoryCallBack(ConfigUIHandler.ChangeCategoryCallBack changeCategoryCallBack)
-
initUI
public void initUI(String defaultCategory)
-
destroy
public void destroy()
-
changeCategory
public void changeCategory(ChangeEvent e)
-
displayUI
public void displayUI(Frame parentUI, boolean undecorated)
-
createQuitAction
protected Action createQuitAction()
-
setConfigCallBackUICustomizer
public void setConfigCallBackUICustomizer(ConfigUIHandler.ConfigCallBackUICustomizer configCallBackUICustomizer)
-
closeUI
protected void closeUI(Window parentWindow, ConfigUIModel model)
-
canQuitCategory
protected boolean canQuitCategory()
-
askUser
public int askUser(String title, String message, int typeMessage, Object[] options, int defaultOption)
-
setTopContainer
public void setTopContainer(Container topContainer)
-
-