SWIXML
1.6 (#161)

org.swixml.layoutconverters
Class BorderLayoutConverter

java.lang.Object
  extended by org.swixml.layoutconverters.BorderLayoutConverter
All Implemented Interfaces:
LayoutConverter

public class BorderLayoutConverter
extends Object
implements LayoutConverter

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>
 

Author:
Karl Tauber, Wolf Paulus

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

BorderLayoutConverter

public BorderLayoutConverter()
Method Detail

getID

public String getID()
Returns "borderlayout".

Specified by:
getID in interface LayoutConverter

convertLayoutAttribute

public LayoutManager convertLayoutAttribute(Attribute attr)

Creates a BorderLayout instance.

Examples for Valid XML attribute notations:

Specified by:
convertLayoutAttribute in interface LayoutConverter

convertLayoutElement

public LayoutManager convertLayoutElement(Element element)

Creates a BorderLayout instance.

Attributes:

Examples for Valid XML element notations:

Specified by:
convertLayoutElement in interface LayoutConverter

convertConstraintsAttribute

public Object convertConstraintsAttribute(Attribute attr)
Converts BorderLayout constraints.

Examples for Valid XML attribute notations:

Specified by:
convertConstraintsAttribute in interface LayoutConverter

convertConstraintsElement

public Object convertConstraintsElement(Element element)
Returns always null.

Specified by:
convertConstraintsElement in interface LayoutConverter

SWIXML
1.6 (#161)

Copyright � 2002 - 2011 - Wolf Paulus - wolfpaulus.com. All rights reserved.