org.apache.batik.apps.svgbrowser
public class NodePickerPanel extends JPanel implements ActionMap
| Nested Class Summary | |
|---|---|
| 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. |
| Constructor Summary | |
|---|---|
| NodePickerPanel(NodePickerController controller)
Constructor.
| |
| Method Summary | |
|---|---|
| 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. |
Parameters: controller The node picker panel controller
Parameters: listener The listener to add
Parameters: newElement The element to be added parent The parent node of the element to be added
Parameters: event The associated NodePickerEvent event
Parameters: event The associated NodePickerEvent event
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found
Parameters: editable Whether to enable or disable edit
Parameters: elem the element to set