Package com.nnamo.view.customcomponents
Class CustomTable.Builder
java.lang.Object
com.nnamo.view.customcomponents.CustomTable.Builder
- Enclosing class:
CustomTable
Builder class for constructing a
CustomTable
instance with customizable parameters.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns aCustomTable
instance with the specified parameters.setCustomRadioButtons
(ArrayList<JRadioButton> radioButtons) Sets custom radio buttons for filtering in the table.setDataType
(DataType dataType) Sets the data type for the table.setHiddenColumns
(ColumnName[] hiddenColumns) sets the columns to be hidden in the table.setSearchColumns
(ColumnName[] searchColumns) Sets the columns to be used for searching in the table.setTableColumns
(ColumnName[] tableColumns) Sets the columns to be displayed in the table.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setTableColumns
Sets the columns to be displayed in the table.- Parameters:
tableColumns
-- Returns:
-
setHiddenColumns
sets the columns to be hidden in the table.- Parameters:
hiddenColumns
-- Returns:
-
setSearchColumns
Sets the columns to be used for searching in the table.- Parameters:
searchColumns
-- Returns:
-
setDataType
Sets the data type for the table.- Parameters:
dataType
-- Returns:
-
setCustomRadioButtons
Sets custom radio buttons for filtering in the table.- Parameters:
radioButtons
-- Returns:
-
build
Builds and returns aCustomTable
instance with the specified parameters.- Returns:
- a new
CustomTable
instance.
-