public class VerticalLayout extends Object implements LayoutManager
Constructor and Description |
---|
VerticalLayout()
DefaultConstructor.
|
VerticalLayout(boolean useParent)
Creates a new vertical layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout.
|
boolean |
isUseSizeFromParent()
Returns, whether the parent's defined size is used during the layouting, or whether the childs are used to compute
the size.
|
void |
layoutContainer(Container parent)
Lays out the container in the specified panel.
|
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent
container.
|
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent
container.
|
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout.
|
public VerticalLayout()
public VerticalLayout(boolean useParent)
useParent
- defines, whether the parent's size is used.public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
name
- the component namecomp
- the component to be addedpublic void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component to be removedpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- the component to be laid outminimumLayoutSize(java.awt.Container)
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- the component to be laid outpreferredLayoutSize(java.awt.Container)
public boolean isUseSizeFromParent()
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- the component which needs to be laid outCopyright © 2002–2017 Pentaho Corporation. All rights reserved.