Class InputMatrixInputBuilder
- Object
-
- AbstractInputBuilder<InputMatrixInputBuilder,Object>
-
- InputMatrixInputBuilder
-
public class InputMatrixInputBuilder extends AbstractInputBuilder<InputMatrixInputBuilder,Object>
Builder class for input type InputMatrixInputType.INPUTMATRIX
-
-
Field Summary
-
Fields inherited from class AbstractInputBuilder
builderContext, cp
-
-
Constructor Summary
Constructors Constructor Description InputMatrixInputBuilder(InputBuilderContext builderContext, String paramName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
_getInput()
InputMatrixInputBuilder
setCanModifyRows(boolean value)
Set row modification flag of the configuration parameters.InputMatrixInputBuilder
setColumns(List<String> columns)
Add list of columns to the configuration parameters.InputMatrixInputBuilder
setColumnValueOptions(Map value)
Set column value options for the configuration parameters.InputMatrixInputBuilder
setDefaultHeight(int value)
Set default height for the configuration parameters.InputMatrixInputBuilder
setFitFieldWidths(boolean value)
Set fit field widths for the configuration parameters.InputMatrixInputBuilder
setFixTableHeight(boolean value)
Set fix table height flag of the configuration parameters.InputMatrixInputBuilder
setNoCellRefresh(boolean value)
Set cell refresher flag of the configuration parameters.InputMatrixInputBuilder
setReadOnlyColumns(List<String> readOnlyColumns)
Add read only list of columns to the configuration parameters.-
Methods inherited from class AbstractInputBuilder
addOrUpdateInput, addToConfiguratorEntry, addToConfiguratorEntry, buildContextParameter, buildMap, getInput, setAccessCode, setAlign, setAlwaysEditable, setAppearance, setAutoComplete, setAutoFocus, setCaption, setConfigValues, setCustomAttributeName, setCustomAttributeValue, setDisabled, setDisplayMode, setErrorMessage, setExportable, setFlex, setHelpLink, setHelpText, setIcon, setIconPosition, setImportable, setLabel, setLabelPlacement, setLabelStyle, setLabelTranslations, setLayoutGridName, setNoRefresh, setParameterGroup, setPlaceholderText, setReadOnly, setRequired, setSize, setSuccessMessage, setTheme, setTitle, setUserGroupEdit, setUserGroupView, setValue, setValueHint, setWarningMessage
-
-
-
-
Constructor Detail
-
InputMatrixInputBuilder
public InputMatrixInputBuilder(InputBuilderContext builderContext, String paramName)
-
-
Method Detail
-
setColumns
public InputMatrixInputBuilder setColumns(List<String> columns)
Add list of columns to the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
columns
- List of columns- Returns:
- self
-
setReadOnlyColumns
public InputMatrixInputBuilder setReadOnlyColumns(List<String> readOnlyColumns)
Add read only list of columns to the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
readOnlyColumns
- List of columns- Returns:
- self
-
setFitFieldWidths
public InputMatrixInputBuilder setFitFieldWidths(boolean value)
Set fit field widths for the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
value
- true to enable, false to disable fit field width- Returns:
- self
-
setDefaultHeight
public InputMatrixInputBuilder setDefaultHeight(int value)
Set default height for the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
value
- default height- Returns:
- self
-
setColumnValueOptions
public InputMatrixInputBuilder setColumnValueOptions(Map value)
Set column value options for the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
value
- Map of the column value options- Returns:
- self
-
setCanModifyRows
public InputMatrixInputBuilder setCanModifyRows(boolean value)
Set row modification flag of the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
value
- true to enable, false to disable rows modification- Returns:
- self
-
setNoCellRefresh
public InputMatrixInputBuilder setNoCellRefresh(boolean value)
Set cell refresher flag of the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
value
- true to disable, false to enable cell refresher- Returns:
- self
-
setFixTableHeight
public InputMatrixInputBuilder setFixTableHeight(boolean value)
Set fix table height flag of the configuration parameters.Example:
api.inputBuilderFactory() .createInputMatrix("input") .setColumns(["column1", "column2"]) .setReadOnlyColumns(["readOnly1", "readOnly2"]) .setFitFieldWidths(true) .setDefaultHeight(5) .setColumnValueOptions([column1: ["option1", "option2"]]) .setCanModifyRows(false) .setNoCellRefresh(true) .setFixTableHeight(true) .buildContextParameter()
- Parameters:
value
- true to enable, false to disable fix table height- Returns:
- self
-
_getInput
protected Object _getInput()
- Specified by:
_getInput
in classAbstractInputBuilder<InputMatrixInputBuilder,Object>
-
-