|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Inherited @Retention(value=RUNTIME) @Target(value=METHOD) public @interface Input
Annotation for an input in the ApplicationBlock.
Inputs can be used to alter state and/or behaviour of an application block and as result the whole application at runtime.
Values for inputs can be changed via custom input view.
To create an input annotate a setter method with @Input following the rules below:
The name of the input is created from the name of the method: Example:
Name of the setter method: setGripperForce Name of the input: gripperForce.All inputs will be set before
ApplicationBlock.checkPreconditions(IChecker) and
ApplicationBlock.run()
Usage example:
@Input
public void setForce(Integer force)
{
// set input value
}
| Optional Element Summary | |
|---|---|
String |
defaultValue
The defaultValue is initially assigned to this input when creating a new block instance. |
public abstract String defaultValue
The default value needs to be given in its String representation. Values can be converted to String by concatenating it with an empty String.
Example for Double value: @Input(defaultValue = "1.23")
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||