Interface BindingParameter<T>
- All Known Implementing Classes:
DefaultBindingParameter
,EmptyParameter
public interface BindingParameter<T>
Describes a single parameter that will be used in an extensible BindingType
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
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 -
Method Summary
Modifier and TypeMethodDescriptionProvides a chance for the parameter to use custom coersion logic, allowing for default values.If non-null, the editor will display a popup tree to browse for values.If non-null, the editor will become a combo box, providing a list of possible options for this parameter.The name of this parameter.The data type of the parameter.A resource bundle key to use as the param's title for display purposes.A resource bundle key to use for the GUI control's tooltipboolean
If true, the user will be allowed to bind this parameter's runtime value to tags and/or properties
-
Method Details
-
getParameterName
String getParameterName()The name of this parameter. This is the string that will be used to identify this parameter's value when executing the binding. Must be unique amongst the list of binding parameters for a given binding type. -
getParameterType
The data type of the parameter. All parameters are treated as Strings during the design phase, but will be coerced to this type right before execution. Coersion is handled by thecoerce(String)
function. -
coerce
Provides a chance for the parameter to use custom coersion logic, allowing for default values.- Throws:
ClassCastException
- If this is thrown, the binding will not be executed, instead the property will receive a poor data quality.
-
getTitleKey
String getTitleKey()A resource bundle key to use as the param's title for display purposes. -
getTooltipKey
String getTooltipKey()A resource bundle key to use for the GUI control's tooltip -
getDefaultValue
T getDefaultValue() -
getOptionMap
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.
-
getBrowseHelper
BindingParameter.BrowseHelper getBrowseHelper()If non-null, the editor will display a popup tree to browse for values. This takes precedence over the option map feature. -
isBindingAllowed
boolean isBindingAllowed()If true, the user will be allowed to bind this parameter's runtime value to tags and/or properties
-