Class ScrollPaneLayout.UIResource
java.lang.Object
javax.swing.ScrollPaneLayout
javax.swing.ScrollPaneLayout.UIResource
- All Implemented Interfaces:
LayoutManager, Serializable, UIResource, ScrollPaneConstants
- Enclosing class:
ScrollPaneLayout
The UI resource version of
ScrollPaneLayout
.- Since:
- 1.2
-
Nested Class Summary
Nested classes/interfaces declared in class ScrollPaneLayout
ScrollPaneLayout.UIResource
Modifier and TypeClassDescriptionstatic class
The UI resource version ofScrollPaneLayout
. -
Field Summary
Fields declared in class ScrollPaneLayout
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicy
Modifier and TypeFieldDescriptionprotected JViewport
The column header child.protected JScrollBar
The scrollpane's horizontal scrollbar child.protected int
The display policy for the horizontal scrollbar.protected Component
The component to display in the lower left corner.protected Component
The component to display in the lower right corner.protected JViewport
The row header child.protected Component
The component to display in the upper left corner.protected Component
The component to display in the upper right corner.protected JViewport
The scrollpane's viewport child.protected JScrollBar
The scrollpane's vertical scrollbar child.protected int
The display policy for the vertical scrollbar.Fields declared in interface ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
Modifier and TypeFieldDescriptionstatic final String
Identifies the area at the top the viewport between the upper left corner and the upper right corner.static final String
Identifies a horizontal scrollbar.static final int
Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed.static final int
Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed.static final int
Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed.static final String
Identifies the horizontal scroll bar policy property.static final String
Identifies the lower leading edge corner of the viewport.static final String
Identifies the lower left corner of the viewport.static final String
Identifies the lower right corner of the viewport.static final String
Identifies the lower trailing edge corner of the viewport.static final String
Identifies the area along the left side of the viewport between the upper left corner and the lower left corner.static final String
Identifies the upper leading edge corner of the viewport.static final String
Identifies the upper left corner of the viewport.static final String
Identifies the upper right corner of the viewport.static final String
Identifies the upper trailing edge corner of the viewport.static final String
Identifies a vertical scrollbar.static final int
Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed.static final int
Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed.static final int
Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed.static final String
Identifies the vertical scroll bar policy property.static final String
Identifies a "viewport" or display area, within which scrolled contents are visible. -
Constructor Summary
Constructors -
Method Summary
Methods declared in class ScrollPaneLayout
addLayoutComponent, addSingletonComponent, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicy, syncWithScrollPane
Modifier and TypeMethodDescriptionvoid
Adds the specified component to the layout.protected Component
addSingletonComponent
(Component oldC, Component newC) Removes an existing component.Returns theJViewport
object that is the column header.Returns theComponent
at the specified corner.Returns theJScrollBar
object that handles horizontal scrolling.int
Returns the horizontal scrollbar-display policy.Returns theJViewport
object that is the row header.Returns theJScrollBar
object that handles vertical scrolling.int
Returns the vertical scrollbar-display policy.Returns theJViewport
object that displays the scrollable contents.getViewportBorderBounds
(JScrollPane scrollpane) Deprecated.void
layoutContainer
(Container parent) Lays out the scrollpane.minimumLayoutSize
(Container parent) The minimum size of aScrollPane
is the size of the insets plus minimum size of the viewport, plus the scrollpane's viewportBorder insets, plus the minimum size of the visible headers, plus the minimum size of the scrollbars whose displayPolicy isn't NEVER.preferredLayoutSize
(Container parent) The preferred size of aScrollPane
is the size of the insets, plus the preferred size of the viewport, plus the preferred size of the visible headers, plus the preferred size of the scrollbars that will appear given the current view and the current scrollbar displayPolicies.void
Removes the specified component from the layout.void
setHorizontalScrollBarPolicy
(int x) Sets the horizontal scrollbar-display policy.void
setVerticalScrollBarPolicy
(int x) Sets the vertical scrollbar-display policy.void
This method is invoked after the ScrollPaneLayout is set as the LayoutManager of aJScrollPane
.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Modifier and TypeMethodDescriptionprotected Object
clone()
Creates and returns a copy of this object.boolean
Indicates whether some other object is "equal to" this one.protected void
finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class
<?> getClass()
Returns the runtime class of thisObject
.int
hashCode()
Returns a hash code value for this object.final void
notify()
Wakes up a single thread that is waiting on this object's monitor.final void
Wakes up all threads that are waiting on this object's monitor.toString()
Returns a string representation of the object.final void
wait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final void
wait
(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final void
wait
(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
UIResource
public UIResource()Constructs aUIResource
.
-
JScrollPane.getViewportBorderBounds()
.