public class TabLayout extends Object implements LayoutManager
GridLayout
, whose column widths and
row heights can variate. so a column with only narrow components is narrower
than one with large components.Modifier and Type | Field and Description |
---|---|
protected int |
anzahlSpalten |
protected boolean |
dontMaximizeComponents |
protected int |
xAbs |
protected int |
yAbs |
Constructor and Description |
---|
TabLayout(int columns)
Constructs a TabLayout.
|
TabLayout(int columns,
boolean dontMaximizeComponents)
Constructs a TabLayout.
|
TabLayout(int columns,
int xAbs,
int yAbs)
Constructs a TabLayout.
|
TabLayout(int columns,
int xAbs,
int yAbs,
boolean dontMaximizeComponents)
Constructs a TabLayout.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(String name,
Component comp) |
(package private) int[] |
getBreiten(int gesBreite,
Component[][] comp) |
(package private) Component[][] |
getComponentFeld(Container c) |
(package private) int[] |
getHoehen(int gesHoehe,
Component[][] comp) |
void |
layoutContainer(Container target) |
Dimension |
minimumLayoutSize(Container target) |
Dimension |
preferredLayoutSize(Container c) |
void |
removeLayoutComponent(Component comp) |
protected int anzahlSpalten
protected int xAbs
protected int yAbs
protected boolean dontMaximizeComponents
public TabLayout(int columns)
columns
- The number of columns.public TabLayout(int columns, int xAbs, int yAbs)
columns
- The number of columns.xAbs
- horizontal gap between the componentsyAbs
- vertical gap between the componentspublic TabLayout(int columns, boolean dontMaximizeComponents)
columns
- The number of columns.dontMaximizeComponents
- If true the Components of a Container using this
TabLayout are not maximized to fit in their cell but have a maximum
size equal to their preferred size.public TabLayout(int columns, int xAbs, int yAbs, boolean dontMaximizeComponents)
columns
- The number of columns.xAbs
- horizontal gap between the componentsyAbs
- vertical gap between the componentsdontMaximizeComponents
- If true the Components of a Container using this
TabLayout are not maximized to fit in their cell but have a maximum
size equal to their preferred size.int[] getBreiten(int gesBreite, Component[][] comp)
int[] getHoehen(int gesHoehe, Component[][] comp)
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
public Dimension preferredLayoutSize(Container c)
preferredLayoutSize
in interface LayoutManager
public Dimension minimumLayoutSize(Container target)
minimumLayoutSize
in interface LayoutManager
public void layoutContainer(Container target)
layoutContainer
in interface LayoutManager
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)