public interface BindingParameter<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
BindingParameter.BrowseHelper
Contains the functions needed for a binding parameter's editor to display a popup-tree so that the user can
browse for the possible values for this parameter
|
Modifier and Type | Method and Description |
---|---|
T |
coerce(java.lang.String rawValue)
Provides a chance for the parameter to use custom coersion logic, allowing for default values.
|
BindingParameter.BrowseHelper |
getBrowseHelper()
If non-null, the editor will display a popup tree to browse for values.
|
T |
getDefaultValue() |
java.util.List<StringPair> |
getOptionMap()
If non-null, the editor will become a combo box, providing a list of possible options for this parameter.
|
java.lang.String |
getParameterName()
The name of this parameter.
|
java.lang.Class<T> |
getParameterType()
The data type of the parameter.
|
java.lang.String |
getTitleKey()
A resource bundle key to use as the param's title for display purposes.
|
java.lang.String |
getTooltipKey()
A resource bundle key to use for the GUI control's tooltip
|
boolean |
isBindingAllowed()
If true, the user will be allowed to bind this parameter's runtime value to tags and/or properties
|
java.lang.String getParameterName()
java.lang.Class<T> getParameterType()
coerce(String)
function.T coerce(java.lang.String rawValue) throws java.lang.ClassCastException
java.lang.ClassCastException
- If this is thrown, the binding will not be executed, instead the property will recieve
a poor data quality.java.lang.String getTitleKey()
java.lang.String getTooltipKey()
T getDefaultValue()
java.util.List<StringPair> getOptionMap()
If non-null, the editor will become a combo box, providing a list of possible options for this parameter.
The "names" of the string pairs the literal values of the options, the "Values" are what gets displayed in the combo box.
BindingParameter.BrowseHelper getBrowseHelper()
boolean isBindingAllowed()