com.badlogic.gdx.scenes.scene2d.utils
Class FocusListener.FocusEvent
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Event
com.badlogic.gdx.scenes.scene2d.utils.FocusListener.FocusEvent
- All Implemented Interfaces:
- Pool.Poolable
- Enclosing class:
- FocusListener
public static class FocusListener.FocusEvent
- extends Event
Fired when an actor gains or loses keyboard or scroll focus. Can be cancelled to prevent losing or gaining focus.
- Author:
- Nathan Sweet
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Event |
cancel, getBubbles, getListenerActor, getStage, getTarget, handle, isCancelled, isCapture, isHandled, isStopped, setBubbles, setCapture, setListenerActor, setStage, setTarget, stop |
FocusListener.FocusEvent
public FocusListener.FocusEvent()
reset
public void reset()
- Description copied from interface:
Pool.Poolable
- Resets the object for reuse. Object references should be nulled and fields may be set to default values.
- Specified by:
reset
in interface Pool.Poolable
- Overrides:
reset
in class Event
isFocused
public boolean isFocused()
setFocused
public void setFocused(boolean focused)
getType
public FocusListener.FocusEvent.Type getType()
setType
public void setType(FocusListener.FocusEvent.Type focusType)
getRelatedActor
public Actor getRelatedActor()
- The actor related to the event. When focus is lost, this is the new actor being focused, or null. When focus is gained,
this is the previous actor that was focused, or null.
setRelatedActor
public void setRelatedActor(Actor relatedActor)
- Parameters:
relatedActor
- May be null.
Copyright © 2013. All Rights Reserved.