Class XMLGridLayout

  • All Implemented Interfaces:
    LayoutManager

    public class XMLGridLayout
    extends Object
    implements LayoutManager
    XMLGridLayout uses a XML input (a string, for the time being) to define the layout of components inside the container. To do this a set of constraints in the form of GridBagConstraints are build and associated to a name. When adding the component to the container, the name of the constraint to be used must be supplied, using the add(name,component) method. If the name associated to the component has no associated constrain, the component is not layout.
    Implementation Note: Internally this class uses a GridBagLayout and delegates to it all the calculations necesary to layout the components.
    Author:
    Rafael Alvarez