Class EmptyParameter
- java.lang.Object
-
- com.inductiveautomation.vision.api.client.binding.EmptyParameter
-
- All Implemented Interfaces:
BindingParameter<java.lang.String>
public final class EmptyParameter extends java.lang.Object implements BindingParameter<java.lang.String>
Special implementation of BindingParameter that essentially inserts a blank spot in the GUI. Used to make the 2-column layout look nicer in certain situations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.inductiveautomation.vision.api.client.binding.BindingParameter
BindingParameter.BrowseHelper
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description EmptyParameter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcoerce(java.lang.String rawValue)Provides a chance for the parameter to use custom coersion logic, allowing for default values.static EmptyParameterget()BindingParameter.BrowseHelpergetBrowseHelper()If non-null, the editor will display a popup tree to browse for values.java.lang.StringgetDefaultValue()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.StringgetParameterName()The name of this parameter.java.lang.Class<java.lang.String>getParameterType()The data type of the parameter.java.lang.StringgetTitleKey()A resource bundle key to use as the param's title for display purposes.java.lang.StringgetTooltipKey()A resource bundle key to use for the GUI control's tooltipbooleanisBindingAllowed()If true, the user will be allowed to bind this parameter's runtime value to tags and/or properties
-
-
-
Method Detail
-
get
public static EmptyParameter get()
-
coerce
public java.lang.String coerce(java.lang.String rawValue) throws java.lang.ClassCastExceptionDescription copied from interface:BindingParameterProvides a chance for the parameter to use custom coersion logic, allowing for default values.- Specified by:
coercein interfaceBindingParameter<java.lang.String>- Throws:
java.lang.ClassCastException- If this is thrown, the binding will not be executed, instead the property will receive a poor data quality.
-
getBrowseHelper
public BindingParameter.BrowseHelper getBrowseHelper()
Description copied from interface:BindingParameterIf non-null, the editor will display a popup tree to browse for values. This takes precedence over the option map feature.- Specified by:
getBrowseHelperin interfaceBindingParameter<java.lang.String>
-
getDefaultValue
public java.lang.String getDefaultValue()
- Specified by:
getDefaultValuein interfaceBindingParameter<java.lang.String>
-
getOptionMap
public java.util.List<StringPair> getOptionMap()
Description copied from interface:BindingParameterIf 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.
- Specified by:
getOptionMapin interfaceBindingParameter<java.lang.String>
-
getParameterName
public java.lang.String getParameterName()
Description copied from interface:BindingParameterThe 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.- Specified by:
getParameterNamein interfaceBindingParameter<java.lang.String>
-
getParameterType
public java.lang.Class<java.lang.String> getParameterType()
Description copied from interface:BindingParameterThe 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 theBindingParameter.coerce(String)function.- Specified by:
getParameterTypein interfaceBindingParameter<java.lang.String>
-
getTitleKey
public java.lang.String getTitleKey()
Description copied from interface:BindingParameterA resource bundle key to use as the param's title for display purposes.- Specified by:
getTitleKeyin interfaceBindingParameter<java.lang.String>
-
getTooltipKey
public java.lang.String getTooltipKey()
Description copied from interface:BindingParameterA resource bundle key to use for the GUI control's tooltip- Specified by:
getTooltipKeyin interfaceBindingParameter<java.lang.String>
-
isBindingAllowed
public boolean isBindingAllowed()
Description copied from interface:BindingParameterIf true, the user will be allowed to bind this parameter's runtime value to tags and/or properties- Specified by:
isBindingAllowedin interfaceBindingParameter<java.lang.String>
-
-