public abstract class VisibleState extends AbstractState implements Localizable
manager, properties, propertyChangeSupport
ACTIVATION_PROPERTY, ACTIVE_ICON_PROPERTY, DISABLED_ICON_PROPERTY, ENABLE_PROPERTY, INACTIVE_ICON_PROPERTY, LABEL_TEXT_PROPERTY, POPUP_PROPERTY, TOOLTIP_TEXT_PROPERTY
Constructor and Description |
---|
VisibleState()
Create a new abstract state.
|
VisibleState(java.lang.String baseTag)
Create a visible state from I18n settings.
|
VisibleState(java.lang.String labelResourceKey,
java.lang.String tooltipResourceKey,
javax.swing.Icon activeIcon)
Create a visible state with default icons.
|
VisibleState(java.lang.String labelResourceKey,
java.lang.String tooltipResourceKey,
javax.swing.Icon activeIcon,
javax.swing.Icon inactiveIcon,
javax.swing.Icon disabledIcon)
Create a visible state.
|
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getLocale()
Get the locale.
|
void |
setLocale(java.util.Locale l)
Set the locale.
|
actionPerformed, activate, addPropertyChangeListener, addPropertyChangeListener, addToToolBar, addToToolBar, deactivate, getValue, isActivated, isEnabled, isToggleEnabled, putValue, refresh, removePropertyChangeListener, removePropertyChangeListener, setEnabled, setManager, setProperty, showPopup
public VisibleState(java.lang.String labelResourceKey, java.lang.String tooltipResourceKey, javax.swing.Icon activeIcon, javax.swing.Icon inactiveIcon, javax.swing.Icon disabledIcon)
labelResourceKey
- resource key for labels and menu itemstooltipResourceKey
- resource key for tooltipsactiveIcon
- icon to be displayed when state is activeinactiveIcon
- icon to be displayed when state is inactivedisabledIcon
- icon to be displayed when state is disabled
(if null
the Swing standard is used)public VisibleState()
public VisibleState(java.lang.String labelResourceKey, java.lang.String tooltipResourceKey, javax.swing.Icon activeIcon)
labelResourceKey
- resource key for labels and menu itemstooltipResourceKey
- resource key for tooltipsactiveIcon
- icon to be displayed when state is activepublic VisibleState(@NotNull java.lang.String baseTag)
baseTag
- I18n base tagpublic void setLocale(java.util.Locale l)
setLocale
in interface Localizable
l
- locale to set.public java.util.Locale getLocale()
getLocale
in interface Localizable