public class ControlBroadcaster
extends java.lang.Object
ControlP5.getControlBroadcaster()
Modifier and Type | Method and Description |
---|---|
ControlBroadcaster |
addCallback(CallbackListener... theListeners) |
ControlBroadcaster |
addCallback(CallbackListener theListener) |
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) |
void |
plug(java.lang.String theControllerName,
java.lang.String theTargetMethod)
Deprecated.
|
ControlBroadcaster |
removeCallback(CallbackListener... theListeners) |
ControlBroadcaster |
removeCallback(CallbackListener theListener) |
ControlBroadcaster |
removeCallback(Controller<?>... theControllers)
Removes a CallbackListener for a particular controller
|
ControlBroadcaster |
removeListener(ControlListener... theListeners) |
static void |
setPrintStackTrace(boolean theFlag) |
public ControlBroadcaster addCallback(CallbackListener... theListeners)
public ControlBroadcaster addCallback(CallbackListener theListener)
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)
@Deprecated public void plug(java.lang.String theControllerName, java.lang.String theTargetMethod)
public ControlBroadcaster removeCallback(CallbackListener... theListeners)
public ControlBroadcaster removeCallback(CallbackListener theListener)
public ControlBroadcaster removeCallback(Controller<?>... theControllers)
theController
- public ControlBroadcaster removeListener(ControlListener... theListeners)
public static void setPrintStackTrace(boolean theFlag)
processing library controlP5 by Andreas Schlegel. (c) 2006-2015