|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.swixml.layoutconverters.GridLayoutConverter
public class GridLayoutConverter
A layout converter for java.awt.GridLayout
.
Examples:
<panel layout="GridLayout"> <panel ... /> <panel ... /> </panel>
<panel layout="GridLayout(2,4)"> ... </panel>
<panel layout="GridLayout(2,4,10,20)"> ... </panel>
<panel> <layout type="GridLayout" rows="2" columns="4"/> ... </panel>
<panel> <layout type="GridLayout" rows="2" columns="4" hgap="10" vgap="20"/> ... </panel>
Constructor Summary | |
---|---|
GridLayoutConverter()
|
Method Summary | |
---|---|
Object |
convertConstraintsAttribute(Attribute attr)
Returns always null . |
Object |
convertConstraintsElement(Element element)
Returns always null . |
LayoutManager |
convertLayoutAttribute(Attribute attr)
Creates a GridLayout instance. |
LayoutManager |
convertLayoutElement(Element element)
Creates a GridLayout instance. |
String |
getID()
Returns "gridlayout". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridLayoutConverter()
Method Detail |
---|
public String getID()
getID
in interface LayoutConverter
public LayoutManager convertLayoutAttribute(Attribute attr)
Creates a GridLayout instance.
Examples for Valid XML attribute notations:
layout="GridLayout"
layout="GridLayout(int rows, int cols)"
layout="GridLayout(int rows, int cols, int hgap, int vgap)"
convertLayoutAttribute
in interface LayoutConverter
public LayoutManager convertLayoutElement(Element element)
Creates a GridLayout instance.
Attributes:
rows
(optional): The number of rows.columns
(optional): The number of columns.hgap
(optional): The horizontal gap.vgap
(optional): The vertical gap.Examples for Valid XML element notations:
<layout type="GridLayout"/>
<layout type="GridLayout" rows="4" columns="5"/>
<layout type="GridLayout" rows="2" columns="4" hgap="10" vgap="20"/>
convertLayoutElement
in interface LayoutConverter
public Object convertConstraintsAttribute(Attribute attr)
null
.
convertConstraintsAttribute
in interface LayoutConverter
public Object convertConstraintsElement(Element element)
null
.
convertConstraintsElement
in interface LayoutConverter
|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |