public abstract class ParamList extends Object implements Serializable
| Constructor and Description |
|---|
ParamList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParamValue(ParamValue paramValue)
Add saved parameter value object.
|
String |
get(String attributeName)
Get other properties of current report or sheet
|
Map<String,String> |
getAttributes()
Get other properties of current report or sheet.
|
String |
getName()
Get the name of saved parameter value list
|
ParamValue |
getParamValue(String paramName)
Get parameter value object by specified parameter name.
|
Map<String,ParamValue> |
getParamValueMap()
this is a map of above paramValues prop.
|
List<ParamValue> |
getParamValues()
Get saved parameter values which are corresponding with <para>(deprecated since V11.1Update1) or <Param> nodes.
|
boolean |
isParamValuesEquals(List<ParamValue> thatParamValues)
Check whether this parameter values equals with that parameter values specified by thatParamValues
|
void |
set(String attributeName,
String attributeValue)
Set other properties of current report or sheet
|
void |
setAttributes(Map<String,String> properties)
Get other properties of current report or sheet.
|
void |
setName(String name)
Set the name of saved parameter value list
|
void |
setParamValues(List<ParamValue> paramValues)
Set saved parameter values which are corresponding with <para>(deprecated since V11.1Update1) or <Param> nodes.
|
int |
sizeOfParamValues()
evaluate size of parameter values.
|
List<ParamValue> |
sort(String currentParamName,
String[] sortedParamNames)
Sort ParamValue list for specified parameter, used to build drop down list in parameter UI.
|
public List<ParamValue> getParamValues()
public void setParamValues(List<ParamValue> paramValues)
paramValues - public void addParamValue(ParamValue paramValue)
The parameter value will be save to <Param> node in XML file.
paramValue - Saved parameter value object.public Map<String,ParamValue> getParamValueMap()
So, this map will not be effort after calling getParamValuesMap firstly if paramValues changed.
public int sizeOfParamValues()
public ParamValue getParamValue(String paramName)
paramName - specified parameter namepublic String getName()
For report level parameter value list:
For sheet level parameter value list:
public void setName(String name)
For report level parameter value list:
For sheet level parameter value list:
public Map<String,String> getAttributes()
They are corresponding with other attributes of <ReportParamList> or <SheetParamList> node
public void setAttributes(Map<String,String> properties)
They are corresponding with other attributes of <ReportParamList> or <SheetParamList> node and will be saved into XML file.
properties - public String get(String attributeName)
attributeName will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as: "locale" etc.
return value will be attribute value of XML node(<ReportParamList> or <SheetParamList>), such as: locale = "en_US"
such as: <<ReportParamList locale="en_US">
attributeName - attribute name will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as: "locale" etc.public void set(String attributeName, String attributeValue)
attributeName will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as "locale" etc.
attributeValue will be regard as attribute value of XML node(<ReportParamList> or <SheetParamList>), such as locale is "en_US"
such as: <ReportParamList locale="en_US">
attributeName - attribute name will be regard as attribute name of XML node(<ReportParamList> or <SheetParamList>), such as "locale" etc.attributeValue - attribute value will be regard as attribute value of XML node(<ReportParamList> or <SheetParamList>), such as locale is "en_US"public List<ParamValue> sort(String currentParamName, String[] sortedParamNames)
The parameter specified currentParamName should be show in first column, others will be order by sortedParamNames.
currentParamName - the name of current parameter when building combobox UI.sortedParamNames - the sorted parameter names of the current running report, contains current parameter name.public boolean isParamValuesEquals(List<ParamValue> thatParamValues)
thatParamValues - that parameter values specified by thatParamValues© insightsoftware. All rights reserved.