Package be.gaudry.swing.action
Class ShowPanelAction<T extends JPanel>
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.AbstractShowPanelAction<T>
be.gaudry.swing.action.ShowPanelAction<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
ILocalized
,ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
EidActionsFactory.ShowBeIDPanelAction
Basic implementation of an AbstractShowPanelAction
Provided by the broldev.core.swing project.
- Since:
- 1.0 (Mar 18, 2009), broldev.core.swing 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 (Mar 18, 2009)
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class be.gaudry.swing.action.AbstractShowPanelAction
card, frame, panel, panelId
Fields 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
ConstructorDescriptionShowPanelAction(Class<T> clazz, Enum<? extends IBrolCard> card)
Builds an instance of this action.ShowPanelAction(Class<T> clazz, Enum<? extends IBrolCard> card, IBrolImage icon)
Builds an instance of this action with an associated icon. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jdesktop.swingx.auth.LoginService
Allows to use an authentication called on eachAuthenticatedAction.actionPerformed(ActionEvent)
call.Methods inherited from class be.gaudry.swing.action.AbstractShowPanelAction
addPanelListener, authenticatedActionPerformed, buildPanel, close, getBrolImage, getCard, getPanel, getTitle, isPanelBuilt, isPanelShowing, isVisibleInMenu, setFrame, setLanguage, setVisibleInMenu, showPanel
Methods inherited from class be.gaudry.swing.action.AuthenticatedAction
actionPerformed, afterUpdateLanguage, authenticationCanceled, authenticationFailed, beforeActionPerformed, 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
-
Constructor Details
-
ShowPanelAction
Builds an instance of this action.- Parameters:
clazz
- Class of the panel;(to build an instance of the panel)card
- to identify the panel
-
ShowPanelAction
Builds an instance of this action with an associated icon.- Parameters:
clazz
- Class of the panel;(to build an instance of the panel)card
- to identify the panelicon
- to display for all actions concerning this panel- See Also:
AbstractShowPanelAction.getCard()
,AbstractShowPanelAction.getBrolImage()
-
-
Method Details
-
getLoginService
protected org.jdesktop.swingx.auth.LoginService getLoginService()Description copied from class:AuthenticatedAction
Allows to use an authentication called on eachAuthenticatedAction.actionPerformed(ActionEvent)
call. May returnnull
to disable authentication.- Specified by:
getLoginService
in classAuthenticatedAction
- Returns:
- the loginService or null
- See Also:
AuthenticatedAction.authenticatedActionPerformed(ActionEvent)
-