< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
Print this page
@@ -71,11 +71,11 @@
* The expanded icon.
*/
protected transient Icon expandedIcon;
/**
- * Color used to draw hash marks. If <code>null</code> no hash marks
+ * 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,11 +2122,11 @@
}
}
/**
* Marks the cached size as being invalid, and messages the
- * tree with <code>treeDidChange</code>.
+ * tree with {@code treeDidChange}.
*/
protected void updateSize() {
validCachedPreferredSize = false;
tree.treeDidChange();
}
@@ -2135,12 +2135,12 @@
validCachedPreferredSize = false;
tree.revalidate();
}
/**
- * Updates the <code>preferredSize</code> instance variable,
- * which is returned from <code>getPreferredSize()</code>.<p>
+ * 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,11 +2342,11 @@
/**
* 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
+ * {@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,11 +2828,11 @@
protected int getLeadSelectionRow() {
return leadRow;
}
/**
- * Extends the selection from the anchor to make <code>newLead</code>
+ * 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,12 +2853,12 @@
setLeadSelectionPath(newLead);
}
}
/**
- * Invokes <code>repaint</code> on the JTree for the passed in TreePath,
- * <code>path</code>.
+ * 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,11 +3262,11 @@
}
} // End of BasicTreeUI.SelectionModelPropertyChangeHandler
/**
- * <code>TreeTraverseAction</code> is the action used for left/right keys.
+ * {@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,11 +3699,11 @@
/**
* 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
+ * 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 >