Package org.apache.batik.apps.svgbrowser
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:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,javax.swing.RootPaneContainer,javax.swing.WindowConstants,ActionMap
- Enclosing class:
- NodePickerPanel
public static class NodePickerPanel.NameEditorDialog extends javax.swing.JDialog implements ActionMap
Dialog for choosing element name.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classNodePickerPanel.NameEditorDialog.CancelButtonActionThe action associated with the 'Cancel' button of Attribute Adder Dialogprotected classNodePickerPanel.NameEditorDialog.OKButtonActionThe action associated with the 'OK' button of Attribute Adder Dialog-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.ResourceBundlebundleThe resource bundle.protected ButtonFactorybuttonFactoryThe Button factory.static intCANCEL_OPTIONThe return value if 'Cancel' is chosen.protected javax.swing.JButtoncancelButtonThe Cancel button.protected java.util.MaplistenersThe map that contains the listenersprotected javax.swing.JPanelmainPanelThe Dialog main panel.protected javax.swing.JTextFieldnodeNameFieldThe node name field.protected javax.swing.JLabelnodeNameLabelThe node name label.static intOK_OPTIONThe return value if 'OK' is chosen.protected javax.swing.JButtonokButtonThe OK button.protected static ResourceManagerresourcesThe resource manager.protected static java.lang.StringRESOURCESThe resource file name.protected intreturnCodeThe Dialog results.-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description NameEditorDialog(java.awt.Frame frame)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddButtonActions()Adds button actions.javax.swing.ActiongetAction(java.lang.String key)Returns the action associated with the given string or null on errorprotected ButtonFactorygetButtonFactory()Gets buttonFactory.protected javax.swing.JButtongetCancelButton()Gets the Cancel button.protected javax.swing.JPanelgetMainPanel()Gets dialog's main panel.protected javax.swing.JTextFieldgetNodeNameField()Gets the text field for node name.javax.swing.JLabelgetNodeNameLabel()Gets the node name label.protected javax.swing.JButtongetOkButton()Gets the Ok button.java.lang.StringgetResults()Gets the dialog results.protected voidinitialize()Initializes the dialog.intshowDialog()Shows the dialog.-
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
OK_OPTION
public static final int OK_OPTION
The return value if 'OK' is chosen.- See Also:
- Constant Field Values
-
CANCEL_OPTION
public static final int CANCEL_OPTION
The return value if 'Cancel' is chosen.- See Also:
- Constant Field Values
-
RESOURCES
protected static final java.lang.String RESOURCES
The resource file name.- See Also:
- Constant Field Values
-
bundle
protected static java.util.ResourceBundle bundle
The resource bundle.
-
resources
protected static ResourceManager resources
The resource manager.
-
returnCode
protected int returnCode
The Dialog results.
-
mainPanel
protected javax.swing.JPanel mainPanel
The Dialog main panel.
-
buttonFactory
protected ButtonFactory buttonFactory
The Button factory.
-
nodeNameLabel
protected javax.swing.JLabel nodeNameLabel
The node name label.
-
nodeNameField
protected javax.swing.JTextField nodeNameField
The node name field.
-
okButton
protected javax.swing.JButton okButton
The OK button.
-
cancelButton
protected javax.swing.JButton cancelButton
The Cancel button.
-
listeners
protected java.util.Map listeners
The map that contains the listeners
-
-
Method Detail
-
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 javax.swing.JButton getOkButton()
Gets the Ok button.- Returns:
- the okButton
-
getCancelButton
protected javax.swing.JButton getCancelButton()
Gets the Cancel button.- Returns:
- the cancelButton
-
getMainPanel
protected javax.swing.JPanel getMainPanel()
Gets dialog's main panel.- Returns:
- the mainPanel
-
getNodeNameLabel
public javax.swing.JLabel getNodeNameLabel()
Gets the node name label.- Returns:
- the nodeNameLabel
-
getNodeNameField
protected javax.swing.JTextField getNodeNameField()
Gets the text field for node name.- Returns:
- the nodeNameField
-
getResults
public java.lang.String getResults()
Gets the dialog results.- Returns:
- the element name
-
getAction
public javax.swing.Action getAction(java.lang.String key) throws MissingListenerExceptionReturns the action associated with the given string or null on error- Specified by:
getActionin interfaceActionMap- Parameters:
key- the key mapped with the action to get- Throws:
MissingListenerException- if the action is not found
-
-