Class Popup.VisibilityBehavior
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
net.dermetfan.gdx.scenes.scene2d.ui.Popup.VisibilityBehavior
- All Implemented Interfaces:
Popup.Behavior
public static class Popup.VisibilityBehavior extends Popup.Behavior.Adapter
shows and hides the popup by settings its visibility
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior
Popup.Behavior.Adapter
-
Constructor Summary
Constructors Constructor Description VisibilityBehavior()
-
Method Summary
Methods inherited from class net.dermetfan.gdx.scenes.scene2d.ui.Popup.Behavior.Adapter
handle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
VisibilityBehavior
public VisibilityBehavior()
-
-
Method Details
-
show
callssetVisible(true)
andtoFront()
on thePopup.popup
- Specified by:
show
in interfacePopup.Behavior
- Overrides:
show
in classPopup.Behavior.Adapter
- Parameters:
event
- the Event to handlepopup
- the Popup this Behavior is attached to- Returns:
true
-
hide
callssetVisible(false)
on thePopup.popup
- Specified by:
hide
in interfacePopup.Behavior
- Overrides:
hide
in classPopup.Behavior.Adapter
- Parameters:
event
- the Event to handlepopup
- the Popup this Behavior is attached to- Returns:
false
-