|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.abstractics.xmlpanel.xmllayout.XmlLayout
In determining both widths and heights for the layout, the following precedence is followed:
Field Summary | |
static java.awt.Insets |
INSETS_ZERO
|
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
XmlLayout(org.w3c.dom.Element element)
Creates a layout from the element given. |
|
XmlLayout(org.w3c.dom.Element element,
XmlPanel panel)
Creates a layout from the Document given and uses any existing components in the map (keyed by component name) if they match names given in the XML, instead of creating new components. |
|
XmlLayout(java.lang.String xml)
Creates a layout from the XML string given. |
|
XmlLayout(java.lang.String xml,
XmlPanel panel)
Creates a layout from the XML string given and uses any existing components in the map (keyed by component name) if they match names given in the XML, instead of creating new components. |
Method Summary | |
java.lang.String |
getCellAlign()
|
java.lang.String |
getCellPadding()
|
java.util.Map |
getComponentMap()
|
java.awt.Component |
getComponentNamed(java.lang.String name)
|
java.awt.Component[] |
getComponents()
|
XmlLayoutCell[] |
getFloatingCells()
|
java.awt.Insets |
getMargins()
|
java.awt.Dimension |
getMinimumSize()
Returns the sum of all minimum row heights and the max of all minimum row widths. |
java.awt.Dimension |
getPreferredSize()
Returns the sum of all preferred row heights and the max of all preferred row widths, plus margins |
java.awt.Rectangle[] |
getRectangles()
|
java.lang.String[] |
getRequiredHeights()
|
XmlLayoutRow[] |
getRows()
|
void |
layout(java.awt.Dimension size)
Given the size that this panel should be, this method sets all of the locations and dimensions for the components. |
void |
layout(java.awt.Dimension size,
java.awt.Insets borderInsets)
Given the size that this panel should be, this method sets all of the locations and dimensions for the components. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.awt.Insets INSETS_ZERO
Constructor Detail |
public XmlLayout(org.w3c.dom.Element element)
element
- Element representing the XMLpublic XmlLayout(org.w3c.dom.Element element, XmlPanel panel)
element
- Element representing the XMLpanel
- The XmlPanel that this component is being placed into - for
reference only.public XmlLayout(java.lang.String xml) throws XmlException
xml
-
java.io.IOException
- Thrown if there is a problem with parsing the XML
XmlException
public XmlLayout(java.lang.String xml, XmlPanel panel) throws XmlException
xml
- panel
- The XmlPanel that this component is being placed into - for
reference only.
XmlException
- Thrown if there is a problem with parsing the XMLMethod Detail |
public XmlLayoutRow[] getRows()
public java.lang.String[] getRequiredHeights()
public java.awt.Insets getMargins()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getPreferredSize()
public java.awt.Rectangle[] getRectangles()
public void layout(java.awt.Dimension size)
size
- public void layout(java.awt.Dimension size, java.awt.Insets borderInsets)
size
- borderInsets
- Insets representing the border on the panelpublic java.util.Map getComponentMap()
public java.awt.Component[] getComponents()
public java.awt.Component getComponentNamed(java.lang.String name)
name
-
public java.lang.String getCellAlign()
public java.lang.String getCellPadding()
public XmlLayoutCell[] getFloatingCells()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |