Package be.gaudry.swing.action
Class LocalizedSelectableAction
java.lang.Object
javax.swing.AbstractAction
be.gaudry.swing.action.LocalizableAction
be.gaudry.swing.action.AutoLocalizedAction
be.gaudry.swing.action.AuthenticatedAction
be.gaudry.swing.action.LocalizedSelectableAction
- All Implemented Interfaces:
ILocalized
,ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,Action
The LocalizedSelectableAction knows if it's selected or not, for the
toggle GUI components. It's possible to listen the selected property change
by using the
SELECTED
key.
\n
Provided by the broldev.core.swing project.- Since:
- 1.0 (Sep 7, 2009), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Sep 7, 2009)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static String
Key to listen the "selected" property changesFields inherited from class be.gaudry.swing.action.AuthenticatedAction
loginMessage, loginTitle
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Toggle selected.boolean
void
setSelected(boolean selected)
Methods inherited from class be.gaudry.swing.action.AuthenticatedAction
actionPerformed, afterUpdateLanguage, authenticationCanceled, authenticationFailed, beforeActionPerformed, getLoginService, getServers, setLoginPane, unSecuredActionPerformed
Methods inherited from class be.gaudry.swing.action.AutoLocalizedAction
beforeUpdateLanguage, doAfterCreate, init, propertyChange
Methods inherited from class be.gaudry.swing.action.LocalizableAction
doOnCreate
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface be.gaudry.model.locale.ILocalized
setLanguage
-
Field Details
-
selected
protected boolean selected -
SELECTED
Key to listen the "selected" property changes
-
-
Constructor Details
-
LocalizedSelectableAction
public LocalizedSelectableAction()
-
-
Method Details
-
isSelected
public final boolean isSelected()- Returns:
- true if selected
-
setSelected
public final void setSelected(boolean selected)- Parameters:
selected
- true to be selected
-
authenticatedActionPerformed
Toggle selected. Don't forget to call the super.authenticatedActionPerformed(e); when you override this- Specified by:
authenticatedActionPerformed
in classAuthenticatedAction
- Parameters:
e
- to get event and source informations- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
,ActionEvent
-