|
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.FlowLayoutConverter
public class FlowLayoutConverter
A layout converter for java.awt.FlowLayout
.
Examples:
<panel layout="FlowLayout"> <panel ... /> <panel ... /> </panel>
<panel layout="FlowLayout(FlowLayout.RIGHT)"> ... </panel>
<panel layout="FlowLayout(FlowLayout.LEFT, 1, 2)"> ... </panel>
<panel> <layout type="FlowLayout" alignment="FlowLayout.RIGHT"/> ... </panel>
<panel> <layout type="FlowLayout" alignment="FlowLayout.LEFT" hgap="10" vgap="20"/> ... </panel>
Constructor Summary | |
---|---|
FlowLayoutConverter()
|
Method Summary | |
---|---|
Object |
convertConstraintsAttribute(Attribute attr)
Returns always null . |
Object |
convertConstraintsElement(Element element)
Returns always null . |
LayoutManager |
convertLayoutAttribute(Attribute attr)
Creates a FlowLayout instance. |
LayoutManager |
convertLayoutElement(Element element)
Creates a FlowLayout instance. |
String |
getID()
Returns "flowlayout". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowLayoutConverter()
Method Detail |
---|
public String getID()
getID
in interface LayoutConverter
public LayoutManager convertLayoutAttribute(Attribute attr)
Creates a FlowLayout instance.
Examples for Valid XML attribute notations:
layout="FlowLayout"
layout="FlowLayout(int align)"
layout="FlowLayout(int align, int hgap, int vgap)"
convertLayoutAttribute
in interface LayoutConverter
public LayoutManager convertLayoutElement(Element element)
Creates a FlowLayout instance.
Attributes:
alignment
(optional): The horizontal alignment.hgap
(optional): The horizontal gap.vgap
(optional): The vertical gap.Examples for Valid XML element notations:
<layout type="FlowLayout"/>
<layout type="FlowLayout" alignment="FlowLayout.LEFT"/>
<layout type="FlowLayout" alignment="FlowLayout.LEFT" 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 |