Interface Element
- All Known Implementing Classes:
AnimatedButton,AnimatedMask,ButtonPaginatedMask,HybridMask,InputButton,ListButton,ListMask,MaskPaginatedMask,MultiButton,MultiMask,MultiPositionMask,OneTimeAnimatedMask,OutputButton,PaginatedMask,PlaceholderMask,PredicateButton,PredicateMask,SequencePaginatedMask,SimpleButtonMask,SingleMask
public interface Element
An element of the GUI
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleIfElement(Object o, Consumer<Element> elementConsumer) Handle the object if it is an instance ofElementstatic <T> voidhandleIfElement(Collection<T> collection, Consumer<Element> elementConsumer) Loop through the collection and handle the element if it is an instance ofElementdefault voidinit()Initialize the element.default voidstop()Stop the element.
-
Method Details
-
handleIfElement
Handle the object if it is an instance ofElement- Parameters:
o- the objectelementConsumer- the consumer
-
handleIfElement
Loop through the collection and handle the element if it is an instance ofElement- Parameters:
collection- the collectionelementConsumer- the consumer
-
init
default void init()Initialize the element. Should be called before adding to the GUI. -
stop
default void stop()Stop the element. Should be called after removing from the GUI.
-