Interface Group

All Superinterfaces:
Data, Element, InteractionSource
All Known Subinterfaces:
Set
All Known Implementing Classes:
Group, Set

public interface Group extends Element, Data

Title: Group

Description: A Group is an element that is made of other elements

Version:
March 2005
Author:
Francisco Esquembre
See Also:
  • Method Details

    • addElement

      void addElement(Element element)
      Adds an Element to this Group.
      Parameters:
      element - Element
      See Also:
    • removeElement

      void removeElement(Element element)
      Removes an Element from this Group
      Parameters:
      element - Element
      See Also:
    • removeAllElements

      void removeAllElements()
      Removes all Elements from this Group
      See Also:
    • getElements

      List<Element> getElements()
      Gets the cloned list of Elements in the group. (Should be synchronized.)
      Returns:
      cloned list
    • getElement

      Element getElement(int index)
      Gets the elements of the group at a given index.
      Returns:
      the given element (null if the index is not within allowed bounds)