Package com.groiss.gui
Interface Container
- All Superinterfaces:
Cloneable
,Component
,Serializable
- All Known Implementing Classes:
AbstractContainer
,Button
,DivComponent
,FieldSet
,FormContainer
,Label
,TableContainer
,Tabs
,XHTMLPage
the container is an composite component of a view
see the composite pattern [GoF95] for any details
-
Field Summary
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Method Summary
Methods inherited from interface com.groiss.gui.Component
addClass, clone, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setBrowserMode, setClass, setContent, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toggleClass, toString
-
Method Details
-
add
- Parameters:
c
- - the component- Returns:
- - the replaced component or null
-
remove
- Parameters:
id
- - the id of the component- Returns:
- - the removed component with the given id or null
-
substitute
- Parameters:
id
- - the id of the component which should be substitutedc
- - the new component- Returns:
- - the substituted component or null, if no component with the given id was found
-
get
- Parameters:
id
- - the id of the component- Returns:
- - the component with the given id or null
-
getByName
- Parameters:
name
- the name of the component- Returns:
- the component with the given id or null
-
getAll
Collection<Component> getAll()- Returns:
- - all direct components of the container
-
getAll
- Returns:
- - all direct components of the container with the given name
-
getAllDeep
Collection<Component> getAllDeep()- Returns:
- - all components of the container recursively
-