public class CompositeImpl extends Object implements AccessibleComposite
A straight-forward implementation of the Composite
interface.
This implementation uses member fields to store and expose the data required
by the Composite
interface. It can be used by other implementations
as delegate. This implementation is not thread-safe.
Constructor and Description |
---|
CompositeImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Object comp,
Object constraints)
Adds the specified component to this container using the given
constraints.
|
Collection<Object[]> |
getComponents()
Returns an unmodifiable collection with the components and constraints
that have been added to this object.
|
Object |
getContainer()
Returns the concrete container component that is wrapped by this object.
|
Object |
getLayout()
Returns the layout object passed to this instance.
|
void |
setContainer(Object container)
Sets the container represented by this object.
|
void |
setLayout(Object layout)
Sets the layout object for this container.
|
public void addComponent(Object comp, Object constraints)
getComponents()
method.addComponent
in interface Composite
comp
- the component to addconstraints
- the constraints (may be null )public Object getLayout()
setLayout(Object)
method.getLayout
in interface AccessibleComposite
public void setLayout(Object layout)
public Object getContainer()
setContainer(Object)
method.getContainer
in interface Composite
public void setContainer(Object container)
getContainer()
.container
- the containerpublic Collection<Object[]> getComponents()
addComponent(Object, Object)
calls.getComponents
in interface AccessibleComposite
Copyright © 2016 The JGUIraffe Team. All rights reserved.