Package jisa.gui
Interface Container
-
- All Known Implementing Classes:
ConnectorGrid,Grid,MeasurementConfigurator,Pages,SwapGrid,Tabs
public interface ContainerRepresents objects that can "contain" GUI elements. These are almost always GUI elements themselves such as Grid.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidadd(Element element)Add an element to this container.default voidaddAll(java.util.Collection<? extends Element> elements)Add all the specified elements to this container.default voidaddAll(Element... elements)Add multiple elements to this container.voidclear()Removes all elements from this container.java.util.List<Element>getElements()Returns a list of all elements currently inside this container.voidremove(Element element)Removes the specified elements from this container.default voidremoveAll(java.util.Collection<? extends Element> elements)Removes all the specified elements from this container.default voidremoveAll(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.
-
-