/openjdk7/jdk/test/java/beans/XMLEncoder/ |
H A D | javax_swing_tree_TreePath.java | 27 * @summary Tests TreePath encoding 31 import javax.swing.tree.TreePath; 33 public final class javax_swing_tree_TreePath extends AbstractTest<TreePath> { 38 protected TreePath getObject() { 39 return new TreePath("SinglePath"); 42 protected TreePath getAnotherObject() { 43 return new TreePath(new String[] {"First", "Second"});
|
H A D | javax_swing_JTree.java | 34 import javax.swing.tree.TreePath; 72 public void valueForPathChanged(TreePath path, Object newValue) {
|
/openjdk7/jdk/src/share/classes/javax/swing/event/ |
H A D | TreeSelectionEvent.java | 29 import javax.swing.tree.TreePath; 55 protected TreePath[] paths; 59 protected TreePath oldLeadSelectionPath; 61 protected TreePath newLeadSelectionPath; 71 public TreeSelectionEvent(Object source, TreePath[] paths, 72 boolean[] areNew, TreePath oldLeadSelectionPath, 73 TreePath newLeadSelectionPath) 92 public TreeSelectionEvent(Object source, TreePath path, boolean isNew, 93 TreePath oldLeadSelectionPath, 94 TreePath newLeadSelectionPat [all...] |
H A D | TreeExpansionEvent.java | 29 import javax.swing.tree.TreePath; 56 protected TreePath path; 63 * @param path a TreePath object identifying the newly expanded 66 public TreeExpansionEvent(Object source, TreePath path) { 74 public TreePath getPath() { return path; }
|
H A D | TreeModelEvent.java | 29 import javax.swing.tree.TreePath; 55 protected TreePath path; 126 * @see TreePath 131 this(source, new TreePath(path), childIndices, children); 137 * a TreePath object. For more information on how to specify the indexes 144 * @param path a TreePath object that identifies the path to the 153 public TreeModelEvent(Object source, TreePath path, int[] childIndices, 182 * @see TreePath 186 this(source, new TreePath(path)); 191 * identifying the path to the root of the modified subtree as a TreePath [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/tree/ |
H A D | RowMapper.java | 28 import javax.swing.tree.TreePath; 39 * Returns the rows that the TreePath instances in <code>path</code> 45 int[] getRowsForPaths(TreePath[] path);
|
H A D | TreeSelectionModel.java | 41 * from TreePath to integer is done by way of an instance of RowMapper. 73 * TreePath[] paths = new TreePath[] { treePath, treePath }; 82 * The lead TreePath is the last path that was added (or set). The lead 83 * row is then the row that corresponds to the TreePath as determined 110 * only one TreePath will remain selected. It is up to the particular 111 * implementation to decide what TreePath remains selected. 130 void setSelectionPath(TreePath path); 139 void setSelectionPaths(TreePath[] paths); 148 void addSelectionPath(TreePath pat [all...] |
H A D | TreePath.java | 32 * {@code TreePath} represents an array of objects that uniquely 37 * {@code /tmp/foo/bar} could be represented by a {@code TreePath} as 38 * {@code new TreePath(new Object[] {"tmp", "foo", "bar"})}. 40 * {@code TreePath} is used extensively by {@code JTree} and related classes. 42 * {@code TreePath}s. When used with {@code JTree}, the elements of the 52 * TreePath selectedPath = tree.getSelectionPath(); 59 * internally creates {@code TreePath}s at various points, it's 60 * generally not useful to subclass {@code TreePath} and use with 63 * While {@code TreePath} is serializable, a {@code 84 public class TreePath extend class in inherits:Object,Serializable 100 public TreePath(Object[] path) { method in class:TreePath 121 public TreePath(Object lastPathComponent) { method in class:TreePath 137 protected TreePath(TreePath parent, Object lastPathComponent) { method in class:TreePath 161 protected TreePath(Object[] path, int length) { method in class:TreePath 177 protected TreePath() { method in class:TreePath [all...] |
H A D | AbstractLayoutCache.java | 217 TreePath firstPath; 232 Rectangle pBounds = getBounds((TreePath)paths.nextElement(), 245 pBounds = getBounds((TreePath)paths.nextElement(), 267 public abstract boolean isExpanded(TreePath path); 272 * @param path a <code>TreePath</code> specifying a node 277 public abstract Rectangle getBounds(TreePath path, Rectangle placeIn); 284 * @return the <code>TreePath</code> for the given row 286 public abstract TreePath getPathForRow(int row); 293 * @param path the <code>TreePath</code> being queried 297 public abstract int getRowForPath(TreePath pat [all...] |
H A D | DefaultTreeSelectionModel.java | 74 protected TreePath[] selection; 83 * to map from a TreePath to a row, and the value is then placed here. */ 92 protected TreePath leadPath; 101 private Hashtable<TreePath, Boolean> uniquePaths; 102 private Hashtable<TreePath, Boolean> lastPaths; 103 private TreePath[] tempPaths; 114 uniquePaths = new Hashtable<TreePath, Boolean>(); 115 lastPaths = new Hashtable<TreePath, Boolean>(); 116 tempPaths = new TreePath[1]; 121 * the row for a particular TreePath [all...] |
H A D | TreeModel.java | 33 * <code>TreePath</code>s for indentifying nodes in the <code>TreeModel</code>. 36 * than the resulting <code>TreePath</code> objects will be considered equal 38 * <code>TreePath</code>s are equal, they identify the same node. If this 45 * <code>TreePath</code>s in <code>Map</code>s. As such if 56 * @see TreePath 122 public void valueForPathChanged(TreePath path, Object newValue);
|
H A D | FixedHeightLayoutCache.java | 65 * Maps from TreePath to a FHTreeStateNode. 67 private Hashtable<TreePath, FHTreeStateNode> treePathMapping; 74 private Stack<Stack<TreePath>> tempStacks; 79 tempStacks = new Stack<Stack<TreePath>>(); 81 treePathMapping = new Hashtable<TreePath, FHTreeStateNode>(); 146 public void invalidatePathBounds(TreePath path) { 163 public boolean isExpanded(TreePath path) { 175 * @param path a TreePath specifying a node 179 public Rectangle getBounds(TreePath path, Rectangle placeIn) { 189 TreePath parentPat [all...] |
/openjdk7/langtools/src/share/classes/com/sun/source/util/ |
H A D | TreePath.java | 38 public class TreePath implements Iterable<Tree> { class in inherits:Iterable 43 public static TreePath getPath(CompilationUnitTree unit, Tree target) { 44 return getPath(new TreePath(unit), target); 48 * Gets a tree path for a tree node within a subtree identified by a TreePath object. 51 public static TreePath getPath(TreePath path, Tree target) { 57 TreePath path; 58 Result(TreePath path) { 62 class PathFinder extends TreePathScanner<TreePath,Tree> { 63 public TreePath sca 81 public TreePath(CompilationUnitTree t) { method in class:TreePath 88 public TreePath(TreePath p, Tree t) { method in class:TreePath [all...] |
H A D | TreePathScanner.java | 44 * Scan a tree from a position identified by a TreePath. 46 public R scan(TreePath path, P p) { 64 TreePath prev = path; 65 path = new TreePath(path, tree); 77 public TreePath getCurrentPath() { 81 private TreePath path;
|
H A D | Trees.java | 126 public abstract TreePath getPath(CompilationUnitTree unit, Tree node); 129 * Gets the TreePath node for a given Element. 132 public abstract TreePath getPath(Element e); 135 * Gets the TreePath node for an AnnotationMirror on a given Element. 138 public abstract TreePath getPath(Element e, AnnotationMirror a); 141 * Gets the TreePath node for an AnnotationValue for an AnnotationMirror on a given Element. 144 public abstract TreePath getPath(Element e, AnnotationMirror a, AnnotationValue v); 147 * Gets the Element for the Tree node identified by a given TreePath. 149 * @throws IllegalArgumentException is the TreePath does not identify 152 public abstract Element getElement(TreePath pat [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/ |
H A D | TreeUI.java | 30 import javax.swing.tree.TreePath; 45 public abstract Rectangle getPathBounds(JTree tree, TreePath path); 51 public abstract TreePath getPathForRow(JTree tree, int row); 58 public abstract int getRowForPath(JTree tree, TreePath path); 72 public abstract TreePath getClosestPathForLocation(JTree tree, int x, 99 public abstract void startEditingAtPath(JTree tree, TreePath path); 104 public abstract TreePath getEditingPath(JTree tree);
|
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/ |
H A D | SingleLeafTreeSelectionModel.java | 49 public void setSelectionPath(TreePath path) { 56 public void setSelectionPaths(TreePath[] paths) { 65 public void addSelectionPath(TreePath path) { 72 public void addSelectionPaths(TreePath[] paths) {
|
/openjdk7/jdk/src/share/demo/jfc/SampleTree/ |
H A D | SampleTreeModel.java | 44 import javax.swing.tree.TreePath; 73 public void valueForPathChanged(TreePath path, Object newValue) {
|
/openjdk7/langtools/test/tools/javac/api/6598108/ |
H A D | T6598108.java | 34 import com.sun.source.util.TreePath; 52 TreePath tp = new TreePath(new TreePath(cut), cut.getTypeDecls().get(0));
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | JTree.java | 51 * <code>TreePath</code> (an object 96 * TreePath selPath = tree.getPathForLocation(e.getX(), e.getY()); 183 * Maps from <code>TreePath</code> to <code>Boolean</code> 190 transient private Hashtable<TreePath, Boolean> expandedState; 284 transient private Stack<Stack<TreePath>> expandedStack; 289 private TreePath leadPath; 294 private TreePath anchorPath; 327 private final TreePath path; 330 private DropLocation(Point p, TreePath path, int index) { 399 public TreePath getPat [all...] |
/openjdk7/jdk/test/javax/swing/JTree/8003830/ |
H A D | bug8003830.java | 29 import javax.swing.tree.TreePath; 60 public Rectangle getPathBounds(JTree tree, TreePath path) {
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/multi/ |
H A D | MultiTreeUI.java | 31 import javax.swing.tree.TreePath; 78 public Rectangle getPathBounds(JTree a, TreePath b) { 93 public TreePath getPathForRow(JTree a, int b) { 94 TreePath returnValue = 108 public int getRowForPath(JTree a, TreePath b) { 138 public TreePath getClosestPathForLocation(JTree a, int b, int c) { 139 TreePath returnValue = 189 public void startEditingAtPath(JTree a, TreePath b) { 201 public TreePath getEditingPath(JTree a) { 202 TreePath returnValu [all...] |
/openjdk7/langtools/test/tools/javac/api/6471599/ |
H A D | Main.java | 36 import com.sun.source.util.TreePath; 72 TreePath path = TreePath.getPath(getCurrentPath(), node.getExpression());
|
/openjdk7/langtools/test/tools/javac/api/6852595/ |
H A D | T6852595.java | 42 import com.sun.source.util.TreePath; 63 TreePath path = TreePath.getPath(cu, vdef.init);
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaTreeUI.java | 71 protected TreePath fTrackingPath; 120 public TreePath getClosestPathForLocation(final JTree treeLocal, final int x, final int y) { 148 final TreePath path = getPathForRow(tree, i); 159 protected void paintVerticalPartOfLeg(final Graphics g, final Rectangle clipBounds, final Insets insets, final TreePath path) { 165 protected void paintHorizontalPartOfLeg(final Graphics g, final Rectangle clipBounds, final Insets insets, final Rectangle bounds, final TreePath path, final int row, final boolean isExpanded, final boolean hasBeenExpanded, final boolean isLeaf) { 185 protected void paintExpandControl(final Graphics g, final Rectangle clipBounds, final Insets insets, final Rectangle bounds, final TreePath path, final int row, final boolean isExpanded, final boolean hasBeenExpanded, final boolean isLeaf) { 262 protected State getState(final TreePath path) { 275 protected void handleExpandControlClick(final TreePath path, final int mouseX, final int mouseY) { 331 TreeArrowMouseInputHandler(final TreePath path) { 445 final TreePath parentPat [all...] |