public class NodePickerPanel extends JPanel implements ActionMap
| Modifier and Type | Class and Description |
|---|---|
protected class |
NodePickerPanel.AddButtonAction
The action associated with the 'Add' button.
|
protected class |
NodePickerPanel.ApplyButtonAction
The action associated with the 'Apply' button.
|
static class |
NodePickerPanel.AttributesTableModel
The attributesTable model.
|
protected class |
NodePickerPanel.AttributesTableModelListener
Listens for the changes in the table and updates this node picker panel
if needed.
|
static class |
NodePickerPanel.NameEditorDialog
Dialog for choosing element name.
|
static class |
NodePickerPanel.NodePickerAdapter
The adapter for the NodePicker listener.
|
protected class |
NodePickerPanel.NodePickerEditListener
Manages the edits on focus events.
|
static class |
NodePickerPanel.NodePickerEvent
Event to pass to listener.
|
static interface |
NodePickerPanel.NodePickerListener
Node picker listener.
|
protected class |
NodePickerPanel.RemoveButtonAction
The action associated with the 'Remove' button.
|
protected class |
NodePickerPanel.ResetButtonAction
The action associated with the 'Reset' button.
|
protected class |
NodePickerPanel.SVGInputPanel
The panel to view and edit the elements xml representation.
|
protected class |
NodePickerPanel.XMLAreaListener
Listens for the changes in the xml text area and updates this node picker
panel if needed.
|
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategylistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
NodePickerPanel(NodePickerController controller)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(NodePickerPanel.NodePickerListener listener)
Adds the listener to the listener list.
|
void |
enterAddNewElementMode(Element newElement,
Node parent)
Enters the add new element mode.
|
void |
enterEditMode()
Enters the edit mode.
|
void |
enterViewMode()
Enters the view mode.
|
void |
fireAddNewElement(NodePickerPanel.NodePickerEvent event)
Fires the AddNewElement event.
|
void |
fireUpdateElement(NodePickerPanel.NodePickerEvent event)
Fires the updateElement event.
|
Action |
getAction(String key)
Returns the action associated with the given string or null on error
|
String |
getResults()
Gets the results of this node picker panel - gets the contents of the xml
text area.
|
boolean |
promptForChanges()
Shows a dialog to save changes.
|
void |
setEditable(boolean editable)
Sets the node picker components to be editable / uneditable.
|
void |
setPreviewElement(Element elem)
Sets the preview element.
|
void |
updateOnDocumentChange(String mutationEventType,
Node targetNode)
Updates the panel when DOM Mutation event occures.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic NodePickerPanel(NodePickerController controller)
controller - The node picker panel controllerpublic String getResults()
public void setPreviewElement(Element elem)
elem - the element to setpublic void enterViewMode()
public void enterEditMode()
public void enterAddNewElementMode(Element newElement, Node parent)
newElement - The element to be addedparent - The parent node of the element to be addedpublic void updateOnDocumentChange(String mutationEventType, Node targetNode)
public void setEditable(boolean editable)
editable - Whether to enable or disable editpublic boolean promptForChanges()
public Action getAction(String key) throws MissingListenerException
getAction in interface ActionMapkey - the key mapped with the action to getMissingListenerException - if the action is not foundpublic void fireUpdateElement(NodePickerPanel.NodePickerEvent event)
event - The associated NodePickerEvent eventpublic void fireAddNewElement(NodePickerPanel.NodePickerEvent event)
event - The associated NodePickerEvent eventpublic void addListener(NodePickerPanel.NodePickerListener listener)
listener - The listener to addCopyright © 2000–2017 Apache Software Foundation. All rights reserved.