| java.lang.Object org.wings.plaf.css.AbstractLayoutCG
All known Subclasses: org.wings.plaf.css.ScrollPaneLayoutCG, org.wings.plaf.css.GridBagLayoutCG, org.wings.plaf.css.FlowLayoutCG, org.wings.plaf.css.BorderLayoutCG, org.wings.plaf.css.GridLayoutCG, org.wings.plaf.css.BoxLayoutCG,
AbstractLayoutCG | abstract public class AbstractLayoutCG implements LayoutCG(Code) | | Abstract super class for layout CGs using invisible tables to arrange their contained components.
author: bschmid |
Method Summary | |
final protected TableCellStyle | cellLayoutStyle(SLayoutManager layout) | final protected int | cellOversize(SGridBagLayout layout, Insets insets) | protected void | closeLayouterBody(Device d, SLayoutManager layout) | public static void | closeLayouterCell(Device d, SComponent component, boolean renderAsHeader) Closes a TD or TH cell of an invisible layouter table. | public static void | closeLayouterRow(Device d) Closes a TR. | protected static Insets | convertGapsToInset(int hgap, int vgap) Converts a hgap/vgap in according inset declaration. | abstract public int | getDefaultLayoutCellHAlignment() The default horizontal alignment for components inside a layout cell. | abstract public int | getDefaultLayoutCellVAlignment() The default vertical alignment for components inside a layout cell. | abstract protected int | getLayoutBorder(SLayoutManager layout) | abstract protected int | getLayoutHGap(SLayoutManager layout) | abstract protected int | getLayoutVGap(SLayoutManager layout) | final protected boolean | isMSIE(SComponent component) | abstract protected int | layoutOversize(SLayoutManager layout) | protected void | openLayouterBody(Device d, SLayoutManager layout) Print HTML table element declaration of a typical invisible layouter table. | public static void | openLayouterCell(Device d, SComponent component, TableCellStyle cellStyle) Opens a TD or TH cell of an invisible layouter table. | public static void | openLayouterRow(Device d, String height) | protected void | printLayouterTableBody(Device d, SContainer renderedContainer, int cols, List components, TableCellStyle cellStyle) Render passed list of components to a table body. |
closeLayouterCell | public static void closeLayouterCell(Device d, SComponent component, boolean renderAsHeader) throws IOException(Code) | | Closes a TD or TH cell of an invisible layouter table.
Parameters: renderAsHeader - Print TH instead of TD |
convertGapsToInset | protected static Insets convertGapsToInset(int hgap, int vgap)(Code) | | Converts a hgap/vgap in according inset declaration.
If a gapp is odd, the overlapping additonal pixel is added to the right/bottom inset.
Parameters: hgap - Horizontal gap between components in px Parameters: vgap - Vertical gap between components in px An inset equal to the gap declarations |
getDefaultLayoutCellHAlignment | abstract public int getDefaultLayoutCellHAlignment()(Code) | | The default horizontal alignment for components inside a layout cell.
|
getDefaultLayoutCellVAlignment | abstract public int getDefaultLayoutCellVAlignment()(Code) | | The default vertical alignment for components inside a layout cell.
|
isMSIE | final protected boolean isMSIE(SComponent component)(Code) | | true if current browser is microsoft exploder |
openLayouterCell | public static void openLayouterCell(Device d, SComponent component, TableCellStyle cellStyle) throws IOException(Code) | | Opens a TD or TH cell of an invisible layouter table. This method also does component alignment.
Attention: As you want to attach more attributes you need to close the tag with > on your own!
|
|
|