Modifier and Type | Optional Element and Description |
---|---|
Attr[] |
attrs
A list of additional attributes which can be used to extend this annotation
beyond its built-in capabilities.
|
boolean |
autoFill
Defines whether the parameter value should be filled programmatically, if
possible.
|
String |
callback
Defines a function that is called whenever this parameter changes.
|
String[] |
choices
Defines the list of possible values (multiple choice text fields only).
|
int |
columns
Deprecated.
Replaced by
style() . |
String |
description
Defines a description for the parameter.
|
String |
initializer
Defines a function that is called to initialize the parameter.
|
String |
label
Defines a label for the parameter.
|
String |
max
Defines the maximum allowed value (numeric parameters only).
|
String |
min
Defines the minimum allowed value (numeric parameters only).
|
boolean |
persist
Defines whether to remember the most recent value of the parameter.
|
String |
persistKey
Defines a key to use for saving the value persistently.
|
boolean |
required
Defines whether the parameter value must be non-null.
|
String |
stepSize
Defines the step size to use (numeric parameters only).
|
String |
style
Defines the preferred widget style.
|
ItemIO |
type
Defines the input/output type of the parameter.
|
String |
validater
Defines a function that is called to validate the parameter value after it
is marked as resolved.
|
ItemVisibility |
visibility
Defines the "visibility" of the parameter.
|
public abstract String label
public abstract String description
public abstract ItemIO type
Choices are:
public abstract ItemVisibility visibility
Choices are:
public abstract boolean autoFill
public abstract boolean required
public abstract boolean persist
public abstract String persistKey
public abstract String initializer
public abstract String validater
Module.resolveInput(String)
public abstract String callback
This mechanism enables interdependent parameters of various types. For
example, two int
parameters "width" and "height" could update each
other when another boolean
"Preserve aspect ratio" flag is set.
public abstract String style
We do not use an enum
because the styles need to be extensible. And
we cannot use an interface-driven extensible enum pattern, because
interfaces cannot be used as attributes within a Java annotation interface.
So we fall back to strings!
public abstract String min
public abstract String max
public abstract String stepSize
public abstract String[] choices
public abstract Attr[] attrs
@Deprecated public abstract int columns
style()
.Copyright © 2015–2022 SciJava. All rights reserved.