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 |
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.
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.
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.
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. |
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.
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.
void tit.gui.widget.ScrollDownScrollPane.setAutoScrollDown | ( | boolean | newautoscrolldown | ) |
Sets the autoscrolldown-property.
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.
event | The associated ChangeEvent |
boolean tit.gui.widget.ScrollDownScrollPane.autoscrolldown [private] |
Scroll down automatically yes/no.