@EditableString
- Description
Mark String variables with this annotation to add a text control to the Tinker panel. Note that this annotation behaves exactly as does @Editable, but @EditableString provides restriction parameters that are useful when dealing with text.
As the Processing grammar does not yet recognize Annotations, this feature is only available to programmers using a separate IDE such as Eclipse.
- Syntax
@EditableString public String message; @EditableString(minChars=2) public String atLeastTwoLong; @EditableString(options={"jpg","png","bmp"}) public String imageExtension;- Parameters
- minLength
- int: the shortest possible length of the string in chars
- maxLength
- int: the longest possible length of the string in chars
- options
- String[]: a list of possible values
- Returns
- None
- Usage
- Web & Applications
- Related
No Comments
You must be logged in to post a comment.