com.taco.swinger.text2gui
Interface IComponentAddStrategy
- All Superinterfaces:
- IInterpolatingConverter, IInterpolatingResourceBundleToObjectConverter, IInterpolatingStringToObjectConverter
- All Known Implementing Classes:
- BorderLayoutComponentAddStrategy, ComponentAddStrategy, GridBagLayoutComponentAddStrategy
public interface IComponentAddStrategy
- extends IInterpolatingConverter
An interface that specifies conversion from a string or resource bundle key
to a constraint, as well as a strategy to add a component to a container,
using a constraint
Method Summary |
void |
addComponent(java.lang.Object container,
java.lang.Object component,
java.lang.Object constraint)
Add component to container , using a
constraint if possible. |
addComponent
void addComponent(java.lang.Object container,
java.lang.Object component,
java.lang.Object constraint)
- Add
component
to container
, using a
constraint if possible.
- 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.
- Throws:
java.lang.NullPointerException
- if container
or
component
are null