Package be.gaudry.swing.eid.action
Class EidActionsFactory.ListenEidAction
java.lang.Object
javax.swing.AbstractAction
be.gaudry.swing.action.LocalizableAction
be.gaudry.swing.action.AutoLocalizedAction
be.gaudry.swing.eid.action.EidActionsFactory.ListenEidAction
- All Implemented Interfaces:
ILocalized
,ActionListener
,PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,Action
- Enclosing class:
- EidActionsFactory
- Since:
- 1.0 Jun 19, 2009, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Field Summary
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
actionPerformed(ActionEvent arg0)
protected void
This method is called in the constructor after theILocalized.setLanguage()
methodprotected void
This method is called in the constructor before theILocalized.setLanguage()
methodboolean
boolean
void
setClearOnCardRemoved(boolean clearOnCardRemoved)
void
Sets localized language The implementation should use aResourceBundle
to load information based on the user'sLocale
, and may observe theLanguageHelper
to update the GUI on Locale switch.void
setStarted(boolean started)
Sets theAction.SMALL_ICON
and theAction.NAME
values according to the state of the action (if a search is performing, calling this method will stop the search, otherwise this will start a search).Methods inherited from class be.gaudry.swing.action.AutoLocalizedAction
init, propertyChange
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ListenEidAction
public ListenEidAction()
-
-
Method Details
-
doAfterCreate
protected void doAfterCreate()Description copied from class:AutoLocalizedAction
This method is called in the constructor after theILocalized.setLanguage()
method- Overrides:
doAfterCreate
in classAutoLocalizedAction
-
doOnCreate
protected void doOnCreate()Description copied from class:LocalizableAction
This method is called in the constructor before theILocalized.setLanguage()
method- Overrides:
doOnCreate
in classLocalizableAction
-
setLanguage
public void setLanguage()Description copied from interface:ILocalized
Sets localized language The implementation should use aResourceBundle
to load information based on the user'sLocale
, and may observe theLanguageHelper
to update the GUI on Locale switch. -
isStarted
public boolean isStarted()- Returns:
- true if a search is started
-
setStarted
public void setStarted(boolean started)Sets theAction.SMALL_ICON
and theAction.NAME
values according to the state of the action (if a search is performing, calling this method will stop the search, otherwise this will start a search).- Parameters:
started
- set true if a search is started
-
isClearOnCardRemoved
public boolean isClearOnCardRemoved()- Returns:
true
if all data fields must be cleaned when a card is inserted
-
setClearOnCardRemoved
public void setClearOnCardRemoved(boolean clearOnCardRemoved)- Parameters:
clearOnCardRemoved
-true
if all data fields must be cleaned when a card is inserted
-
actionPerformed
-