public class DynamicParameterOptions
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
DynamicParameterOptions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyToRemove(java.lang.String dynamicKey)
When passed to the front end any keys that have been added will be removed.
|
void |
addPanel(java.lang.String dynamicKey,
ParameterPanel panel)
Adds a panel to the response object, any panels that are added here will
be added to the client-side panels collection
|
void |
addParameter(java.lang.String dynamicKey,
java.lang.String panelKey,
java.lang.String sectionKey,
Parameter parameter)
Adds a parameter to the panel/section defined
|
void |
addSection(java.lang.String dynamicKey,
java.lang.String panelKey,
ParameterSection section)
Any section added here will be added to the client-side panel collection, provided it can find
the panelKey matches a panel in that collection.
|
void |
addValue(java.lang.String property,
com.hof.mi.models.report.CustomValue<?> value)
Add an individual value to the values map
|
java.util.Set<java.lang.String> |
getDynamicKeys() |
java.util.Set<java.lang.String> |
getDynamicKeysToRemove() |
java.util.List<ParameterPanel> |
getPanels() |
java.util.Map<java.lang.String,com.hof.parameters.DynamicParameterOptions.SectionContainer> |
getParameters() |
java.util.Map<java.lang.String,java.util.List<ParameterSection>> |
getSections() |
java.util.Map<java.lang.String,java.util.List<com.hof.mi.models.report.CustomValue<?>>> |
getValues() |
void |
setDynamicKeys(java.util.Set<java.lang.String> dynamicKeys) |
void |
setDynamicKeysToRemove(java.util.Set<java.lang.String> dynamicKeysToRemove) |
void |
setPanels(java.util.List<ParameterPanel> panels) |
void |
setParameters(java.util.Map<java.lang.String,com.hof.parameters.DynamicParameterOptions.SectionContainer> parameters) |
void |
setSections(java.util.Map<java.lang.String,java.util.List<ParameterSection>> sections) |
void |
setValues(java.util.Map<java.lang.String,java.util.List<com.hof.mi.models.report.CustomValue<?>>> values)
Overwrites the values object.
|
org.json.JSONObject |
toJSON() |
public void addPanel(java.lang.String dynamicKey,
ParameterPanel panel)
dynamicKey - - Used to let the front-end know which "dynamicKeys" are changing so that existing panels/sections/parameters using that type can be removed before addingpanel - public void addSection(java.lang.String dynamicKey,
java.lang.String panelKey,
ParameterSection section)
dynamicKey - - Used to let the front-end know which "dynamicKeys" are changing so that existing panels/sections/parameters using that type can be removed before addingpanelKey - - Determines which panel to put this section intosection - public void addValue(java.lang.String property,
com.hof.mi.models.report.CustomValue<?> value)
property - - The property that this value can be selected forvalue - - The valuepublic void setValues(java.util.Map<java.lang.String,java.util.List<com.hof.mi.models.report.CustomValue<?>>> values)
values - public void addParameter(java.lang.String dynamicKey,
java.lang.String panelKey,
java.lang.String sectionKey,
Parameter parameter)
dynamicKey - - Used to let the front-end know which "dynamicKeys" are changing so that existing panels/sections/parameters using that type can be removed before addingpanelKey - - Determines which panel that contains the section we are adding this parameter tosectionKey - - Determines which section this parameter will be added toparameter - public org.json.JSONObject toJSON()
public java.util.Set<java.lang.String> getDynamicKeysToRemove()
public void addKeyToRemove(java.lang.String dynamicKey)
dynamicKey - public void setDynamicKeysToRemove(java.util.Set<java.lang.String> dynamicKeysToRemove)
public java.util.List<ParameterPanel> getPanels()
public void setPanels(java.util.List<ParameterPanel> panels)
public java.util.Map<java.lang.String,java.util.List<ParameterSection>> getSections()
public void setSections(java.util.Map<java.lang.String,java.util.List<ParameterSection>> sections)
public java.util.Map<java.lang.String,com.hof.parameters.DynamicParameterOptions.SectionContainer> getParameters()
public void setParameters(java.util.Map<java.lang.String,com.hof.parameters.DynamicParameterOptions.SectionContainer> parameters)
public java.util.Set<java.lang.String> getDynamicKeys()
public void setDynamicKeys(java.util.Set<java.lang.String> dynamicKeys)
public java.util.Map<java.lang.String,java.util.List<com.hof.mi.models.report.CustomValue<?>>> getValues()