|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LayoutConverter
The LayoutConverter
interface defines a layout converter that
creates LayoutManager objects and constraints objects based on a provided
XML attributes or elements.
LayoutConverterLibrary
Method Summary | |
---|---|
Object |
convertConstraintsAttribute(Attribute attr)
Converts the given "constraints" attribute to a layout manager specific constraints instance. |
Object |
convertConstraintsElement(Element element)
Converts the given "constraints" element to a layout manager specific constraints instance. |
LayoutManager |
convertLayoutAttribute(Attribute attr)
Converts the given "layout" attribute to a LayoutManager
instance. |
LayoutManager |
convertLayoutElement(Element element)
Converts the given "layout" element to a LayoutManager
instance. |
String |
getID()
Returns the unique identifier of the layout converter. |
Method Detail |
---|
String getID()
LayoutManager convertLayoutAttribute(Attribute attr)
Converts the given "layout" attribute to a LayoutManager
instance. The attribute value always starts with the layout identifier
(see getID()
) followed by optional parameters.
If the layout converter does not use the "layout" attribute, this method
should return null
, but then convertLayoutElement(org.jdom.Element)
must return a LayoutManager
instance.
XML notation:
<panel layout="mylayout"/>
LayoutManager convertLayoutElement(Element element)
Converts the given "layout" element to a LayoutManager
instance. The element may have any layout manager specific attributes
or child elements. The "type" attribute is used to choose the layout converter.
If the layout converter does not use the "layout" element, this method
should return null
, but then convertLayoutAttribute(org.jdom.Attribute)
must return a LayoutManager
instance.
XML notation:
<panel> <layout type="mylayout" attr1="value1"/> </panel>
Object convertConstraintsAttribute(Attribute attr)
Converts the given "constraints" attribute to a layout manager specific constraints instance.
If the layout converter does not use the "constraints" attribute, this method
should return null
.
XML notation:
<label constraints="value" />
Object convertConstraintsElement(Element element)
Converts the given "constraints" element to a layout manager specific constraints instance. The element may have any layout manager specific attributes or child elements.
If the layout converter does not use the "constraints" element, this method
should return null
.
XML notation:
<label> <constraints attr1="value1" /> </label>
|
SWIXML 1.6 (#161) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |