|
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.CardLayoutConverter
public class CardLayoutConverter
A layout converter for java.awt.CardLayout
.
Examples:
<panel layout="CardLayout"> <panel constraints="card1" /> <panel constraints="card2" /> </panel>
<panel layout="CardLayout(10,20)"> <panel constraints="firstCard" /> <panel constraints="secondCard" /> </panel>
<panel> <layout type="CardLayout" hgap="10" vgap="20"/> <panel constraints="firstCard" /> <panel constraints="secondCard" /> </panel>
Here is how to access the card layout manager of a component installed by SwixML
(CardLayout)((Container)swingEngine.find("id_of_my_CLed_comp")).getLayout()
Constructor Summary | |
---|---|
CardLayoutConverter()
|
Method Summary | |
---|---|
Object |
convertConstraintsAttribute(Attribute attr)
Converts CardLayout constraints. |
Object |
convertConstraintsElement(Element element)
Returns always null . |
LayoutManager |
convertLayoutAttribute(Attribute attr)
Creates a CardLayout instance. |
LayoutManager |
convertLayoutElement(Element element)
Creates a CardLayout instance. |
String |
getID()
Returns "cardlayout". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CardLayoutConverter()
Method Detail |
---|
public String getID()
getID
in interface LayoutConverter
public LayoutManager convertLayoutAttribute(Attribute attr)
Creates a CardLayout instance.
Examples for Valid XML attribute notations:
layout="CardLayout"
layout="CardLayout(int hgap, int vgap)"
convertLayoutAttribute
in interface LayoutConverter
public LayoutManager convertLayoutElement(Element element)
Creates a CardLayout instance.
Attributes:
hgap
(optional): The horizontal gap.vgap
(optional): The vertical gap.Examples for Valid XML element notations:
<layout type="CardLayout"/>
<layout type="CardLayout" hgap="10" vgap="20"/>
convertLayoutElement
in interface LayoutConverter
public Object convertConstraintsAttribute(Attribute attr)
Examples for Valid XML attribute notations:
constraints="cardname"
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 |