org.apache.batik.apps.svgbrowser

Class NodePickerPanel.NodePickerEvent

public static class NodePickerPanel.NodePickerEvent extends EventObject

Event to pass to listener.
Field Summary
static intADD_NEW_ELEMENT
static intEDIT_ELEMENT
Constructor Summary
NodePickerEvent(Object source, String result, Node contextNode, int type)
Creates the NodePickerEvent.
Method Summary
NodegetContextNode()
Gets the context node.
StringgetResult()
Gets the NodePickerPanel result.
intgetType()
Gets the type of this event.

Field Detail

ADD_NEW_ELEMENT

public static final int ADD_NEW_ELEMENT

EDIT_ELEMENT

public static final int EDIT_ELEMENT

Constructor Detail

NodePickerEvent

public NodePickerEvent(Object source, String result, Node contextNode, int type)
Creates the NodePickerEvent.

Parameters: source The NodePicker that initiated the event result the NodePicker result contextNode the associated context node

Method Detail

getContextNode

public 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

getResult

public String getResult()
Gets the NodePickerPanel result.

Returns: the result

getType

public int getType()
Gets the type of this event.

Returns: the type

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.