|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.util.ControllerUtil
public class ControllerUtil
Provides some OpenGL GUI equivalents to the static methods in Controller.
| Field Summary | |
|---|---|
static ActionListener |
DISPATCHER
An action listener that uses postAction(com.threerings.opengl.gui.Component, java.lang.String) to forward the event to a controller. |
| Constructor Summary | |
|---|---|
ControllerUtil()
|
|
| Method Summary | |
|---|---|
static void |
postAction(ActionEvent event)
Attempts to find a Controller to handle the specified event by rising up through
the component hierarchy starting at the event's target. |
static void |
postAction(Component source,
String action)
Posts a new ActionEvent with the supplied parameters to the controller hierarchy. |
static void |
postAction(Component source,
String action,
Object argument)
Posts a new ActionEvent with the supplied parameters to the controller hierarchy. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ActionListener DISPATCHER
postAction(com.threerings.opengl.gui.Component, java.lang.String) to forward the event to a controller.
| Constructor Detail |
|---|
public ControllerUtil()
| Method Detail |
|---|
public static void postAction(Component source,
String action)
ActionEvent with the supplied parameters to the controller hierarchy.
public static void postAction(Component source,
String action,
Object argument)
ActionEvent with the supplied parameters to the controller hierarchy.
public static void postAction(ActionEvent event)
Controller to handle the specified event by rising up through
the component hierarchy starting at the event's target. Unlike
Controller.postAction(java.awt.event.ActionEvent), this method handles the event immediately, rather than
posting an action on the AWT thread.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||