Class LocalizedAction.Factory

  • Enclosing class:
    LocalizedAction

    public static class LocalizedAction.Factory
    extends java.lang.Object
    A factory class for creating multiple actions using the same ResourceBundle and a common resource prefix.
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(java.util.ResourceBundle bundle, java.lang.String resourcePrefix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Action newAction​(java.lang.String keySuffix, java.awt.event.ActionListener handler)
      Create an action using an ActionListener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Factory

        public Factory​(java.util.ResourceBundle bundle,
                       java.lang.String resourcePrefix)
    • Method Detail

      • newAction

        public javax.swing.Action newAction​(java.lang.String keySuffix,
                                            java.awt.event.ActionListener handler)
        Create an action using an ActionListener. The action's resource keys must begin with resourcePrefix+keySuffix.