com.threerings.opengl.gui
Interface UserInterface.Controller

Enclosing class:
UserInterface

public static interface UserInterface.Controller

An interface that can be implemented by a controller class, specified by name in the UserInterfaceConfig, to automatically wire-up functionality to a UI.


Method Summary
 boolean init(GlContext ctx, UserInterface ui)
          Initialize the controller and return true on success.
 void wasAdded()
          Called when the user interface is added to the hierarchy.
 void wasRemoved()
          Called when the user interface is removed from the hierarchy.
 

Method Detail

init

boolean init(GlContext ctx,
             UserInterface ui)
Initialize the controller and return true on success. Return false if the controller cannot be used due to being in the editor, or whatever.


wasAdded

void wasAdded()
Called when the user interface is added to the hierarchy.


wasRemoved

void wasRemoved()
Called when the user interface is removed from the hierarchy. Clean up.