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