com.abstractics.xmlpanel.xmllayout
Class XmlLayoutRow

java.lang.Object
  extended bycom.abstractics.xmlpanel.xmllayout.XmlLayoutSize
      extended bycom.abstractics.xmlpanel.xmllayout.XmlLayoutRow

public class XmlLayoutRow
extends XmlLayoutSize

Version:
$Id: XmlLayoutRow.java,v 1.2 2006/03/15 05:37:44 andyman99 Exp $
Author:
Andrew Lawrence, Copyright 2006 Abstractics, L.L.C., Licensed under the Apache License, Version 2.0

Constructor Summary
(package private) XmlLayoutRow(XmlLayout parentPanel, XmlPanel panel, org.w3c.dom.Element element)
          Only package level constructable.
 
Method Summary
 java.lang.String getCellAlign()
           
 java.lang.String getCellPadding()
           
 XmlLayoutCell[] getCells()
           
 java.awt.Dimension getMinimumSize()
          Gets the minimum size for this row - the sum of all minumum widths of the cells and the max of the minimum heights
 int getNeededSize()
          Should return the size element of the preferred size needed for this type of component (width for cells, height for rows)
 XmlLayout getParentLayout()
           
 java.awt.Dimension getPreferredSize()
          Gets the preferred size for this row - the sum of all preferred widths of the cells and the max of the preferred heights.
If the row is not included in the layout, then the height is 0
 java.lang.String[] getRequiredWidths()
           
 boolean includeInLayout()
          For rows, if the row height is unspecified, and if all of the components in all of the cells in the row are not visible, then the row is not included.
 
Methods inherited from class com.abstractics.xmlpanel.xmllayout.XmlLayoutSize
determineSizes, getFixed, getPercent, isFixed, isPercent, isRemainder, isUnspecified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlLayoutRow

XmlLayoutRow(XmlLayout parentPanel,
             XmlPanel panel,
             org.w3c.dom.Element element)
Only package level constructable. Created from the XmlLayout object.

Parameters:
parentPanel -
panel -
element -
Method Detail

getRequiredWidths

public java.lang.String[] getRequiredWidths()

getMinimumSize

public java.awt.Dimension getMinimumSize()
Gets the minimum size for this row - the sum of all minumum widths of the cells and the max of the minimum heights

Returns:

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the preferred size for this row - the sum of all preferred widths of the cells and the max of the preferred heights.
If the row is not included in the layout, then the height is 0

Specified by:
getPreferredSize in class XmlLayoutSize
Returns:

getCells

public XmlLayoutCell[] getCells()
Returns:
Returns the cells.

getParentLayout

public XmlLayout getParentLayout()
Returns:
Returns the parentPanel.

getNeededSize

public int getNeededSize()
Description copied from class: XmlLayoutSize
Should return the size element of the preferred size needed for this type of component (width for cells, height for rows)

Specified by:
getNeededSize in class XmlLayoutSize
Returns:

getCellAlign

public java.lang.String getCellAlign()
Returns:
Returns the cellalign attribute for this row, or if it is not available, returns the cellalign from the parent panel.

getCellPadding

public java.lang.String getCellPadding()
Returns:
Returns the cellpadding attribute for this row, or if it is not available, returns the cellpadding from the parent panel.

includeInLayout

public boolean includeInLayout()
For rows, if the row height is unspecified, and if all of the components in all of the cells in the row are not visible, then the row is not included. NOTE: It is if all of the components are NOT VISIBLE, not if they are included or not.

Specified by:
includeInLayout in class XmlLayoutSize
Returns:
See Also:
XmlLayoutSize.includeInLayout()