com.groiss.gui
Interface Container
- All Superinterfaces:
- java.lang.Cloneable, Component, java.io.Serializable
- All Known Implementing Classes:
- AbstractContainer, Button, DivComponent, FieldSet, FormContainer, Label, TabbedDialog, TableContainer, Tabs, XHTMLPage
public interface Container
- extends Component
the container is an composite component of a view
see the composite pattern [GoF95] for any details
Methods inherited from interface com.groiss.gui.Component |
clone, getActionListener, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getStyle, getViewMode, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setContent, setId, setLabel, setName, setParent, setParentElement, setStyle, setViewMode, show, show, toString |
add
Component add(Component c)
- Parameters:
c
- - the component
- Returns:
- - the replaced component or null
remove
Component remove(java.lang.String id)
- Parameters:
id
- - the id of the component
- Returns:
- - the removed component with the given id or null
substitute
Component substitute(java.lang.String id,
Component c)
- 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
<T extends Component> T get(java.lang.String id)
- Parameters:
id
- - the id of the component
- Returns:
- - the component with the given id or null
getByName
<T extends Component> T getByName(java.lang.String name)
- Parameters:
name
- the name of the component
- Returns:
- the component with the given id or null
getAll
java.util.Collection getAll()
- Returns:
- - all direct components of the container
getAll
java.util.Collection getAll(java.lang.String name)
- Returns:
- - all direct components of the container with the given name
getAllDeep
java.util.Collection getAllDeep()
- Returns:
- - all components of the container recursively
@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.