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:
Serializable
- Enclosing class:
NodePickerPanel
Event to pass to listener.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private Node
The context node associated with this event.static final int
private String
The string that is to be parsed.private int
The type of this event.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionNodePickerEvent
(Object source, String result, Node contextNode, int type) Creates the NodePickerEvent. -
Method Summary
Modifier and TypeMethodDescriptionGets the context node.Gets the NodePickerPanel result.int
getType()
Gets the type of this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
EDIT_ELEMENT
public static final int EDIT_ELEMENT- See Also:
-
ADD_NEW_ELEMENT
public static final int ADD_NEW_ELEMENT- See Also:
-
type
private int typeThe type of this event. -
result
The string that is to be parsed. -
contextNode
The context node associated with this event.
-
-
Constructor Details
-
NodePickerEvent
Creates the NodePickerEvent.- Parameters:
source
- The NodePicker that initiated the eventresult
- the NodePicker resultcontextNode
- the associated context node
-
-
Method Details
-
getResult
Gets the NodePickerPanel result.- Returns:
- the result
-
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
-