Class LocalizableAction

java.lang.Object
javax.swing.AbstractAction
be.gaudry.swing.action.LocalizableAction
All Implemented Interfaces:
ILocalized, ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
AutoLocalizedAction

public abstract class LocalizableAction extends AbstractAction implements ILocalized
Allows localization by invoking the ILocalized.setLanguage() method. Provided by the broldev.core.swing project.
Since:
1.0 (Mar 27, 2009), broldev.core.swing 0.0.1-SNAPSHOT dependency
Version:
1.0 (Mar 27, 2009)
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

    • LocalizableAction

      public LocalizableAction()
      Builds a LanguageObserverAction object with a default description string and default icon.
    • LocalizableAction

      public LocalizableAction(String name)
      Builds a LanguageObserverAction object with the specified description string and a default icon.
      Parameters:
      name - description of the action
    • LocalizableAction

      public LocalizableAction(String name, Icon icon)
      Builds a LanguageObserverAction object with the specified description string and a the specified icon.
      Parameters:
      name - description of the action
      icon - image of the action
  • Method Details

    • init

      protected void init()
    • doOnCreate

      protected void doOnCreate()
      This method is called in the constructor before the ILocalized.setLanguage() method