Class TreeDataEvent


  • public class TreeDataEvent
    extends java.lang.Object
    Defines an event that encapsulates changes to a tree.
    Since:
    3.0.0
    Author:
    Jeff Liu
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeDataEvent​(TreeModel model, int type, int[] nodePath, int indexFrom, int indexTo)
      Constructor.
      TreeDataEvent​(TreeModel model, int type, int[] nodePath, int indexFrom, int indexTo, int[] affectedPath)
      Constructor.
      TreeDataEvent​(TreeModel model, int type, int[] nodePath, int indexFrom, int indexTo, int[][] affectedPaths)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[] getAffectedPath()
      Return the path of removed node
      int[][] getAffectedPaths()
      Return the paths of removed nodes, if any.
      int getIndexFrom()
      Return the lower index of the change range
      int getIndexTo()
      Return the upper index of the change range
      TreeModel getModel()
      Returns the tree model that fires this event.
      int[] getPath()
      Returns the path of the affected node.
      int getType()
      Returns the event type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait