Class Popup.BehaviorMultiplexer
java.lang.Object
net.dermetfan.gdx.Multiplexer<Popup.Behavior>
net.dermetfan.gdx.scenes.scene2d.ui.Popup.BehaviorMultiplexer
- All Implemented Interfaces:
Popup.Behavior
public static class Popup.BehaviorMultiplexer
extends Multiplexer<Popup.Behavior>
implements Popup.Behavior
a Multiplexer for Behaviors
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior
Popup.Behavior.Adapter -
Field Summary
Fields inherited from class net.dermetfan.gdx.Multiplexer
receivers -
Constructor Summary
ConstructorsConstructorDescriptionBehaviorMultiplexer(int size) BehaviorMultiplexer(com.badlogic.gdx.utils.Array<Popup.Behavior> receivers) BehaviorMultiplexer(Popup.Behavior... receivers) -
Method Summary
Modifier and TypeMethodDescriptionCallsPopup.Behavior.handle(Event, Popup)on all Behaviors in order and returns the first returned non-null Reaction if ithandlesthe event.booleanbooleanMethods inherited from class net.dermetfan.gdx.Multiplexer
add, clear, getReceivers, remove, setReceivers, setReceivers, size
-
Constructor Details
-
BehaviorMultiplexer
public BehaviorMultiplexer() -
BehaviorMultiplexer
public BehaviorMultiplexer(int size) -
BehaviorMultiplexer
-
BehaviorMultiplexer
-
-
Method Details
-
show
- Specified by:
showin interfacePopup.Behavior- Parameters:
event- the Event to handlepopup- the Popup this Behavior is attached to- Returns:
- whether any of the Behaviors handled the event
-
hide
- Specified by:
hidein interfacePopup.Behavior- Parameters:
event- the Event to handlepopup- the Popup this Behavior is attached to- Returns:
- whether any of the Behaviors handled the event
-
handle
CallsPopup.Behavior.handle(Event, Popup)on all Behaviors in order and returns the first returned non-null Reaction if ithandlesthe event. If it does not handle the event but another Reaction does, the handling version of the Reaction is returned:handling and non-handling Reaction pairs non-handling handling Show ShowHandle Hide HideHandle None Handle - Specified by:
handlein interfacePopup.Behavior- Parameters:
event- the Event to handlepopup- the Popup this Behavior is attached to- Returns:
- the first Reaction or its
handlingversion if any Behavior handles the event, or null
-