public class SCCSearchModelConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,Object> |
__MASK_IMPORTED_CRITERION |
private List<Map<String,Object>> |
_columns |
private Map<String,Map<String,Object>> |
_criteria |
private boolean |
_displayMaskImported |
static String |
CRITERIA_MASK_IMPORTED
Criteria to mask imported elements in SCCSearchTool
|
| Constructor and Description |
|---|
SCCSearchModelConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(String id)
Add a column to the model.
|
void |
addColumn(String id,
I18nizableText label)
Add a column to the model.
|
void |
addColumn(String id,
I18nizableText label,
boolean sortable)
Add a column to the model.
|
void |
addColumn(String id,
I18nizableText label,
int width)
Add a column to the model.
|
void |
addColumn(String id,
I18nizableText label,
int width,
boolean sortable)
Add a column to the model.
|
void |
addColumn(String id,
I18nizableText label,
int width,
boolean sortable,
String type)
Add a column to the model.
|
void |
addColumn(String id,
I18nizableText label,
int width,
boolean sortable,
String type,
String renderer)
Add a column to the model.
|
void |
addCriterion(String id)
Add a criterion to the model.
|
void |
addCriterion(String id,
I18nizableText label)
Add a criterion to the model.
|
void |
addCriterion(String id,
I18nizableText label,
String type)
Add a criterion to the model.
|
void |
addCriterion(String id,
I18nizableText label,
String type,
String widget)
Add a criterion to the model.
|
void |
displayMaskImported(boolean displayMaskImported)
Set to
false if you don't want to display the maskImported criteria. |
Map<String,Object> |
toJSON()
Convert criteria and columns to JSON Map and add searchUrlPlugin, searchUrl and pageSize to JSON results.
|
public static final String CRITERIA_MASK_IMPORTED
private static final Map<String,Object> __MASK_IMPORTED_CRITERION
private boolean _displayMaskImported
public SCCSearchModelConfiguration()
public void displayMaskImported(boolean displayMaskImported)
false if you don't want to display the maskImported criteria.displayMaskImported - false if you want to disable the maskImportedCriteriapublic void addCriterion(String id)
id - IDpublic void addCriterion(String id, I18nizableText label)
id - IDlabel - Internationalized labelpublic void addCriterion(String id, I18nizableText label, String type)
id - IDlabel - Internationalized labeltype - Type (string, boolean, etc.)public void addCriterion(String id, I18nizableText label, String type, String widget)
id - IDlabel - Internationalized labeltype - Type (string, boolean, etc.)widget - The widget to displaypublic void addColumn(String id, I18nizableText label)
id - IDlabel - Internationalized labelpublic void addColumn(String id, I18nizableText label, int width)
id - IDlabel - Internationalized labelwidth - Width of the columnpublic void addColumn(String id, I18nizableText label, boolean sortable)
id - IDlabel - Internationalized labelsortable - true if sortablepublic void addColumn(String id, I18nizableText label, int width, boolean sortable)
id - IDlabel - Internationalized labelwidth - Width of the columnsortable - true if sortablepublic void addColumn(String id, I18nizableText label, int width, boolean sortable, String type)
id - IDlabel - Internationalized labelwidth - Width of the columnsortable - true if sortabletype - Type (string, boolean, etc.)public void addColumn(String id, I18nizableText label, int width, boolean sortable, String type, String renderer)
id - IDlabel - Internationalized labelwidth - Width of the columnsortable - true if sortabletype - Type (string, boolean, etc.)renderer - The render JS function