< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java

Print this page

        

*** 71,81 **** * The expanded icon. */ protected transient Icon expandedIcon; /** ! * Color used to draw hash marks. If <code>null</code> no hash marks * will be drawn. */ private Color hashColor; /** Distance between left margin and where vertical dashes will be --- 71,81 ---- * The expanded icon. */ protected transient Icon expandedIcon; /** ! * Color used to draw hash marks. If {@code null} no hash marks * will be drawn. */ private Color hashColor; /** Distance between left margin and where vertical dashes will be
*** 2122,2132 **** } } /** * Marks the cached size as being invalid, and messages the ! * tree with <code>treeDidChange</code>. */ protected void updateSize() { validCachedPreferredSize = false; tree.treeDidChange(); } --- 2122,2132 ---- } } /** * Marks the cached size as being invalid, and messages the ! * tree with {@code treeDidChange}. */ protected void updateSize() { validCachedPreferredSize = false; tree.treeDidChange(); }
*** 2135,2146 **** validCachedPreferredSize = false; tree.revalidate(); } /** ! * Updates the <code>preferredSize</code> instance variable, ! * which is returned from <code>getPreferredSize()</code>.<p> * For left to right orientations, the size is determined from the * current AbstractLayoutCache. For RTL orientations, the preferred size * becomes the width minus the minimum x position. */ protected void updateCachedPreferredSize() { --- 2135,2146 ---- validCachedPreferredSize = false; tree.revalidate(); } /** ! * Updates the {@code preferredSize} instance variable, ! * which is returned from {@code getPreferredSize()}.<p> * For left to right orientations, the size is determined from the * current AbstractLayoutCache. For RTL orientations, the preferred size * becomes the width minus the minimum x position. */ protected void updateCachedPreferredSize() {
*** 2342,2352 **** /** * Messages to stop the editing session. If the UI the receiver * is providing the look and feel for returns true from ! * <code>getInvokesStopCellEditing</code>, stopCellEditing will * invoked on the current editor. Then completeEditing will * be messaged with false, true, false to cancel any lingering * editing. */ protected void completeEditing() { --- 2342,2352 ---- /** * Messages to stop the editing session. If the UI the receiver * is providing the look and feel for returns true from ! * {@code getInvokesStopCellEditing}, stopCellEditing will * invoked on the current editor. Then completeEditing will * be messaged with false, true, false to cancel any lingering * editing. */ protected void completeEditing() {
*** 2828,2838 **** protected int getLeadSelectionRow() { return leadRow; } /** ! * Extends the selection from the anchor to make <code>newLead</code> * the lead of the selection. This does not scroll. */ private void extendSelection(TreePath newLead) { TreePath aPath = getAnchorSelectionPath(); int aRow = (aPath == null) ? -1 : --- 2828,2838 ---- protected int getLeadSelectionRow() { return leadRow; } /** ! * Extends the selection from the anchor to make {@code newLead} * the lead of the selection. This does not scroll. */ private void extendSelection(TreePath newLead) { TreePath aPath = getAnchorSelectionPath(); int aRow = (aPath == null) ? -1 :
*** 2853,2864 **** setLeadSelectionPath(newLead); } } /** ! * Invokes <code>repaint</code> on the JTree for the passed in TreePath, ! * <code>path</code>. */ private void repaintPath(TreePath path) { if (path != null) { Rectangle bounds = getPathBounds(tree, path); if (bounds != null) { --- 2853,2864 ---- setLeadSelectionPath(newLead); } } /** ! * Invokes {@code repaint} on the JTree for the passed in TreePath, ! * {@code path}. */ private void repaintPath(TreePath path) { if (path != null) { Rectangle bounds = getPathBounds(tree, path); if (bounds != null) {
*** 3262,3272 **** } } // End of BasicTreeUI.SelectionModelPropertyChangeHandler /** ! * <code>TreeTraverseAction</code> is the action used for left/right keys. * Will toggle the expandedness of a node, as well as potentially * incrementing the selection. */ @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeTraverseAction extends AbstractAction { --- 3262,3272 ---- } } // End of BasicTreeUI.SelectionModelPropertyChangeHandler /** ! * {@code TreeTraverseAction} is the action used for left/right keys. * Will toggle the expandedness of a node, as well as potentially * incrementing the selection. */ @SuppressWarnings("serial") // Superclass is not serializable across versions public class TreeTraverseAction extends AbstractAction {
*** 3699,3709 **** /** * Invoked when a key has been typed. * * Moves the keyboard focus to the first element whose prefix matches the * sequence of alphanumeric keys pressed by the user with delay less ! * than value of <code>timeFactor</code> property (or 1000 milliseconds * if it is not defined). Subsequent same key presses move the keyboard * focus to the next object that starts with the same letter until another * key is pressed, then it is treated as the prefix with appropriate number * of the same letters followed by first typed another letter. */ --- 3699,3709 ---- /** * Invoked when a key has been typed. * * Moves the keyboard focus to the first element whose prefix matches the * sequence of alphanumeric keys pressed by the user with delay less ! * than value of {@code timeFactor} property (or 1000 milliseconds * if it is not defined). Subsequent same key presses move the keyboard * focus to the next object that starts with the same letter until another * key is pressed, then it is treated as the prefix with appropriate number * of the same letters followed by first typed another letter. */
< prev index next >