Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.ScrollPaneLayout
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Field Summary | |
JViewport | colHead
The column-header component |
int | hsbPolicy
The display policy for the horizontal scrollbar. |
JScrollBar | hsb
The horizontal scrollbar |
java.awt.Component | lowerLeft
The component at the lower left corner |
java.awt.Component | lowerRight
The component at the lower right corner |
JViewport | rowHead
The row-header component |
java.awt.Component | upperLeft
The component at the upper left corner |
java.awt.Component | upperRight
The component at the upper right corner |
JViewport | viewport
The JViewport that displays the pane's contents |
int | vsbPolicy
The display policy for the vertical scrollbar. |
JScrollBar | vsb
The vertical scrollbar |
Method Summary | |
void | addLayoutComponent(java.lang.String s,
java.awt.Component c)
Adds the specified component to the layout, identifying it as one of:
|
java.awt.Component | addSingletonComponent(java.awt.Component oldC,
java.awt.Component newC)
The method used to replace an existing component (if any) with a new one. |
JViewport | getColumnHeader()
Returns the column header component. |
java.awt.Component | getCorner(java.lang.String key)
Returns the component at the specified corner, where the corner specification is one of:
|
int | getHorizontalScrollBarPolicy()
Returns the horizontal scrollbar-display policy. |
JScrollBar | getHorizontalScrollBar()
Returns the horizontal scrollbar. |
JViewport | getRowHeader()
Returns the row header component. |
int | getVerticalScrollBarPolicy()
Returns the vertical scrollbar-display policy. |
JScrollBar | getVerticalScrollBar()
Returns the vertical scrollbar. |
java.awt.Rectangle | getViewportBorderBounds(JScrollPane sp)
Returns the bounds of the border around the specified scroll pane's viewport. |
JViewport | getViewport()
Returns the view port object. |
void | layoutContainer(java.awt.Container parent)
Layout the scrollpane according to the following constraints:
|
java.awt.Dimension | minimumLayoutSize(java.awt.Container parent)
The minimum size of a ScrollPane 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. |
java.awt.Dimension | preferredLayoutSize(java.awt.Container parent)
The preferred size of a ScrollPane 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 | removeLayoutComponent(java.awt.Component c)
Removes the specified component from the layout. |
void | setHorizontalScrollBarPolicy(int x)
Returns the horizontal scrollbar-display policy, where the options are:
|
void | setVerticalScrollBarPolicy(int x)
Returns the vertical scrollbar-display policy, where the options are:
|
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Field Detail |
protected JViewport viewport
protected JScrollBar vsb
protected JScrollBar hsb
protected JViewport rowHead
protected JViewport colHead
protected java.awt.Component lowerLeft
protected java.awt.Component lowerRight
protected java.awt.Component upperLeft
protected java.awt.Component upperRight
protected int vsbPolicy
protected int hsbPolicy
Method Detail |
protected java.awt.Component addSingletonComponent(java.awt.Component oldC, java.awt.Component newC)
oldC
- the Component to replace
newC
- the Component to addpublic void addLayoutComponent(java.lang.String s, java.awt.Component c)
s
- the component identifier
comp
- the the component to be addedpublic void removeLayoutComponent(java.awt.Component c)
comp
- the component to removepublic int getVerticalScrollBarPolicy()
public void setVerticalScrollBarPolicy(int x)
x
- an int giving the display policypublic int getHorizontalScrollBarPolicy()
public void setHorizontalScrollBarPolicy(int x)
x
- an int giving the display policypublic JViewport getViewport()
public JScrollBar getHorizontalScrollBar()
public JScrollBar getVerticalScrollBar()
public JViewport getRowHeader()
public JViewport getColumnHeader()
public java.awt.Component getCorner(java.lang.String key)
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
parent
- the Container that will be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
parent
- the Container that will be laid outpublic void layoutContainer(java.awt.Container parent)
parent
- the Container to lay outpublic java.awt.Rectangle getViewportBorderBounds(JScrollPane sp)
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |