|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ScrollPaneLayout
leon.view.win.swing.table.LyJTableScrollPaneLayout
public class LyJTableScrollPaneLayout
This class lays out a LyJTableScrollPane. It manages a column footer component.
Nested Class Summary | |
---|---|
static class |
LyJTableScrollPaneLayout.UIResource
The UI resource version of ScrollPaneLayout. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static java.lang.String |
COLUMN_FOOTER
The id of the column footer. |
static int |
MAX_PREFERRED_HEIGHT
Deprecated. no longer used. |
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 | |
---|---|
LyJTableScrollPaneLayout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(java.lang.String s,
java.awt.Component c)
Adds the specified component to the layout. |
javax.swing.JViewport |
getColumnFooter()
Gets the JViewport object that is the column footer. |
java.awt.Dimension |
getCustomizedScrollablePreferredSize(java.awt.Component view)
Overload to have a customized scrollable preferred size. |
void |
layoutContainer(java.awt.Container parent)
Lays out the scrollpane. |
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)
(non-Javadoc). |
void |
setScreenSize(int[] screenSize)
Set the screen dimension used to compute preferred size of the table. |
void |
syncWithScrollPane(javax.swing.JScrollPane sp)
This method must be called after setting a JScrollPanes layout manager. |
Methods inherited from class javax.swing.ScrollPaneLayout |
---|
getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, minimumLayoutSize, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final java.lang.String COLUMN_FOOTER
public static int MAX_PREFERRED_HEIGHT
Constructor Detail |
---|
public LyJTableScrollPaneLayout()
Method Detail |
---|
public void syncWithScrollPane(javax.swing.JScrollPane sp)
ScrollPaneLayout mySPLayout = new ScrollPanelLayout() { public void layoutContainer(Container p) { super.layoutContainer(p); // do some extra work here ... } }; scrollpane.setLayout(mySPLayout): mySPLayout.syncWithScrollPane(scrollpane);
This method is overriden to set the column footer to the given JScrollPane column footer
if it is a LyJTableScrollPane
.
syncWithScrollPane
in class javax.swing.ScrollPaneLayout
public void addLayoutComponent(java.lang.String s, java.awt.Component c)
ScrollPaneConstants.VIEWPORT
ScrollPaneConstants.VERTICAL_SCROLLBAR
ScrollPaneConstants.HORIZONTAL_SCROLLBAR
ScrollPaneConstants.ROW_HEADER
ScrollPaneConstants.COLUMN_HEADER
ScrollPaneConstants.LOWER_LEFT_CORNER
ScrollPaneConstants.LOWER_RIGHT_CORNER
ScrollPaneConstants.UPPER_LEFT_CORNER
ScrollPaneConstants.UPPER_RIGHT_CORNER
COLUMN_FOOTER
addLayoutComponent
in interface java.awt.LayoutManager
addLayoutComponent
in class javax.swing.ScrollPaneLayout
s
- the component identifierc
- the the component to be addedpublic void removeLayoutComponent(java.awt.Component c)
removeLayoutComponent
in interface java.awt.LayoutManager
removeLayoutComponent
in class javax.swing.ScrollPaneLayout
LayoutManager.removeLayoutComponent(java.awt.Component)
public javax.swing.JViewport getColumnFooter()
public void setScreenSize(int[] screenSize)
screenSize
- the screen dimension.public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class javax.swing.ScrollPaneLayout
parent
- the Container that will be laid out
ViewportLayout
,
LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class javax.swing.ScrollPaneLayout
parent
- the Container to lay outpublic java.awt.Dimension getCustomizedScrollablePreferredSize(java.awt.Component view)
view
- the view
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |