getViewport
getViewport: (JScrollPane) -> JViewport?The viewport (its child 0).
JScrollPane.new()
PluginPanel.new():getScrollPane()| Method | Returns | Description |
|---|---|---|
getViewport() | JViewport? | The viewport (its child 0). |
getVerticalScrollBar() | JScrollBar? | The vertical scroll bar. |
getHorizontalScrollBar() | JScrollBar? | The horizontal scroll bar. |
setVerticalScrollBarPolicy(number) | () | When the vertical bar shows (VERTICAL_SCROLLBAR_AS_NEEDED, _NEVER, _ALWAYS); any other value raises. |
setHorizontalScrollBarPolicy(number) | () | When the horizontal bar shows (HORIZONTAL_SCROLLBAR_AS_NEEDED, _NEVER, _ALWAYS); any other value raises. |
getVerticalScrollBarPolicy() | number | The vertical bar's policy. |
getHorizontalScrollBarPolicy() | number | The horizontal bar's policy. |
setViewportView(Component?) | () | Makes view the viewport's view (taking it from any container it was in). |
setWheelScrollingEnabled(boolean) | () | Scrolls with the mouse wheel, or not. |
new() | JScrollPane | () -> JScrollPane: An empty scroll pane, both bars as needed. |
new(Component) | JScrollPane | |
new(Component, number, number) | JScrollPane | |
new(number, number) | JScrollPane | |
init(JScrollPane) | () | (JScrollPane) -> (): An empty scroll pane, both bars as needed. |
init(JScrollPane, Component) | () | |
init(JScrollPane, Component, number, number) | () | |
init(JScrollPane, number, number) | () | |
isInstance(any) | boolean | Whether obj is a JScrollPane object, a class(JScrollPane) subclass's included. |
| Field | Type | Description |
|---|---|---|
VERTICAL_SCROLLBAR_AS_NEEDED | number | ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED: 20. |
VERTICAL_SCROLLBAR_NEVER | number | ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER: 21. |
VERTICAL_SCROLLBAR_ALWAYS | number | ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS: 22. |
HORIZONTAL_SCROLLBAR_AS_NEEDED | number | ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED: 30. |
HORIZONTAL_SCROLLBAR_NEVER | number | ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER: 31. |
HORIZONTAL_SCROLLBAR_ALWAYS | number | ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS: 32. |
super | JComponentClass | JComponent's class table: the base class. |
| Method | Returns | Description |
|---|---|---|
JScrollPaneClass.new | JScrollPane | () -> JScrollPane: An empty scroll pane, both bars as needed. |
PluginPanel.getScrollPane | JScrollPane? | The wrap's scroll pane, or nil for PluginPanel(false). |
getViewportgetViewport: (JScrollPane) -> JViewport?The viewport (its child 0).
getVerticalScrollBargetVerticalScrollBar: (JScrollPane) -> JScrollBar?The vertical scroll bar.
getHorizontalScrollBargetHorizontalScrollBar: (JScrollPane) -> JScrollBar?The horizontal scroll bar.
setVerticalScrollBarPolicysetVerticalScrollBarPolicy: (JScrollPane, number) -> ()When the vertical bar shows (VERTICAL_SCROLLBAR_AS_NEEDED, _NEVER, _ALWAYS); any other value raises.
setHorizontalScrollBarPolicysetHorizontalScrollBarPolicy: (JScrollPane, number) -> ()When the horizontal bar shows (HORIZONTAL_SCROLLBAR_AS_NEEDED, _NEVER, _ALWAYS); any other value raises.
getVerticalScrollBarPolicygetVerticalScrollBarPolicy: (JScrollPane) -> numberThe vertical bar's policy.
getHorizontalScrollBarPolicygetHorizontalScrollBarPolicy: (JScrollPane) -> numberThe horizontal bar's policy.
setViewportViewsetViewportView: (JScrollPane, Component?) -> ()Makes view the viewport's view (taking it from any container it was in).
setWheelScrollingEnabledsetWheelScrollingEnabled: (JScrollPane, boolean) -> ()Scrolls with the mouse wheel, or not.
newnew: (() -> JScrollPane) & ((Component) -> JScrollPane) & ((Component, number, number) -> JScrollPane) & ((number, number) -> JScrollPane)() -> JScrollPane: An empty scroll pane, both bars as needed.
(Component) -> JScrollPane: A scroll pane onto view, both bars as needed.
(Component, number, number) -> JScrollPane: A scroll pane onto view with the two policies.
(number, number) -> JScrollPane: An empty scroll pane with the two policies.
initinit: ((JScrollPane) -> ()) & ((JScrollPane, Component) -> ()) & ((JScrollPane, Component, number, number) -> ()) & ((JScrollPane, number, number) -> ())(JScrollPane) -> (): An empty scroll pane, both bars as needed.
(JScrollPane, Component) -> (): A scroll pane onto view, both bars as needed.
(JScrollPane, Component, number, number) -> (): A scroll pane onto view with the two policies.
(JScrollPane, number, number) -> (): An empty scroll pane with the two policies.
isInstanceisInstance: (any) -> booleanWhether obj is a JScrollPane object, a class(JScrollPane) subclass's included.