Interface Element
- All Known Implementing Classes:
AnimatedButton
,AnimatedMask
,ButtonPaginatedMask
,HybridMask
,ListButton
,ListMask
,MaskPaginatedMask
,MultiButton
,MultiMask
,MultiPositionMask
,OneTimeAnimatedMask
,PaginatedMask
,PlaceholderMask
,PredicateButton
,PredicateMask
,SequencePaginatedMask
,SimpleButtonMask
,SingleMask
public interface Element
An element of the GUI
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
handleIfElement
(Object o, Consumer<Element> elementConsumer) Handle the object if it is an instance ofElement
static <T> void
handleIfElement
(Collection<T> collection, Consumer<Element> elementConsumer) Loop through the collection and handle the element if it is an instance ofElement
default void
init()
Initialize the element.default void
stop()
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.
-