|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.awt.JvAbstractLayoutManager
org.jurvis.awt.JvColumnFillLayout
public class JvColumnFillLayout
JvColumnFillLayout lays out components in a column with one
component receiving any remaining space. Each component is stretched
horizontally to touch the sides of its container. Each component, except
for one, is given its preferred height. One component, specified via a
constraint of "fill", is given any remaining space. This layout manager was
originally designed for application windows which contain multiple tool
bars, a status bar, and a main panel.
| Field Summary | |
|---|---|
static String |
FILL
LayoutManager "constraint" used to designate the fill component. |
| Fields inherited from class org.jurvis.awt.JvAbstractLayoutManager |
|---|
gap |
| Constructor Summary | |
|---|---|
JvColumnFillLayout()
Construct a new JvColumnFillLayout with a 2 pixel gap between
components. |
|
JvColumnFillLayout(int gap)
Construct a new JvColumnFillLayout with the specified gap
between components. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
layoutContainer(Container parent)
Lays out the container in the specified panel. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
| Methods inherited from class org.jurvis.awt.JvAbstractLayoutManager |
|---|
minimumLayoutSize, preferredLayoutSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FILL
| Constructor Detail |
|---|
public JvColumnFillLayout()
JvColumnFillLayout with a 2 pixel gap between
components.
public JvColumnFillLayout(int gap)
JvColumnFillLayout with the specified gap
between components.
gap - pixel gap between components| Method Detail |
|---|
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManageraddLayoutComponent in class JvAbstractLayoutManagername - the component namecomp - the component to be addedpublic void layoutContainer(Container parent)
parent - the component which needs to be laid outpublic void removeLayoutComponent(Component comp)
comp - the component to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||