|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 JViewport |
_colFoot
The column footer child. |
protected Component |
_hLeft
The component to the left of horizontal scroll bar. |
protected Component |
_hRight
The component to the right of horizontal scroll bar. |
protected JViewport |
_rowFoot
The row footer child. |
protected JViewport |
_subColHead
The row sub column header componeng. |
protected Component |
_subUpperLeft
The component under upper left corner. |
protected Component |
_subUpperRight
The component under upper right corner. |
protected Component |
_vBottom
The component to the bottom of vertical scroll bar. |
protected 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, SUB_COLUMN_HEADER, SUB_UPPER_LEFT, SUB_UPPER_RIGHT, VERTICAL_BOTTOM, VERTICAL_TOP |
Constructor Summary | |
---|---|
JideScrollPaneLayout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(String s,
Component c)
|
JViewport |
getColumnFooter()
Returns the JViewport object that is the column footer. |
JViewport |
getRowFooter()
Returns the JViewport object that is the row footer. |
JViewport |
getRowSubColumnHeader()
Returns the JViewport object that is the row sub column header. |
Component |
getScrollBarCorner(String key)
Returns the Component at the specified corner. |
protected boolean |
isColumnFootersHeightUnified(JScrollPane sp)
|
protected boolean |
isColumnHeadersHeightUnified(JScrollPane sp)
|
protected boolean |
isHsbCoversWholeWidth(JScrollPane sp)
|
protected boolean |
isVsbCoversWholeHeight(JScrollPane sp)
|
void |
layoutContainer(Container parent)
Lays out the scrollpane. |
Dimension |
minimumLayoutSize(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. |
Dimension |
preferredLayoutSize(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(Component c)
|
void |
syncWithScrollPane(JScrollPane sp)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JViewport _rowFoot
null
.
JideScrollPane.setRowFooter(javax.swing.JViewport)
protected JViewport _subColHead
null
.
JideScrollPane.setSubColumnHeader(javax.swing.JViewport)
protected JViewport _colFoot
null
.
JideScrollPane.setColumnFooter(javax.swing.JViewport)
protected Component _hLeft
protected Component _hRight
protected Component _vTop
protected Component _vBottom
protected Component _subUpperLeft
null
.
protected Component _subUpperRight
null
.
Constructor Detail |
---|
public JideScrollPaneLayout()
Method Detail |
---|
public void syncWithScrollPane(JScrollPane sp)
syncWithScrollPane
in class ScrollPaneLayout
protected boolean isHsbCoversWholeWidth(JScrollPane sp)
protected boolean isVsbCoversWholeHeight(JScrollPane sp)
protected boolean isColumnHeadersHeightUnified(JScrollPane sp)
protected boolean isColumnFootersHeightUnified(JScrollPane sp)
public void addLayoutComponent(String s, Component c)
addLayoutComponent
in interface LayoutManager
addLayoutComponent
in class ScrollPaneLayout
public void removeLayoutComponent(Component c)
removeLayoutComponent
in interface LayoutManager
removeLayoutComponent
in class ScrollPaneLayout
public JViewport getRowFooter()
JViewport
object that is the row footer.
JViewport
object that is the row footerJideScrollPane.getRowFooter()
public JViewport getRowSubColumnHeader()
JViewport
object that is the row sub column header.
JViewport
object that is the row sub column header.JideScrollPane.getSubColumnHeader()
public JViewport getColumnFooter()
JViewport
object that is the column footer.
JViewport
object that is the column footerJideScrollPane.getColumnFooter()
public Component getScrollBarCorner(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 Dimension preferredLayoutSize(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 LayoutManager
preferredLayoutSize
in class ScrollPaneLayout
parent
- the Container
that will be laid out
Dimension
object specifying the preferred size of the viewport and any scrollbarsViewportLayout
,
LayoutManager
public Dimension minimumLayoutSize(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 LayoutManager
minimumLayoutSize
in class ScrollPaneLayout
parent
- the Container
that will be laid out
Dimension
object specifying the minimum sizepublic void layoutContainer(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 LayoutManager
layoutContainer
in class ScrollPaneLayout
parent
- the Container
to lay out
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |