Class NodePickerPanel.NodePickerEvent

java.lang.Object
java.util.EventObject
org.apache.batik.apps.svgbrowser.NodePickerPanel.NodePickerEvent
All Implemented Interfaces:
Serializable
Enclosing class:
NodePickerPanel

public static class NodePickerPanel.NodePickerEvent extends EventObject
Event to pass to listener.
See Also:
  • Field Details

  • Constructor Details

    • 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 Details

    • getResult

      public String getResult()
      Gets the NodePickerPanel result.
      Returns:
      the result
    • 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
    • getType

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