Class NodePickerPanel.NameEditorDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.apache.batik.apps.svgbrowser.NodePickerPanel.NameEditorDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, ActionMap
Enclosing class:
NodePickerPanel

public static class NodePickerPanel.NameEditorDialog extends JDialog implements ActionMap
Dialog for choosing element name.
See Also:
  • Field Details

    • OK_OPTION

      public static final int OK_OPTION
      The return value if 'OK' is chosen.
      See Also:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      The return value if 'Cancel' is chosen.
      See Also:
    • RESOURCES

      protected static final String RESOURCES
      The resource file name.
      See Also:
    • bundle

      protected static ResourceBundle bundle
      The resource bundle.
    • resources

      protected static ResourceManager resources
      The resource manager.
    • returnCode

      protected int returnCode
      The Dialog results.
    • mainPanel

      protected JPanel mainPanel
      The Dialog main panel.
    • buttonFactory

      protected ButtonFactory buttonFactory
      The Button factory.
    • nodeNameLabel

      protected JLabel nodeNameLabel
      The node name label.
    • nodeNameField

      protected JTextField nodeNameField
      The node name field.
    • okButton

      protected JButton okButton
      The OK button.
    • cancelButton

      protected JButton cancelButton
      The Cancel button.
    • listeners

      protected Map listeners
      The map that contains the listeners
  • Constructor Details

    • NameEditorDialog

      public NameEditorDialog(Frame frame)
      Constructor.
      Parameters:
      frame - Parent frame
  • Method Details

    • initialize

      protected void initialize()
      Initializes the dialog.
    • getButtonFactory

      protected ButtonFactory getButtonFactory()
      Gets buttonFactory.
    • addButtonActions

      protected void addButtonActions()
      Adds button actions.
    • showDialog

      public int showDialog()
      Shows the dialog.
      Returns:
      OK_OPTION or CANCEL_OPTION.
    • getOkButton

      protected JButton getOkButton()
      Gets the Ok button.
      Returns:
      the okButton
    • getCancelButton

      protected JButton getCancelButton()
      Gets the Cancel button.
      Returns:
      the cancelButton
    • getMainPanel

      protected JPanel getMainPanel()
      Gets dialog's main panel.
      Returns:
      the mainPanel
    • getNodeNameLabel

      public JLabel getNodeNameLabel()
      Gets the node name label.
      Returns:
      the nodeNameLabel
    • getNodeNameField

      protected JTextField getNodeNameField()
      Gets the text field for node name.
      Returns:
      the nodeNameField
    • getResults

      public String getResults()
      Gets the dialog results.
      Returns:
      the element name
    • getAction

      public Action getAction(String key) throws MissingListenerException
      Returns the action associated with the given string or null on error
      Specified by:
      getAction in interface ActionMap
      Parameters:
      key - the key mapped with the action to get
      Throws:
      MissingListenerException - if the action is not found