Example usage for com.badlogic.gdx.scenes.scene2d Actor notify

List of usage examples for com.badlogic.gdx.scenes.scene2d Actor notify

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Actor notify.

Prototype

public boolean notify(Event event, boolean capture) 

Source Link

Document

Notifies this actor's listeners of the event.

Usage

From source file:net.dermetfan.gdx.scenes.scene2d.ui.ScrollPaneSnapAction.java

License:Apache License

/** @param root the Actor from which to start searching downward recursively */
private void findSlots(Actor root) {
    searchEvent.setTarget(pane.getWidget());
    root.notify(searchEvent, false);
    if (root instanceof Group)
        for (Actor child : ((Group) root).getChildren())
            findSlots(child);//  w  ww.j a v a2 s  .  c o m
}