< prev index next >
src/java.desktop/share/classes/javax/swing/tree/TreeCellRenderer.java
Print this page
*** 40,59 ****
* @author Scott Violet
*/
public interface TreeCellRenderer {
/**
! * Sets the value of the current tree cell to <code>value</code>.
! * If <code>selected</code> is true, the cell will be drawn as if
! * selected. If <code>expanded</code> is true the node is currently
! * expanded and if <code>leaf</code> is true the node represents a
! * leaf and if <code>hasFocus</code> is true the node currently has
! * focus. <code>tree</code> is the <code>JTree</code> the receiver is being
! * configured for. Returns the <code>Component</code> that the renderer
* uses to draw the value.
* <p>
! * The <code>TreeCellRenderer</code> is also responsible for rendering the
* the cell representing the tree's current DnD drop location if
* it has one. If this renderer cares about rendering
* the DnD drop location, it should query the tree directly to
* see if the given row represents the drop location:
* <pre>
--- 40,59 ----
* @author Scott Violet
*/
public interface TreeCellRenderer {
/**
! * Sets the value of the current tree cell to {@code value}.
! * If {@code selected} is true, the cell will be drawn as if
! * selected. If {@code expanded} is true the node is currently
! * expanded and if {@code leaf} is true the node represents a
! * leaf and if {@code hasFocus} is true the node currently has
! * focus. {@code tree} is the {@code JTree} the receiver is being
! * configured for. Returns the {@code Component} that the renderer
* uses to draw the value.
* <p>
! * The {@code TreeCellRenderer} is also responsible for rendering the
* the cell representing the tree's current DnD drop location if
* it has one. If this renderer cares about rendering
* the DnD drop location, it should query the tree directly to
* see if the given row represents the drop location:
* <pre>
< prev index next >