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()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
UIResource
public UIResource()Constructs aUIResource.
-
JScrollPane.getViewportBorderBounds().