Class Tables.Builder<T,R>
java.lang.Object
com.amalgamasimulation.desktop.ui.tables.Tables.Builder<T,R>
- Type Parameters:
T- type of row valueR- column type in table
- All Implemented Interfaces:
Tables.FinalBuilder<T,,R> Tables.ParentBuilder<T,R>
- Enclosing class:
Tables
public static class Tables.Builder<T,R>
extends Object
implements Tables.FinalBuilder<T,R>, Tables.ParentBuilder<T,R>
A builder class to set up the properties of a table constructor
The create() method is used to actually create the table.
-
Method Summary
Modifier and TypeMethodDescriptioncheckbox()Set up the ability to select table elements using a check box In the list of columns, a column with a check box will be added to the first place or second place if table have rowHeadercreate()This is the finalization method.static <T1,R1> Tables.ParentBuilder <T1, R1> createBuilder(List<T1> elements, com.amalgamasimulation.desktop.ui.tables.Tables.TableCreator<T1, R1> creatorTable) parent(org.eclipse.swt.widgets.Composite parent) Set up the table parent elementSet up the ability to select table elements In the list of columns, a column with a rowHeader will be added to the first placestyle(int style) Set additional SWT properties in the tableSet the synchronous data update property in the tablevirtual()Set the ability to add virtual data
-
Method Details
-
createBuilder
public static <T1,R1> Tables.ParentBuilder<T1,R1> createBuilder(List<T1> elements, com.amalgamasimulation.desktop.ui.tables.Tables.TableCreator<T1, R1> creatorTable) -
parent
Description copied from interface:Tables.ParentBuilderSet up the table parent element- Specified by:
parentin interfaceTables.ParentBuilder<T,R> - Parameters:
parent- the parent control- Returns:
- builder object
-
checkbox
Description copied from interface:Tables.FinalBuilderSet up the ability to select table elements using a check box In the list of columns, a column with a check box will be added to the first place or second place if table have rowHeader- Specified by:
checkboxin interfaceTables.FinalBuilder<T,R> - Returns:
- builder object
-
rowHeader
Description copied from interface:Tables.FinalBuilderSet up the ability to select table elements In the list of columns, a column with a rowHeader will be added to the first place- Specified by:
rowHeaderin interfaceTables.FinalBuilder<T,R> - Returns:
- builder object
-
virtual
Description copied from interface:Tables.FinalBuilderSet the ability to add virtual data- Specified by:
virtualin interfaceTables.FinalBuilder<T,R> - Returns:
- builder object
-
syncUpdate
Description copied from interface:Tables.FinalBuilderSet the synchronous data update property in the table- Specified by:
syncUpdatein interfaceTables.FinalBuilder<T,R> - Returns:
- builder object
-
style
Description copied from interface:Tables.FinalBuilderSet additional SWT properties in the table- Specified by:
stylein interfaceTables.FinalBuilder<T,R> - Parameters:
style-- Returns:
- builder object
-
create
Description copied from interface:Tables.FinalBuilderThis is the finalization method. Call this method to create the table type of your choice- Specified by:
createin interfaceTables.FinalBuilder<T,R>
-