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, 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 TypeMethodDescriptionvoidactionPerformed(ActionEvent arg0)protected voidThis method is called in the constructor after theILocalized.setLanguage()methodprotected voidThis method is called in the constructor before theILocalized.setLanguage()methodbooleanbooleanvoidsetClearOnCardRemoved(boolean clearOnCardRemoved)voidSets localized language The implementation should use aResourceBundleto load information based on the user'sLocale, and may observe theLanguageHelperto update the GUI on Locale switch.voidsetStarted(boolean started)Sets theAction.SMALL_ICONand theAction.NAMEvalues 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, propertyChangeMethods 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:AutoLocalizedActionThis method is called in the constructor after theILocalized.setLanguage()method- Overrides:
doAfterCreatein classAutoLocalizedAction
-
doOnCreate
protected void doOnCreate()Description copied from class:LocalizableActionThis method is called in the constructor before theILocalized.setLanguage()method- Overrides:
doOnCreatein classLocalizableAction
-
setLanguage
public void setLanguage()Description copied from interface:ILocalizedSets localized language The implementation should use aResourceBundleto load information based on the user'sLocale, and may observe theLanguageHelperto 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_ICONand theAction.NAMEvalues 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:
trueif all data fields must be cleaned when a card is inserted
-
setClearOnCardRemoved
public void setClearOnCardRemoved(boolean clearOnCardRemoved)- Parameters:
clearOnCardRemoved-trueif all data fields must be cleaned when a card is inserted
-
actionPerformed
-