This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.plaf.basic
class BasicTreeUI.ComponentHandler
- All Implemented Interfaces:
- ActionListener, ComponentListener
- Enclosing class:
- BasicTreeUI
public class BasicTreeUI.ComponentHandler
extends ComponentAdapter
implements ActionListener
Updates the preferred size when scrolling (if necessary).
Field Summary |
protected JScrollBar |
scrollBar
ScrollBar that is being adjusted. |
protected Timer |
timer
Timer used when inside a scrollpane and the scrollbar is
adjusting. |
Method Summary |
void |
Public as a result of Timer.
|
void |
Invoked when the component's position changes.
|
protected JScrollPane |
Returns the JScrollPane housing the JTree, or null if one isn't
found.
|
protected void |
Creates, if necessary, and starts a Timer to check if need to
resize the bounds.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scrollBar
protected JScrollBar scrollBar
-
ScrollBar that is being adjusted.
timer
protected Timer timer
-
Timer used when inside a scrollpane and the scrollbar is
adjusting.
BasicTreeUI.ComponentHandler
public BasicTreeUI.ComponentHandler()
-
actionPerformed
public void actionPerformed(ActionEvent ae)
-
Public as a result of Timer. If the scrollBar is null, or
not adjusting, this stops the timer and updates the sizing.
- Parameters:
ae
componentMoved
public void componentMoved(ComponentEvent e)
-
- Overrides:
componentMoved
in class ComponentAdapter
- Parameters:
e
getScrollPane
protected JScrollPane getScrollPane()
-
Returns the JScrollPane housing the JTree, or null if one isn't
found.
startTimer
protected void startTimer()
-
Creates, if necessary, and starts a Timer to check if need to
resize the bounds.
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.