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
FieldsModifier and TypeFieldDescriptionprotected booleanstatic StringKey to listen the "selected" property changesFields inherited from class be.gaudry.swing.action.AuthenticatedAction
loginMessage, loginTitleFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidToggle selected.booleanvoidsetSelected(boolean selected)Methods inherited from class be.gaudry.swing.action.AuthenticatedAction
actionPerformed, afterUpdateLanguage, authenticationCanceled, authenticationFailed, beforeActionPerformed, getLoginService, getServers, setLoginPane, unSecuredActionPerformedMethods inherited from class be.gaudry.swing.action.AutoLocalizedAction
beforeUpdateLanguage, doAfterCreate, init, propertyChangeMethods inherited from class be.gaudry.swing.action.LocalizableAction
doOnCreateMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
authenticatedActionPerformedin classAuthenticatedAction- Parameters:
e- to get event and source informations- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent),ActionEvent
-