Package org.apache.batik.apps.svgbrowser
Class NodePickerPanel.NodePickerEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.apache.batik.apps.svgbrowser.NodePickerPanel.NodePickerEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- NodePickerPanel
public static class NodePickerPanel.NodePickerEvent extends java.util.EventObjectEvent to pass to listener.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intADD_NEW_ELEMENTprivate org.w3c.dom.NodecontextNodeThe context node associated with this event.static intEDIT_ELEMENTprivate java.lang.StringresultThe string that is to be parsed.private inttypeThe type of this event.
-
Constructor Summary
Constructors Constructor Description NodePickerEvent(java.lang.Object source, java.lang.String result, org.w3c.dom.Node contextNode, int type)Creates the NodePickerEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodegetContextNode()Gets the context node.java.lang.StringgetResult()Gets the NodePickerPanel result.intgetType()Gets the type of this event.
-
-
-
Field Detail
-
EDIT_ELEMENT
public static final int EDIT_ELEMENT
- See Also:
- Constant Field Values
-
ADD_NEW_ELEMENT
public static final int ADD_NEW_ELEMENT
- See Also:
- Constant Field Values
-
type
private int type
The type of this event.
-
result
private java.lang.String result
The string that is to be parsed.
-
contextNode
private org.w3c.dom.Node contextNode
The context node associated with this event.
-
-
Constructor Detail
-
NodePickerEvent
public NodePickerEvent(java.lang.Object source, java.lang.String result, org.w3c.dom.Node contextNode, int type)Creates the NodePickerEvent.- Parameters:
source- The NodePicker that initiated the eventresult- the NodePicker resultcontextNode- the associated context node
-
-
Method Detail
-
getResult
public java.lang.String getResult()
Gets the NodePickerPanel result.- Returns:
- the result
-
getContextNode
public org.w3c.dom.Node getContextNode()
Gets the context node. 'EDIT_ELEMENT' event type - the context node is the original element being previewed. 'ADD_NEW_ELEMENT' event type - the context node is the parent node of the element being added- Returns:
- the context node
-
getType
public int getType()
Gets the type of this event.- Returns:
- the type
-
-