diff options
Diffstat (limited to 'libjava/classpath/javax/swing/event/TreeModelEvent.java')
-rw-r--r-- | libjava/classpath/javax/swing/event/TreeModelEvent.java | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/libjava/classpath/javax/swing/event/TreeModelEvent.java b/libjava/classpath/javax/swing/event/TreeModelEvent.java index 2d562a5c4a8..490126f4d38 100644 --- a/libjava/classpath/javax/swing/event/TreeModelEvent.java +++ b/libjava/classpath/javax/swing/event/TreeModelEvent.java @@ -46,7 +46,7 @@ import javax.swing.tree.TreePath; * TreeModelEvent * @author Andrew Selkirk */ -public class TreeModelEvent extends EventObject +public class TreeModelEvent extends EventObject { /** @@ -63,17 +63,17 @@ public class TreeModelEvent extends EventObject * path */ protected TreePath path = null; - + /** * Constructor TreeModelEvent * @param source Source object * @param path */ - public TreeModelEvent(Object source, Object[] path) + public TreeModelEvent(Object source, Object[] path) { super(source); this.path = new TreePath(path); - } + } /** * Constructor TreeModelEvent @@ -83,24 +83,24 @@ public class TreeModelEvent extends EventObject * @param children Children */ public TreeModelEvent(Object source, Object[] path, - int[] childIndices, Object[] children) + int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; - } + } /** * Constructor TreeModelEvent * @param source Source object * @param path Path */ - public TreeModelEvent(Object source, TreePath path) + public TreeModelEvent(Object source, TreePath path) { super(source); this.path = path; - } + } /** * Constructor TreeModelEvent @@ -110,59 +110,59 @@ public class TreeModelEvent extends EventObject * @param children Children */ public TreeModelEvent(Object source, TreePath path, - int[] childIndices, Object[] children) + int[] childIndices, Object[] children) { super(source); this.path = path; this.childIndices = childIndices; this.children = children; - } + } /** * getChildIndices * @return child indices */ - public int[] getChildIndices() + public int[] getChildIndices() { return childIndices; - } + } /** * getChildren * @return children */ - public Object[] getChildren() + public Object[] getChildren() { return children; - } + } /** * getPath * @return path */ - public Object[] getPath() + public Object[] getPath() { return path.getPath(); - } + } /** * getTreePath * @return TreePath */ - public TreePath getTreePath() + public TreePath getTreePath() { return path; - } + } - /** + /** * String representation * @return String representation */ - public String toString() + public String toString() { - return getClass() + " [Source: " + getSource() + ", TreePath: " - + getTreePath() + ", Child Indicies: " + getChildIndices() + return getClass() + " [Source: " + getSource() + ", TreePath: " + + getTreePath() + ", Child Indicies: " + getChildIndices() + ", Children: " + getChildren() + ", Path: " + getPath() +"]"; - } + } -} +} |