public interface Parameter
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
addPossibleValue(java.lang.Integer value,
java.lang.String description) |
void |
addPossibleValue(java.lang.String value,
java.lang.String description) |
boolean |
getAllowEnableDisableCallback()
Returns true/false for allowing enable/disable
callback on success/failure of a rule
|
java.util.Set<CssRule> |
getCssRules()
Get CSS Rules for this parameter
|
java.lang.Object |
getDefaultValue()
Get the defaultValue
|
java.lang.String |
getDescription()
Description of the parameter
|
java.util.List<ParameterDisplayRule> |
getDisplayRules()
When to display/hide this parameter
|
java.lang.String |
getDynamicKey()
Used if there is a value that can determine whether or not to load parameters, when a list with this key is returned
all of the parameters in a section with a matching key will be removed and replaced with the list passed from the server.
|
java.lang.String |
getEvent()
Dynamic event that will be triggered by this parameter when it's state changes, this works in a similar fashion to valueDependencies except in reverse.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEventData()
Any other data you want to be triggered with an event, this will be being used by the associated valueLoader after the
event has been triggered
|
java.util.List<ValueDependent> |
getEventParameters()
A list of parameter values that should be added when this Parameters event is triggered, uses ValueDependent so that we can locate values that are in
differing sections.
|
java.lang.String |
getHelpText()
If any help text is needed, define it here.
|
InputType |
getInputType()
Used for most basic input types, a user interface will be created relating to the input type
|
ListOptions |
getListOptions()
Options that will be used if this parameter is a list.
|
int |
getMaxAllowed()
max value
|
int |
getMinAllowed()
min value
|
java.lang.String |
getName()
Name of the parameter
|
java.util.Map<java.lang.String,ParameterValidation> |
getObjectValidationRules()
A set of a validation rules for objects of a parameter
|
java.lang.String |
getParameterClassName() |
java.util.Map<java.lang.String,ParameterValueDisplay> |
getParameterValueDisplays() |
java.util.List<com.hof.mi.models.report.CustomValue<?>> |
getPossibleValues()
Possible values that could be in the list, should be used for radio lists/checkbox lists and selects
|
java.lang.String |
getProperty()
Property to save the value too.
|
java.lang.String |
getSpecialInputType()
Used when a very specific input type is required that won't be very reusable for other things
|
ParameterValidation |
getValidationRules()
A set of validation rules for a parameter
|
java.util.List<ValueDependent> |
getValueDependencies()
Used if the Parameter we are setting up is dependent on something else
For Example If option 1 is select a datasource and option 2 is select a view
the views will be dependent on the datasource.
|
java.util.Map<java.lang.String,java.lang.Object> |
getViewOptions()
Options for views.
|
boolean |
isList()
Will this parameter generate a list of the defined parameter type
E.g Do you want a list of textboxes that can be added to forever
|
boolean |
isReadOnly()
Should the user be able to edit this, or will it just be for display
|
void |
setDynamicKey(java.lang.String dynamicKey)
Method to set the dynamicKey
|
InputType getInputType()
java.lang.String getSpecialInputType()
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getProperty()
java.lang.Object getDefaultValue()
java.lang.String getHelpText()
boolean isReadOnly()
int getMaxAllowed()
int getMinAllowed()
java.util.List<com.hof.mi.models.report.CustomValue<?>> getPossibleValues()
void addPossibleValue(java.lang.String value, java.lang.String description)
void addPossibleValue(java.lang.Integer value, java.lang.String description)
java.util.Map<java.lang.String,java.lang.Object> getViewOptions()
java.util.List<ParameterDisplayRule> getDisplayRules()
java.lang.String getParameterClassName()
java.util.Set<CssRule> getCssRules()
java.util.Map<java.lang.String,ParameterValueDisplay> getParameterValueDisplays()
boolean getAllowEnableDisableCallback()
boolean isList()
ListOptions getListOptions()
ParameterValidation getValidationRules()
java.util.Map<java.lang.String,ParameterValidation> getObjectValidationRules()
java.util.List<ValueDependent> getValueDependencies()
java.lang.String getDynamicKey()
void setDynamicKey(java.lang.String dynamicKey)
dynamicKey
- java.lang.String getEvent()
java.util.List<ValueDependent> getEventParameters()
java.util.Map<java.lang.String,java.lang.Object> getEventData()