Interface Container

All Superinterfaces:
Cloneable, Component, Serializable
All Known Implementing Classes:
AbstractContainer, Button, DivComponent, FieldSet, FormContainer, Label, 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
  • Method Details

    • add

      Parameters:
      c - - the component
      Returns:
      - the replaced component or null
    • remove

      Component remove(String id)
      Parameters:
      id - - the id of the component
      Returns:
      - the removed component with the given id or null
    • substitute

      Component substitute(String id, Component c)
      Parameters:
      id - - the id of the component which should be substituted
      c - - the new component
      Returns:
      - the substituted component or null, if no component with the given id was found
    • get

      <T extends Component> T get(String id)
      Parameters:
      id - - the id of the component
      Returns:
      - the component with the given id or null
    • getByName

      <T extends Component> T getByName(String name)
      Parameters:
      name - the name of the component
      Returns:
      the component with the given id or null
    • getAll

      Returns:
      - all direct components of the container
    • getAll

      Collection<Component> getAll(String name)
      Returns:
      - all direct components of the container with the given name
    • getAllDeep

      Collection<Component> getAllDeep()
      Returns:
      - all components of the container recursively