Package org.basex.gui.layout
Class TableLayout
java.lang.Object
org.basex.gui.layout.TableLayout
- All Implemented Interfaces:
LayoutManager
This LayoutManager is similar to the GridLayout. The added components
keep their minimum size even when the parent container is resized.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
ConstructorsConstructorDescriptionTableLayout(int rows, int cols) Creates a table layout with the specified number of rows and columns.TableLayout(int rows, int cols, int hgap, int vgap) Creates a table layout with the specified number of rows and columns. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component comp) voidlayoutContainer(Container cont) minimumLayoutSize(Container parent) preferredLayoutSize(Container cont) void
-
Constructor Details
-
TableLayout
public TableLayout(int rows, int cols) Creates a table layout with the specified number of rows and columns.- Parameters:
rows- number of rowscols- number of columns
-
TableLayout
public TableLayout(int rows, int cols, int hgap, int vgap) Creates a table layout with the specified number of rows and columns.- Parameters:
rows- number of rowscols- number of columnshgap- horizontal gapvgap- vertical gap
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-