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.UIResourceModifier and TypeClassDescriptionstatic classThe UI resource version ofScrollPaneLayout. -
Field Summary
Fields declared in class ScrollPaneLayout
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicyModifier and TypeFieldDescriptionprotected JViewportThe column header child.protected JScrollBarThe scrollpane's horizontal scrollbar child.protected intThe display policy for the horizontal scrollbar.protected ComponentThe component to display in the lower left corner.protected ComponentThe component to display in the lower right corner.protected JViewportThe row header child.protected ComponentThe component to display in the upper left corner.protected ComponentThe component to display in the upper right corner.protected JViewportThe scrollpane's viewport child.protected JScrollBarThe scrollpane's vertical scrollbar child.protected intThe 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, VIEWPORTModifier and TypeFieldDescriptionstatic final StringIdentifies the area at the top the viewport between the upper left corner and the upper right corner.static final StringIdentifies a horizontal scrollbar.static final intUsed to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed.static final intUsed to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed.static final intUsed to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed.static final StringIdentifies the horizontal scroll bar policy property.static final StringIdentifies the lower leading edge corner of the viewport.static final StringIdentifies the lower left corner of the viewport.static final StringIdentifies the lower right corner of the viewport.static final StringIdentifies the lower trailing edge corner of the viewport.static final StringIdentifies the area along the left side of the viewport between the upper left corner and the lower left corner.static final StringIdentifies the upper leading edge corner of the viewport.static final StringIdentifies the upper left corner of the viewport.static final StringIdentifies the upper right corner of the viewport.static final StringIdentifies the upper trailing edge corner of the viewport.static final StringIdentifies a vertical scrollbar.static final intUsed to set the vertical scroll bar policy so that vertical scrollbars are always displayed.static final intUsed to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed.static final intUsed to set the vertical scroll bar policy so that vertical scrollbars are never displayed.static final StringIdentifies the vertical scroll bar policy property.static final StringIdentifies 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, syncWithScrollPaneModifier and TypeMethodDescriptionvoidAdds the specified component to the layout.protected ComponentaddSingletonComponent(Component oldC, Component newC) Removes an existing component.Returns theJViewportobject that is the column header.Returns theComponentat the specified corner.Returns theJScrollBarobject that handles horizontal scrolling.intReturns the horizontal scrollbar-display policy.Returns theJViewportobject that is the row header.Returns theJScrollBarobject that handles vertical scrolling.intReturns the vertical scrollbar-display policy.Returns theJViewportobject that displays the scrollable contents.getViewportBorderBounds(JScrollPane scrollpane) Deprecated.voidlayoutContainer(Container parent) Lays out the scrollpane.minimumLayoutSize(Container parent) The minimum size of aScrollPaneis 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 aScrollPaneis 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.voidRemoves the specified component from the layout.voidsetHorizontalScrollBarPolicy(int x) Sets the horizontal scrollbar-display policy.voidsetVerticalScrollBarPolicy(int x) Sets the vertical scrollbar-display policy.voidThis 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, waitModifier and TypeMethodDescriptionprotected Objectclone()Creates and returns a copy of this object.booleanIndicates whether some other object is "equal to" this one.protected voidfinalize()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.inthashCode()Returns a hash code value for this object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final voidwait(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 voidwait(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().