com.taco.swinger.text2gui
Class GridBagLayoutComponentAddStrategy

java.lang.Object
  extended by com.taco.swinger.text2gui.ComponentAddStrategy
      extended by com.taco.swinger.text2gui.GridBagLayoutComponentAddStrategy
All Implemented Interfaces:
IComponentAddStrategy, IInterpolatingConverter, IInterpolatingStringToObjectConverter, IInterpolatingResourceBundleToObjectConverter

public class GridBagLayoutComponentAddStrategy
extends ComponentAddStrategy

A component add strategy for GridBagLayout.


Field Summary
static GridBagLayoutComponentAddStrategy instance
          The singleton instance of this class.
 
Fields inherited from class com.taco.swinger.text2gui.ComponentAddStrategy
_constraintConverter, DEFAULT_INSTANCE
 
Constructor Summary
protected GridBagLayoutComponentAddStrategy()
           
 
Method Summary
 void addComponent(java.lang.Object container, java.lang.Object component, java.lang.Object constraint)
          Set constraints on the component, then add component to container using add() with no arguments.
 
Methods inherited from class com.taco.swinger.text2gui.ComponentAddStrategy
name, toObject, toObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final GridBagLayoutComponentAddStrategy instance
The singleton instance of this class.

Constructor Detail

GridBagLayoutComponentAddStrategy

protected GridBagLayoutComponentAddStrategy()
Method Detail

addComponent

public void addComponent(java.lang.Object container,
                         java.lang.Object component,
                         java.lang.Object constraint)
Set constraints on the component, then add component to container using add() with no arguments.

Specified by:
addComponent in interface IComponentAddStrategy
Overrides:
addComponent in class ComponentAddStrategy
Parameters:
container - The container to which to add the component. Normally, this will be an instance of Container.
component - The component to add to the container. Normally, this will be an instance of Component.
constraint - The constraint for adding the component to the container. A null value indicates no constraint.