ProgramixGenericLib v5.0.1

com.programix.gui.layout
Class AnchorTableLayout

java.lang.Object
  extended by com.programix.gui.layout.AbstractTableLayout
      extended by com.programix.gui.layout.AnchorTableLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable
Direct Known Subclasses:
FormLayout, StackLayout

public class AnchorTableLayout
extends AbstractTableLayout
implements LayoutManager2

A table layout that allows an AnchorPoint to be specified for some (or all) of child components added, for some (or all) of the columns, and for some (or all) of the column headers. Specifically, an AnchorPoint is optionally specified for each of the columns. Additionally, a different AnchorPoint is optionally specified for each of the columns in the table's first row (table header). Furthermore, a different AnchorPoint is optionally specified for each of the Component's added to the table by specifying an AnchorPoint as a constraint at the time that the Component is added to its Container (using the add(Component comp, Object constraint) method from Container).

Some subclasses of this layout manager will have defaults for columns. Those defaults should be used unless a specific anchor has been specified for the column. If getColumnAnchorPoint(int colIdx) returns null, this indicates that there has not been a request to override the default anchor point for all rows in the column. If getColumnHeaderAnchorPoint(int colIdx) returns null, this indicates that there has not been a request to override the default anchor point for the first row in the column.

The anchor used is the first one found from the following (precedence):