|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The common interface that is implemented by all Bebop containers. The Container interface extends the Component interface. A container is simply a component that contains other components.
| Field Summary | |
static String |
versionId
|
| Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
| Method Summary | |
void |
add(Component pc)
Adds a component to this container. |
void |
add(Component c,
int constraints)
Adds a component with the specified layout constraints to this container. |
boolean |
contains(Object o)
Returns true if this list contains the specified element. |
Component |
get(int index)
Gets the component at the specified position. |
int |
indexOf(Component pc)
|
boolean |
isEmpty()
Returns true if the container contains no components. |
int |
size()
Returns the number of elements in this container. |
| Methods inherited from interface com.arsdigita.bebop.Component |
children, generateXML, getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
| Methods inherited from interface com.arsdigita.util.Lockable |
isLocked, lock |
| Field Detail |
public static final String versionId
| Method Detail |
public void add(Component pc)
pc - component to add to this container
public void add(Component c,
int constraints)
constraints - layout constraints (a
bitwise OR of static ints in the particular layout)public boolean contains(Object o)
true if this list contains the specified element.
More formally, returns true if and only if this list
contains at least
one element e such that (o==null ? e==null : o.equals(e)).
This method returns true only if the object has been
directly added to this container. If this container contains another
container that contains this object, this method returns
false.
o - element whose presence in this container is to be tested
true if this container contains the specified
object directly; false otherwise.public Component get(int index)
index - the index of the item to be retrieved from this
container
public int indexOf(Component pc)
pc - component to search for
public boolean isEmpty()
true if the container contains no components.
true if this container contains no components;
false otherwise.public int size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||