|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.swinger.text2gui.LayoutAndComponentAddStrategy
public class LayoutAndComponentAddStrategy
The default implementation of ILayoutAndComponentAddStrategy
that simply passes the constraint string to Container.add()
.
Field Summary | |
---|---|
protected java.awt.LayoutManager |
_layout
The layout manager associated with this instance. |
Constructor Summary | |
---|---|
LayoutAndComponentAddStrategy(java.awt.LayoutManager layout)
Construct a new instance that returns the argument layout when layoutManager() is called. |
Method Summary | |
---|---|
void |
addComponent(java.awt.Container container,
java.awt.Component component,
java.lang.String constraintString)
Add component to container using Container.add() , passing
the argument string as the constraints parameter if non-null. |
java.awt.LayoutManager |
layoutManager()
Return the layout manager passed to the constructor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.awt.LayoutManager _layout
Constructor Detail |
---|
public LayoutAndComponentAddStrategy(java.awt.LayoutManager layout)
layoutManager()
is called.
Method Detail |
---|
public java.awt.LayoutManager layoutManager()
layoutManager
in interface ILayoutAndComponentAddStrategy
public void addComponent(java.awt.Container container, java.awt.Component component, java.lang.String constraintString)
Container.add()
, passing
the argument string as the constraints parameter if non-null.
addComponent
in interface ILayoutAndComponentAddStrategy
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |