|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.batik.apps.svgbrowser.NodePickerPanel
public class NodePickerPanel
Used to preview and edit nodes.
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. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
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. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodePickerPanel(NodePickerController controller)
controller
- The node picker panel controllerMethod Detail |
---|
public 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 ActionMap
key
- the key mapped with the action to get
MissingListenerException
- 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 add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |