Lines Matching defs:row

53  * display row, where each row in the display area displays one node.
109 * NOTE: This example obtains both the path and row, but you only need to
176 * Height to use for each display row. If this is <= 0 the renderer
177 * determines the height for each row.
420 * The row to expand during DnD.
963 * queried for each row's height.
983 * Returns the height of each row. If the returned value is less than
984 * or equal to 0 the height for each row is determined by the
994 * Returns true if the height of each display row is a fixed size.
996 * @return true if the height of each row is a fixed size
1295 int row = getClosestRowForLocation(p.x, p.y);
1296 Rectangle bounds = getRowBounds(row);
1303 boolean outside = row == -1
1313 location = new DropLocation(p, getPathForRow(row), -1);
1319 if (row == -1) {
1330 || !model.isLeaf(getPathForRow(row).getLastPathComponent());
1334 child = getPathForRow(row);
1337 int index = row + 1;
1354 location = new DropLocation(p, getPathForRow(row), -1);
1373 if (outside || row != expandRow) {
1377 if (!outside && row != expandRow) {
1378 if (isCollapsed(row)) {
1379 expandRow = row;
1584 * @param row an integer specifying the node's display row, where 0 is
1585 * the first row in the display
1590 boolean expanded, boolean leaf, int row,
1688 * Selects the node at the specified row in the display.
1690 * @param row the row to select, where 0 is the first row in
1693 public void setSelectionRow(int row) {
1694 int[] rows = { row };
1709 * where 0 indicates the first row in the display
1759 * Adds the path at the specified row to the current selection.
1761 * @param row an integer specifying the row of the node to add,
1762 * where 0 is the first row in the display
1764 public void addSelectionRow(int row) {
1765 int[] rows = { row };
1774 * where 0 indicates the first row in the display
1854 * where 0 is the first row in the display
1870 * Returns the smallest selected row. If the selection is empty, or
1873 * @return the smallest selected row
1880 * Returns the largest selected row. If the selection is empty, or
1883 * @return the largest selected row
1890 * Returns the row index corresponding to the lead path.
1892 * @return an integer giving the row index of the lead path,
1893 * where 0 is the first row in the display; or -1
1916 * Returns true if the node identified by row is selected.
1918 * @param row an integer specifying a display row, where 0 is the first
1919 * row in the display
1922 public boolean isRowSelected(int row) {
1923 return getSelectionModel().isRowSelected(row);
2006 * Returns true if the node at the specified display row is currently
2009 * @param row the row to check, where 0 is the first row in the
2013 public boolean isExpanded(int row) {
2017 TreePath path = tree.getPathForRow(this, row);
2042 * Returns true if the node at the specified display row is collapsed.
2044 * @param row the row to check, where 0 is the first row in the
2048 public boolean isCollapsed(int row) {
2049 return !isExpanded(row);
2108 * Returns the <code>Rectangle</code> that the node at the specified row is
2111 * @param row the row to be drawn, where 0 is the first row in the
2115 public Rectangle getRowBounds(int row) {
2116 return getPathBounds(getPathForRow(row));
2144 * Scrolls the item identified by row until it is displayed. The minimum
2145 * of amount of scrolling necessary to bring the row into view
2149 * @param row an integer specifying the row to scroll, where 0 is the
2150 * first row in the display
2152 public void scrollRowToVisible(int row) {
2153 scrollPathToVisible(getPathForRow(row));
2157 * Returns the path for the specified row. If <code>row</code> is
2161 * @param row an integer specifying a row
2163 * <code>null</code> if <code>row < 0</code>
2164 * or <code>row >= getRowCount()</code>
2166 public TreePath getPathForRow(int row) {
2170 return tree.getPathForRow(this, row);
2175 * Returns the row that displays the node identified by the specified
2179 * @return an integer specifying the display row, where 0 is the first
2180 * row in the display, or -1 if any of the elements in path
2209 * Ensures that the node in the specified row is expanded and
2212 * If <code>row</code> is < 0 or >= <code>getRowCount</code> this
2215 * @param row an integer specifying a display row, where 0 is the
2216 * first row in the display
2218 public void expandRow(int row) {
2219 expandPath(getPathForRow(row));
2233 * Ensures that the node in the specified row is collapsed.
2235 * If <code>row</code> is < 0 or >= <code>getRowCount</code> this
2238 * @param row an integer specifying a display row, where 0 is the
2239 * first row in the display
2241 public void collapseRow(int row) {
2242 collapsePath(getPathForRow(row));
2269 * Returns the row for the specified location.
2275 * @return the row corresponding to the location, or -1 if the
2309 * Returns the row to the node that is closest to x,y. If no nodes
2311 * it always returns a valid row. To test if the returned object is
2313 * row and test x, y against that.
2319 * @return the row closest to the location, -1 if nothing is
2408 // row based selections to path selections. Sometimes it is
2411 // Since row based selections require a UI many of these won't work
2478 * returned. For example, if the row count is {@code 10}, and this
2490 * An empty array is returned if the row count is {@code 0}, or
2495 * @return the paths (inclusive) between the specified row indices
2525 * the selection is cleared. For example, if the row count is {@code
2552 * the row count is {@code 10}, and this method is invoked with
2580 * the selection is unchanged. For example, if the row count is {@code
2591 * @param index0 the first row to remove from the selection
2592 * @param index1 the last row to remove from the selection
2624 * Removes the row at the index <code>row</code> from the current
2627 * @param row the row to remove
2629 public void removeSelectionRow(int row) {
2630 int[] rows = { row };
2640 * the first row in the display
2988 * @param startingRow the row for starting the search
3012 int row = startingRow;
3014 TreePath path = getPathForRow(row);
3016 path.getLastPathComponent(), isRowSelected(row),
3017 isExpanded(row), true, row, false);
3022 row = (row + increment + max) % max;
3023 } while (row != startingRow);
3428 * the height of the first displayed row that isn't completely in view
3429 * or, if it is totally displayed, the height of the next row in the
4258 // if so, get row, selected, focus & leaf state,
4269 int row = ui.getRowForPath(JTree.this, path);
4272 && (lsr == row);
4278 model.isLeaf(model.getRoot()), row, hasFocus);
4581 // if so, get row, selected, focus & leaf state,
4590 int row = ui.getRowForPath(JTree.this, path);
4595 selected, expanded, isLeaf, row, hasFocus);