|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.ScrollPaneLayout
com.jidesoft.swing.JideScrollPaneLayout
public class JideScrollPaneLayout
The layout manager used by JideScrollPane. JideScrollPaneLayout is responsible for eleven
components: a viewport, two scrollbars, a row header, a column header, a row footer, a column footer, and four
"corner" components.
| Field Summary | |
|---|---|
protected javax.swing.JViewport |
_colFoot
The column footer child. |
protected java.awt.Component |
_hLeft
The component to the left of horizontal scroll bar. |
protected java.awt.Component |
_hRight
The component to the right of horizontal scroll bar. |
protected javax.swing.JViewport |
_rowFoot
The row footer child. |
protected java.awt.Component |
_vBottom
The component to the bottom of vertical scroll bar. |
protected java.awt.Component |
_vTop
The component to the top of vertical scroll bar. |
| Fields inherited from class javax.swing.ScrollPaneLayout |
|---|
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicy |
| Fields inherited from interface com.jidesoft.swing.JideScrollPaneConstants |
|---|
COLUMN_FOOTER, HORIZONTAL_LEADING, HORIZONTAL_LEFT, HORIZONTAL_RIGHT, HORIZONTAL_TRAILING, ROW_FOOTER, VERTICAL_BOTTOM, VERTICAL_TOP |
| Fields inherited from interface javax.swing.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 |
| Constructor Summary | |
|---|---|
JideScrollPaneLayout()
|
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String s,
java.awt.Component c)
|
javax.swing.JViewport |
getColumnFooter()
Returns the JViewport object that is the column footer. |
javax.swing.JViewport |
getRowFooter()
Returns the JViewport object that is the row footer. |
java.awt.Component |
getScrollBarCorner(java.lang.String key)
Returns the Component at the specified corner. |
protected boolean |
isColumnFootersHeightUnified(javax.swing.JScrollPane sp)
|
protected boolean |
isColumnHeadersHeightUnified(javax.swing.JScrollPane sp)
|
protected boolean |
isHsbCoversWholeWidth(javax.swing.JScrollPane sp)
|
protected boolean |
isVsbCoversWholeHeight(javax.swing.JScrollPane sp)
|
void |
layoutContainer(java.awt.Container parent)
Lays out the scrollpane. |
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)
|
void |
syncWithScrollPane(javax.swing.JScrollPane sp)
|
| Methods inherited from class javax.swing.ScrollPaneLayout |
|---|
addSingletonComponent, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JViewport _rowFoot
null.
JideScrollPane.setRowFooter(javax.swing.JViewport)protected javax.swing.JViewport _colFoot
null.
JideScrollPane.setColumnFooter(javax.swing.JViewport)protected java.awt.Component _hLeft
protected java.awt.Component _hRight
protected java.awt.Component _vTop
protected java.awt.Component _vBottom
| Constructor Detail |
|---|
public JideScrollPaneLayout()
| Method Detail |
|---|
public void syncWithScrollPane(javax.swing.JScrollPane sp)
syncWithScrollPane in class javax.swing.ScrollPaneLayoutprotected boolean isHsbCoversWholeWidth(javax.swing.JScrollPane sp)
protected boolean isVsbCoversWholeHeight(javax.swing.JScrollPane sp)
protected boolean isColumnHeadersHeightUnified(javax.swing.JScrollPane sp)
protected boolean isColumnFootersHeightUnified(javax.swing.JScrollPane sp)
public void addLayoutComponent(java.lang.String s,
java.awt.Component c)
addLayoutComponent in interface java.awt.LayoutManageraddLayoutComponent in class javax.swing.ScrollPaneLayoutpublic void removeLayoutComponent(java.awt.Component c)
removeLayoutComponent in interface java.awt.LayoutManagerremoveLayoutComponent in class javax.swing.ScrollPaneLayoutpublic javax.swing.JViewport getRowFooter()
JViewport object that is the row footer.
JViewport object that is the row footerJideScrollPane.getRowFooter()public javax.swing.JViewport getColumnFooter()
JViewport object that is the column footer.
JViewport object that is the column footerJideScrollPane.getColumnFooter()public java.awt.Component getScrollBarCorner(java.lang.String key)
Component at the specified corner.
key - the String specifying the corner
Component at the specified corner, as defined in ScrollPaneConstants; if
key is not one of the four corners, null is returnedJScrollPane.getCorner(java.lang.String)public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
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. Note that the rowHeader is calculated as part of the preferred width and the colHeader is calculated as part of the preferred size.
preferredLayoutSize in interface java.awt.LayoutManagerpreferredLayoutSize in class javax.swing.ScrollPaneLayoutparent - the Container that will be laid out
Dimension object specifying the preferred size of the viewport and any scrollbarsViewportLayout,
LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
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.
minimumLayoutSize in interface java.awt.LayoutManagerminimumLayoutSize in class javax.swing.ScrollPaneLayoutparent - the Container that will be laid out
Dimension object specifying the minimum sizepublic void layoutContainer(java.awt.Container parent)
displayPolicy is ALWAYS, it's treated like the row header with respect to its dimensions and
is made visible.
null viewportBorder, then space is allocated for
that.
layoutContainer in interface java.awt.LayoutManagerlayoutContainer in class javax.swing.ScrollPaneLayoutparent - the Container to lay out
|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||