Class 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.
    • Constructor Detail

      • FocusEvent

        public FocusEvent()
    • Method Detail

      • 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)
      • getRelatedActor

        @Null
        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​(@Null
                                    Actor relatedActor)
        Parameters:
        relatedActor - May be null.