IntegerControl instead with DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY
This class encapsulates the functionality of DynamicControl classes of type ControlType.INT in a simple API
IntegerBuddyControl is a hybrid between the IntegerSliderControl and the IntegerTextControl in that the value can be changed in the HappyBrackets IDE with both text and a slider
IntegerBuddyControl(Object, String, int, int, int)
IntegerControl objects
IntegerControl objects with the same name and ControlScope will respond to a value change.
IntegerControl for general information about IntegerControl classes and how to set the value within your codepublic abstract class IntegerBuddyControl extends IntegerControl
| Constructor and Description |
|---|
IntegerBuddyControl(java.lang.Object parent_sketch,
java.lang.String name,
int initial_value,
int min_val,
int max_val)
Deprecated.
use
IntegerControl instead with DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY |
| Modifier and Type | Method and Description |
|---|---|
IntegerBuddyControl |
setControlScope(ControlScope new_scope)
Deprecated.
Changed the scope that the control has.
|
IntegerBuddyControl |
setDisabled(DynamicControl.DISPLAY_TYPE display_type)
Deprecated.
Change how to display object
We must do this in subclass
|
getValue, setDisplayRange, setDisplayType, setValue, setValue, valueChangedaddControlListener, addControlScopeListener, addControlTarget, addControlTarget, clearControlTargets, getDynamicControl, getSendingDevice, removeControlListener, removeControlScopeChangedListener, removeControlTarget, removeControlTarget, removeListeners, setControlTarget, setControlTargetpublic IntegerBuddyControl(java.lang.Object parent_sketch,
java.lang.String name,
int initial_value,
int min_val,
int max_val)
IntegerControl instead with DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDYparent_sketch - The parent object for controlname - The name to Displayinitial_value - Initial value of the objectmin_val - Minimum value to display on Slidermax_val - Maximum value to display on Sliderpublic IntegerBuddyControl setControlScope(ControlScope new_scope)
setControlScope in class IntegerControlnew_scope - The new Control Scopepublic IntegerBuddyControl setDisabled(DynamicControl.DISPLAY_TYPE display_type)
display_type - The new Control Scope