IntegerControl
instead
This class has been deprecated. Use IntegerControl
instead
This class encapsulates the functionality of DynamicControl
classes of type ControlType.INT
in a simple API
IntegerControlSender
and other IntegerControl
objects is that @link IntegerControlSender} does not have a handler, however, you can still retrieve the current value using the IntegerControl.getValue()
IntegerControl
objects with the same name and ControlScope
will respond to a message send. For example:
IntegerControlSender
and IntegerTextControl
display the approximate value of the control in the HappyBrackets IDE.
Within the IDE, the value of the value of the control can be changed by typing a new value in and pressing the ENTER or RETURN key.
IntegerControlSender
is identical to the IntegerTextControl
except that IntegerControlSender
does not have a IntegerControl.valueChanged(int)
) handler
IntegerControl
for general information about IntegerControl
classes and how to set the value within your codepublic abstract class IntegerTextControl extends IntegerControl
Constructor and Description |
---|
IntegerTextControl(java.lang.Object parent_sketch,
java.lang.String name,
int initial_value)
Deprecated.
use
IntegerControl instead |
Modifier and Type | Method and Description |
---|---|
IntegerTextControl |
setControlScope(ControlScope new_scope)
Deprecated.
Changed the scope that the control has.
|
IntegerTextControl |
setDisplayType(DynamicControl.DISPLAY_TYPE display_type)
Deprecated.
Change how to display object
We must do this in subclass
|
getValue, setDisplayRange, setValue, setValue, valueChanged
addControlListener, addControlScopeListener, addControlTarget, addControlTarget, clearControlTargets, getDynamicControl, getSendingDevice, removeControlListener, removeControlScopeChangedListener, removeControlTarget, removeControlTarget, removeListeners, setControlTarget, setControlTarget
public IntegerTextControl(java.lang.Object parent_sketch, java.lang.String name, int initial_value)
IntegerControl
insteadparent_sketch
- The parent object for controlname
- The name to Displayinitial_value
- Initial value of the objectpublic IntegerTextControl setControlScope(ControlScope new_scope)
setControlScope
in class IntegerControl
new_scope
- The new Control Scopepublic IntegerTextControl setDisplayType(DynamicControl.DISPLAY_TYPE display_type)
setDisplayType
in class IntegerControl
display_type
- The new Control Scope