|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IComponents
An interface describing the functionalities of manageable components.
| Method Summary | ||
|---|---|---|
void |
addComponent(IComponent component)
Add a component. |
|
void |
addComponent(int index,
IComponent component)
Add a component on the specified index. |
|
|
getComponent(Class<T> componentClass)
Get the first component that matches the given class. |
|
IComponent |
getComponent(int index)
Get the component at the specified index. |
|
|
getComponents(Class<T> componentClass)
Get an array of components that match the given class. |
|
|
indexOf(T value)
Get the index of the specified component. |
|
void |
removeComponent(int index)
Remove the component at the specified index. |
|
|
removeComponent(T component)
Remove the specified component. |
|
|
removeComponents(Class<T> componentClass)
Remove the components that match the specified class. |
|
| Method Detail |
|---|
<T extends IComponent> int indexOf(T value)
-1 when the component has not available.
value - The component from whom to get the index.
void removeComponent(int index)
index - The index of the component that has to be removed.IComponent getComponent(int index)
index - The index of the component.
void addComponent(IComponent component)
component - The component that has to be added.
void addComponent(int index,
IComponent component)
index - The index at which the add the component.component - The component whom has to be added.<T extends IComponent> void removeComponent(T component)
component - The component to remove.<T extends IComponent> void removeComponents(Class<T> componentClass)
componentClass - The class of the objects to remove.<T extends IComponent> T getComponent(Class<T> componentClass)
null when there is no component of the given class.
componentClass - The class of the component.
<T extends IComponent> T[] getComponents(Class<T> componentClass)
null when there are no components matching the given class.
componentClass - The common class of the objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||