|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.ControlBroadcaster
public class ControlBroadcaster
The ControlBroadcaster handles all controller value changes and distributes them accordingly to its listeners. The ControlBroadcaster is primarily for internal use only but can be accessed through an instance of the ControlP5 class. Instead of accessing the ControlBroadcaster directly, use the convenience methods available from the ControlP5 class.
ControlP5.getControlBroadcaster()
Method Summary | |
---|---|
ControlBroadcaster |
addCallback(CallbackListener theListener)
|
ControlBroadcaster |
addCallback(CallbackListener[] theListeners)
|
void |
addCallback(CallbackListener theListener,
Controller[] theController)
Adds a CallbackListener for a list of controllers. |
ControlBroadcaster |
addListener(ControlListener[] theListeners)
|
ControlBroadcaster |
broadcast(ControlEvent theControlEvent,
int theType)
|
ControlListener |
getListener(int theIndex)
Returns a ControlListener by index |
static void |
ignoreErrorMessage(boolean theFlag)
|
int |
listenerSize()
Returns the size of the ControlListener list |
ControlBroadcaster |
plug(java.lang.Object theObject,
Controller theController,
java.lang.String theTargetMethod)
|
ControlBroadcaster |
plug(java.lang.Object theObject,
java.lang.String theControllerName,
java.lang.String theTargetMethod)
|
ControlBroadcaster |
removeCallback(CallbackListener theListener)
|
ControlBroadcaster |
removeCallback(CallbackListener[] theListeners)
|
ControlBroadcaster |
removeCallback(Controller[] theControllers)
Removes a CallbackListener for a particular controller |
ControlBroadcaster |
removeListener(ControlListener[] theListeners)
|
static void |
setPrintStackTrace(boolean theFlag)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ControlBroadcaster addCallback(CallbackListener theListener)
public ControlBroadcaster addCallback(CallbackListener[] theListeners)
public void addCallback(CallbackListener theListener, Controller[] theController)
theListener
- theController
- public ControlBroadcaster addListener(ControlListener[] theListeners)
public ControlBroadcaster broadcast(ControlEvent theControlEvent, int theType)
public ControlListener getListener(int theIndex)
theIndex
-
public static void ignoreErrorMessage(boolean theFlag)
public int listenerSize()
public ControlBroadcaster plug(java.lang.Object theObject, Controller theController, java.lang.String theTargetMethod)
public ControlBroadcaster plug(java.lang.Object theObject, java.lang.String theControllerName, java.lang.String theTargetMethod)
public ControlBroadcaster removeCallback(CallbackListener theListener)
public ControlBroadcaster removeCallback(CallbackListener[] theListeners)
public ControlBroadcaster removeCallback(Controller[] theControllers)
theController
- public ControlBroadcaster removeListener(ControlListener[] theListeners)
public static void setPrintStackTrace(boolean theFlag)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |