org.apache.commons.jelly.tags.swing.impl
Class GridBagConstraintBean

java.lang.Object
  extended by java.awt.GridBagConstraints
      extended by org.apache.commons.jelly.tags.swing.impl.GridBagConstraintBean
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class GridBagConstraintBean
extends java.awt.GridBagConstraints

This class is a simple "bean-wrapper" for the GridBagConstraints class which also tracks wether values are set allowing inheritance (using setBasedOn.

Version:
$Revision: 155420 $
Author:
Paul Libbrecht
See Also:
Serialized Form

Field Summary
private  boolean anchorSet
           
private  boolean fillSet
           
private  boolean gridheightSet
           
private  boolean gridwidthSet
           
private  boolean gridxSet
           
private  boolean gridySet
           
private static java.lang.String ILLEGAL_ANCHOR_MSG
          error message
private  boolean ipadxSet
           
private  boolean ipadySet
           
private static org.apache.commons.logging.Log LOG
          Logging output
private  boolean weightxSet
           
private  boolean weightySet
           
 
Fields inherited from class java.awt.GridBagConstraints
anchor, BOTH, CENTER, EAST, fill, FIRST_LINE_END, FIRST_LINE_START, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, NONE, NORTH, NORTHEAST, NORTHWEST, PAGE_END, PAGE_START, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST
 
Constructor Summary
GridBagConstraintBean()
           
 
Method Summary
 java.lang.String getAnchor()
          Returns the lower-case variant of the constant-name corresponding to the stored GridBagConstraints.anchor attribute.
private  int getByReflection(java.lang.String field)
           
 java.lang.String getFill()
          Returns the lower-case variant of the constant-name corresponding to the stored GridBagConstraints.fill attribute.
 int getGridheight()
           
 int getGridwidth()
           
 int getGridx()
           
 int getGridy()
           
 java.awt.Insets getInsets()
           
 int getIpadx()
           
 int getIpady()
           
 double getWeightx()
           
 double getWeighty()
           
 void setAnchor(java.lang.String anchorString)
          Accepts one of the strings with the same name as the constants and sets the GridBagConstraints.anchor value accordingly.
 void setBasedOn(GridBagConstraintBean from)
          Reads the values in the given grid-bag-constraint-bean that are set and sets them in this object if they have not been set yet.
 void setFill(java.lang.String fillString)
          Accepts one of the strings with the same name as the constants and sets the GridBagConstraints.fill value accordingly.
 void setGridheight(int gridheight)
           
 void setGridwidth(int gridwidth)
           
 void setGridx(int gridx)
           
 void setGridy(int gridy)
           
 void setInsets(java.awt.Insets insets)
           
 void setIpadx(int ipadx)
           
 void setIpady(int ipady)
           
 void setWeightx(double weightx)
           
 void setWeighty(double weighty)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.GridBagConstraints
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

gridxSet

private boolean gridxSet

gridySet

private boolean gridySet

gridwidthSet

private boolean gridwidthSet

gridheightSet

private boolean gridheightSet

weightxSet

private boolean weightxSet

weightySet

private boolean weightySet

ipadxSet

private boolean ipadxSet

ipadySet

private boolean ipadySet

anchorSet

private boolean anchorSet

fillSet

private boolean fillSet

LOG

private static final org.apache.commons.logging.Log LOG
Logging output


ILLEGAL_ANCHOR_MSG

private static final java.lang.String ILLEGAL_ANCHOR_MSG
error message

See Also:
Constant Field Values
Constructor Detail

GridBagConstraintBean

public GridBagConstraintBean()
Method Detail

getGridx

public int getGridx()

setGridx

public void setGridx(int gridx)

getGridy

public int getGridy()

setGridy

public void setGridy(int gridy)

getGridwidth

public int getGridwidth()

setGridwidth

public void setGridwidth(int gridwidth)

getGridheight

public int getGridheight()

setGridheight

public void setGridheight(int gridheight)

getWeightx

public double getWeightx()

setWeightx

public void setWeightx(double weightx)

getWeighty

public double getWeighty()

setWeighty

public void setWeighty(double weighty)

getIpadx

public int getIpadx()

setIpadx

public void setIpadx(int ipadx)

getIpady

public int getIpady()

setIpady

public void setIpady(int ipady)

getInsets

public java.awt.Insets getInsets()

setInsets

public void setInsets(java.awt.Insets insets)

getAnchor

public java.lang.String getAnchor()
Returns the lower-case variant of the constant-name corresponding to the stored GridBagConstraints.anchor attribute.

See Also:
GridBagConstraints.anchor

setAnchor

public void setAnchor(java.lang.String anchorString)
Accepts one of the strings with the same name as the constants and sets the GridBagConstraints.anchor value accordingly. The accepted strings are case-insensitive.

See Also:
GridBagConstraints.anchor

getFill

public java.lang.String getFill()
Returns the lower-case variant of the constant-name corresponding to the stored GridBagConstraints.fill attribute.

See Also:
GridBagConstraints.fill

setFill

public void setFill(java.lang.String fillString)
Accepts one of the strings with the same name as the constants and sets the GridBagConstraints.fill value accordingly. The accepted strings are case-insensitive.

See Also:
GridBagConstraints.fill

setBasedOn

public void setBasedOn(GridBagConstraintBean from)
Reads the values in the given grid-bag-constraint-bean that are set and sets them in this object if they have not been set yet.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getByReflection

private int getByReflection(java.lang.String field)