|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.swinger.text2gui.ComponentAddStrategy
com.taco.swinger.text2gui.GridBagLayoutComponentAddStrategy
public class GridBagLayoutComponentAddStrategy
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 |
---|
public static final GridBagLayoutComponentAddStrategy instance
Constructor Detail |
---|
protected GridBagLayoutComponentAddStrategy()
Method Detail |
---|
public void addComponent(java.lang.Object container, java.lang.Object component, java.lang.Object constraint)
add()
with no arguments.
addComponent
in interface IComponentAddStrategy
addComponent
in class ComponentAddStrategy
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |