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

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

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
 
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.
 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
 

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()


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.