Package jisa.gui

Interface Container

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void add​(Element element)
      Add an element to this container.
      default void addAll​(java.util.Collection<? extends Element> elements)
      Add all the specified elements to this container.
      default void addAll​(Element... elements)
      Add multiple elements to this container.
      void clear()
      Removes all elements from this container.
      java.util.List<Element> getElements()
      Returns a list of all elements currently inside this container.
      void remove​(Element element)
      Removes the specified elements from this container.
      default void removeAll​(java.util.Collection<? extends Element> elements)
      Removes all the specified elements from this container.
      default void removeAll​(Element... elements)
      Removes all the specified elements from this container.
    • Method Detail

      • add

        void add​(Element element)
        Add an element to this container.
        Parameters:
        element - Element to add.
      • addAll

        default void addAll​(Element... elements)
        Add multiple elements to this container.
        Parameters:
        elements - Elements to add.
      • addAll

        default void addAll​(java.util.Collection<? extends Element> elements)
        Add all the specified elements to this container.
        Parameters:
        elements - Elements to add.
      • remove

        void remove​(Element element)
        Removes the specified elements from this container.
        Parameters:
        element - Elements to remove
      • removeAll

        default void removeAll​(Element... elements)
        Removes all the specified elements from this container.
        Parameters:
        elements - Elements to remove
      • removeAll

        default void removeAll​(java.util.Collection<? extends Element> elements)
        Removes all the specified elements from this container.
        Parameters:
        elements - Elements to remove
      • clear

        void clear()
        Removes all elements from this container.
      • getElements

        java.util.List<Element> getElements()
        Returns a list of all elements currently inside this container.
        Returns:
        List of elements.