|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sshtools.ui.swing.AbstractLayout
com.sshtools.ui.swing.ListLayout
public class ListLayout
A list layout puts elements in a vertical list, based on their vertical preferred size. The width is expanded automatically.
| Field Summary | |
|---|---|
protected int |
alignment
|
static int |
BOTH
|
protected java.awt.Component |
center
|
static int |
CENTER
|
protected int |
index
|
static int |
LEFT
|
protected java.util.Vector |
panels
|
static int |
RIGHT
|
protected java.util.Vector |
tabs
|
| Fields inherited from class com.sshtools.ui.swing.AbstractLayout |
|---|
hgap, vgap |
| Constructor Summary | |
|---|---|
ListLayout()
Constructs a ContextLayout with no gaps between components. |
|
ListLayout(int alignment)
Constructs a ContextLayout with no gaps between components and the specified alignment. |
|
ListLayout(int hgap,
int vgap)
Constructs a ContextLayout with the specified gaps. |
|
ListLayout(int hgap,
int vgap,
int alignment)
Constructs a ContextLayout with the specified gaps. |
|
| Method Summary | |
|---|---|
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the components in the specified target container. |
| Methods inherited from class com.sshtools.ui.swing.AbstractLayout |
|---|
addLayoutComponent, addLayoutComponent, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, maximumLayoutSize, removeLayoutComponent, setHgap, setVgap, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CENTER
public static final int LEFT
public static final int RIGHT
public static final int BOTH
protected java.util.Vector tabs
protected java.util.Vector panels
protected java.awt.Component center
protected int index
protected int alignment
| Constructor Detail |
|---|
public ListLayout()
public ListLayout(int alignment)
alignment - The LEFT, RIGHT, CENTER or BOTH alignment
public ListLayout(int hgap,
int vgap)
hgap - The horizontal gapvgap - The vertical gap
public ListLayout(int hgap,
int vgap,
int alignment)
hgap - The horizontal gapvgap - The vertical gapalignment - The LEFT, RIGHT, CENTER or BOTH alignment| Method Detail |
|---|
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
target - The Container on which to do the layoutpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
target - The component which needs to be laid outpublic void layoutContainer(java.awt.Container parent)
target - The component being laid out
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||