libgdx API

com.badlogic.gdx.scenes.scene2d.utils
Class FocusListener

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.utils.FocusListener
All Implemented Interfaces:
EventListener

public abstract class FocusListener
extends java.lang.Object
implements EventListener

Listener for FocusListener.FocusEvent.

Author:
Nathan Sweet

Nested Class Summary
static class FocusListener.FocusEvent
          Fired when an actor gains or loses keyboard or scroll focus.
 
Constructor Summary
FocusListener()
           
 
Method Summary
 boolean handle(Event event)
           
 void keyboardFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)
           
 void scrollFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusListener

public FocusListener()
Method Detail

handle

public boolean handle(Event event)
Specified by:
handle in interface EventListener

keyboardFocusChanged

public void keyboardFocusChanged(FocusListener.FocusEvent event,
                                 Actor actor,
                                 boolean focused)
Parameters:
actor - The event target, which is the actor that emitted the focus event.

scrollFocusChanged

public void scrollFocusChanged(FocusListener.FocusEvent event,
                               Actor actor,
                               boolean focused)
Parameters:
actor - The event target, which is the actor that emitted the focus event.

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)