Package org.nuiton.jaxx.widgets.i18n
Class I18nEditorHandler
- java.lang.Object
-
- org.nuiton.jaxx.widgets.i18n.I18nEditorHandler
-
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,EventListener,UIHandler<I18nEditor>
public class I18nEditorHandler extends Object implements PropertyChangeListener, ActionListener, UIHandler<I18nEditor>
Handler of uiI18nEditor.- Since:
- 2.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_NOT_SELECTED_TOOLTIPstatic StringDEFAULT_SELECTED_TOOLTIPstatic StringLOCALES_PROPERTYstatic StringPOPUP_BORDER_PROPERTYstatic StringPOPUP_VISIBLE_PROPERTYstatic StringSELECTED_LOCALE_PROPERTYstatic StringSHOW_ICON_PROPERTYstatic StringSHOW_POPUP_ICON_PROPERTYstatic StringSHOW_POPUP_TEXT_PROPERTYstatic StringSHOW_TEXT_PROPERTYprotected RunnableshowPopupRunnableprotected I18nEditorui
-
Constructor Summary
Constructors Constructor Description I18nEditorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent event)voidafterInit(I18nEditor ui)voidbeforeInit(I18nEditor ui)protected StringgetNotSelectedTip(Locale l)protected StringgetSelectedTip(Locale l)protected StringgetTip(Locale l)voidloadI18nBundles()voidpropertyChange(PropertyChangeEvent evt)protected voidrebuildPopup()
-
-
-
Field Detail
-
ui
protected I18nEditor ui
-
DEFAULT_SELECTED_TOOLTIP
public static final String DEFAULT_SELECTED_TOOLTIP
-
DEFAULT_NOT_SELECTED_TOOLTIP
public static final String DEFAULT_NOT_SELECTED_TOOLTIP
-
LOCALES_PROPERTY
public static final String LOCALES_PROPERTY
- See Also:
- Constant Field Values
-
SELECTED_LOCALE_PROPERTY
public static final String SELECTED_LOCALE_PROPERTY
- See Also:
- Constant Field Values
-
SHOW_ICON_PROPERTY
public static final String SHOW_ICON_PROPERTY
- See Also:
- Constant Field Values
-
SHOW_TEXT_PROPERTY
public static final String SHOW_TEXT_PROPERTY
- See Also:
- Constant Field Values
-
SHOW_POPUP_ICON_PROPERTY
public static final String SHOW_POPUP_ICON_PROPERTY
- See Also:
- Constant Field Values
-
SHOW_POPUP_TEXT_PROPERTY
public static final String SHOW_POPUP_TEXT_PROPERTY
- See Also:
- Constant Field Values
-
POPUP_BORDER_PROPERTY
public static final String POPUP_BORDER_PROPERTY
- See Also:
- Constant Field Values
-
POPUP_VISIBLE_PROPERTY
public static final String POPUP_VISIBLE_PROPERTY
- See Also:
- Constant Field Values
-
showPopupRunnable
protected final Runnable showPopupRunnable
-
-
Method Detail
-
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacePropertyChangeListener
-
actionPerformed
public void actionPerformed(ActionEvent event)
- Specified by:
actionPerformedin interfaceActionListener
-
loadI18nBundles
public void loadI18nBundles()
-
rebuildPopup
protected void rebuildPopup()
-
beforeInit
public void beforeInit(I18nEditor ui)
- Specified by:
beforeInitin interfaceUIHandler<I18nEditor>
-
afterInit
public void afterInit(I18nEditor ui)
- Specified by:
afterInitin interfaceUIHandler<I18nEditor>
-
-