Imported GNU Classpath 0.90
Imported GNU Classpath 0.90 * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore. * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant. * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5. * java/lang/Math.java: New override file. * java/lang/Character.java: Merged from Classpath. (start, end): Now 'int's. (canonicalName): New field. (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants. (UnicodeBlock): Added argument. (of): New overload. (forName): New method. Updated unicode blocks. (sets): Updated. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r111942
This commit is contained in:
parent
27079765d0
commit
8aa540d2f7
1367 changed files with 188789 additions and 22762 deletions
|
@ -1,5 +1,5 @@
|
|||
/* TreeModelEvent.java --
|
||||
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2004, 2006, Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -46,128 +46,123 @@ import javax.swing.tree.TreePath;
|
|||
* TreeModelEvent
|
||||
* @author Andrew Selkirk
|
||||
*/
|
||||
public class TreeModelEvent extends EventObject {
|
||||
public class TreeModelEvent extends EventObject
|
||||
{
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Variables --------------------------------------------------
|
||||
//-------------------------------------------------------------
|
||||
/**
|
||||
* childIndices
|
||||
*/
|
||||
protected int[] childIndices = null;
|
||||
|
||||
/**
|
||||
* children
|
||||
*/
|
||||
protected Object[] children = null;
|
||||
|
||||
/**
|
||||
* path
|
||||
*/
|
||||
protected TreePath path = null;
|
||||
|
||||
/**
|
||||
* childIndices
|
||||
*/
|
||||
protected int[] childIndices = null;
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path
|
||||
*/
|
||||
public TreeModelEvent(Object source, Object[] path)
|
||||
{
|
||||
super(source);
|
||||
this.path = new TreePath(path);
|
||||
}
|
||||
|
||||
/**
|
||||
* children
|
||||
*/
|
||||
protected Object[] children = null;
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path path
|
||||
* @param childIndices Child indices
|
||||
* @param children Children
|
||||
*/
|
||||
public TreeModelEvent(Object source, Object[] path,
|
||||
int[] childIndices, Object[] children)
|
||||
{
|
||||
super(source);
|
||||
this.path = new TreePath(path);
|
||||
this.childIndices = childIndices;
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
/**
|
||||
* path
|
||||
*/
|
||||
protected TreePath path = null;
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path Path
|
||||
*/
|
||||
public TreeModelEvent(Object source, TreePath path)
|
||||
{
|
||||
super(source);
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path Path
|
||||
* @param childIndices Child indices
|
||||
* @param children Children
|
||||
*/
|
||||
public TreeModelEvent(Object source, TreePath path,
|
||||
int[] childIndices, Object[] children)
|
||||
{
|
||||
super(source);
|
||||
this.path = path;
|
||||
this.childIndices = childIndices;
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Initialization ---------------------------------------------
|
||||
//-------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path
|
||||
*/
|
||||
public TreeModelEvent(Object source, Object[] path) {
|
||||
super(source);
|
||||
this.path = new TreePath(path);
|
||||
} // TreeModelEvent()
|
||||
/**
|
||||
* getChildIndices
|
||||
* @return child indices
|
||||
*/
|
||||
public int[] getChildIndices()
|
||||
{
|
||||
return childIndices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path path
|
||||
* @param childIndices Child indices
|
||||
* @param children Children
|
||||
*/
|
||||
public TreeModelEvent(Object source, Object[] path,
|
||||
int[] childIndices, Object[] children) {
|
||||
super(source);
|
||||
this.path = new TreePath(path);
|
||||
this.childIndices = childIndices;
|
||||
this.children = children;
|
||||
} // TreeModelEvent()
|
||||
/**
|
||||
* getChildren
|
||||
* @return children
|
||||
*/
|
||||
public Object[] getChildren()
|
||||
{
|
||||
return children;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path Path
|
||||
*/
|
||||
public TreeModelEvent(Object source, TreePath path) {
|
||||
super(source);
|
||||
this.path = path;
|
||||
} // TreeModelEvent()
|
||||
/**
|
||||
* getPath
|
||||
* @return path
|
||||
*/
|
||||
public Object[] getPath()
|
||||
{
|
||||
return path.getPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor TreeModelEvent
|
||||
* @param source Source object
|
||||
* @param path Path
|
||||
* @param childIndices Child indices
|
||||
* @param children Children
|
||||
*/
|
||||
public TreeModelEvent(Object source, TreePath path,
|
||||
int[] childIndices, Object[] children) {
|
||||
super(source);
|
||||
this.path = path;
|
||||
this.childIndices = childIndices;
|
||||
this.children = children;
|
||||
} // TreeModelEvent()
|
||||
/**
|
||||
* getTreePath
|
||||
* @return TreePath
|
||||
*/
|
||||
public TreePath getTreePath()
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
/**
|
||||
* String representation
|
||||
* @return String representation
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
return getClass() + " [Source: " + getSource() + ", TreePath: "
|
||||
+ getTreePath() + ", Child Indicies: " + getChildIndices()
|
||||
+ ", Children: " + getChildren() + ", Path: " + getPath() +"]";
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------
|
||||
// Methods ----------------------------------------------------
|
||||
//-------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* getChildIndices
|
||||
* @returns child indices
|
||||
*/
|
||||
public int[] getChildIndices() {
|
||||
return childIndices;
|
||||
} // getChildIndices()
|
||||
|
||||
/**
|
||||
* getChildren
|
||||
* @returns children
|
||||
*/
|
||||
public Object[] getChildren() {
|
||||
return children;
|
||||
} // getChildren()
|
||||
|
||||
/**
|
||||
* getPath
|
||||
* @returns path
|
||||
*/
|
||||
public Object[] getPath() {
|
||||
return path.getPath();
|
||||
} // getPath()
|
||||
|
||||
/**
|
||||
* getTreePath
|
||||
* @returns TreePath
|
||||
*/
|
||||
public TreePath getTreePath() {
|
||||
return path;
|
||||
} // getTreePath()
|
||||
|
||||
/**
|
||||
* String representation
|
||||
* @returns String representation
|
||||
*/
|
||||
public String toString() {
|
||||
return getClass() + " [Source: " + getSource() + ", TreePath: " + getTreePath() +
|
||||
", Child Indicies: " + getChildIndices() + ", Children: " + getChildren() +
|
||||
", Path: " + getPath() +"]";
|
||||
} // toString()
|
||||
|
||||
|
||||
} // TreeModelEvent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue