tit.gui.widget.ScrollDownScrollPane Class Reference

List of all members.

Public Member Functions

 ScrollDownScrollPane ()
 ScrollDownScrollPane (Component view)
 ScrollDownScrollPane (int vsbpolicy, int hsbpolicy)
 ScrollDownScrollPane (Component view, int vsbpolicy, int hsbpolicy)
void setViewport (JViewport viewport)
boolean getAutoScrollDown ()
void setAutoScrollDown (boolean newautoscrolldown)
void scrollDown ()
void stateChanged (ChangeEvent event)

Private Attributes

boolean autoscrolldown

Detailed Description

Scroll pane that automatically scrolls down.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.gui.widget.ScrollDownScrollPane.ScrollDownScrollPane (  ) 

Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear when needed.

tit.gui.widget.ScrollDownScrollPane.ScrollDownScrollPane ( Component  view  ) 

Creates a JScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view.

Parameters:
view The component to display in the scrollpane's viewport.

tit.gui.widget.ScrollDownScrollPane.ScrollDownScrollPane ( int  vsbpolicy,
int  hsbpolicy 
)

Creates a JScrollPane that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars.

Parameters:
vsbpolicy An integer that specifies the vertical scrollbar policy.
hsbpolicy An integer that specifies the horizontal scrollbar policy.

tit.gui.widget.ScrollDownScrollPane.ScrollDownScrollPane ( Component  view,
int  vsbpolicy,
int  hsbpolicy 
)

Creates an empty (no viewport view) JScrollPane with specified scrollbar policies.

Parameters:
view The component to display in the scrollpane's viewport.
vsbpolicy An integer that specifies the vertical scrollbar policy.
hsbpolicy An integer that specifies the horizontal scrollbar policy.


Member Function Documentation

void tit.gui.widget.ScrollDownScrollPane.setViewport ( JViewport  viewport  ) 

Removes the old viewport (if there is one); forces the viewPosition of the new viewport to be in the +x,+y quadrant; syncs up the row and column headers (if there are any) with the new viewport; and finally syncs the scrollbars and headers with the new viewport.

Parameters:
viewport The new viewport to be used; if viewport is null, the old viewport is still removed and the new viewport is set to null.

boolean tit.gui.widget.ScrollDownScrollPane.getAutoScrollDown (  ) 

Gets the autoscrolldown-property.

Returns:
The autoscrolldown-property.

void tit.gui.widget.ScrollDownScrollPane.setAutoScrollDown ( boolean  newautoscrolldown  ) 

Sets the autoscrolldown-property.

Parameters:
newautoscrolldown The new value for autoscrolldown.

void tit.gui.widget.ScrollDownScrollPane.scrollDown (  ) 

Scrolls down.

void tit.gui.widget.ScrollDownScrollPane.stateChanged ( ChangeEvent  event  ) 

If autoscrolldown is enabled, the ScrollDownScrollPane will automatically scroll down when this method is invocated.

Parameters:
event The associated ChangeEvent


Member Data Documentation

boolean tit.gui.widget.ScrollDownScrollPane.autoscrolldown [private]

Scroll down automatically yes/no.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:00 2007 by  doxygen 1.5.1