Class PageInfo.TableInfo
- Enclosing class:
- PageInfo
@WizSerializable public static class PageInfo.TableInfo extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PageInfo.TableInfo.ColumnInfo
Specifies the parameters of a table column.static class
PageInfo.TableInfo.Style
Helper class for managing HTML styles.class
PageInfo.TableInfo.Summary
Defines codes that determine the value in the summary line for a specific table column. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description PageInfo.TableInfo
addColumn(String title, String subTitle, int style, int summary)
Add a column definition to the table specifying the following parameters:title
: The column title that is displayed in the table header for the referenced column.List<PageInfo.TableInfo.ColumnInfo>
getColumnInfo()
Gets the value of the columnInfo property.String
getService()
Gets the value of the service property.String
getTitle()
Gets the value of the title property.boolean
isHideData()
Gets the value of the hideData property.void
setHideData(boolean value)
Sets the value of the hideData property.void
setService(String value)
Sets the value of the service property.void
setTitle(String value)
Sets the value of the title property.
-
Constructor Details
-
TableInfo
public TableInfo()Constructs an empty object. -
TableInfo
Constructs an object with initial values.The following values are set by this constructor:
title
: The title that SpiderAdmin displays above the table.service
: The service code that is used byMain.customAdminService()
to determine the data displayed in the table.hideData
: Specifies whether SpiderAdmin shall initially hide the table when displaying the page. The table can be revealed by the user by clicking the drop-down icon near the table title (which is not hidden if the table contains data).
- Parameters:
title
- The displayed table title (if not null).service
- The service code used by the application to populate the table.hideData
- If true then the table is initially hidden.
-
-
Method Details
-
getTitle
Gets the value of the title property.The
title
property is the title that SpiderAdmin displays above the table.- Returns:
- the value of the title property.
-
setTitle
Sets the value of the title property.The
title
property is the title that SpiderAdmin displays above the table. You should not set it directly but rather specify when activating the class constructor.- Parameters:
value
-
-
getService
Gets the value of the service property.The
service
property is the service code that is used byMain.customAdminService()
to determine the data displayed in the table.- Returns:
- the value of the service property.
-
setService
Sets the value of the service property.The
service
property is the service code that is used byMain.customAdminService()
to determine the data displayed in the table.You should not set it directly but rather specify when activating the class constructor.
- Parameters:
value
-
-
isHideData
public boolean isHideData()Gets the value of the hideData property.The
hideData
property specifies whether SpiderAdmin shall initially hide the table when displaying the page. The table can be revealed by the user by clicking the drop-down icon near the table title (which is not hidden if the table contains data).- Returns:
- the value of the hideData property.
-
setHideData
public void setHideData(boolean value)Sets the value of the hideData property.The
hideData
property specifies whether SpiderAdmin shall initially hide the table when displaying the page. The table can be revealed by the user by clicking the drop-down icon near the table title (which is not hidden if the table contains data).You should not set it directly but rather specify when activating the class constructor.
- Parameters:
value
-
-
getColumnInfo
Gets the value of the columnInfo property.The
columnInfo
property lists all the column descriptors of the table.- Returns:
- the value of the columnInfo property.
-
addColumn
Add a column definition to the table specifying the following parameters:title
: The column title that is displayed in the table header for the referenced column. This value also identifies the column whenTableData.addRow()
is used to populate the table.subTitle
: The column subtitle that is displayed in the table sub-header for the referenced column. If the property value is null nothing is displayed in the table sub-header for this column.style
: A bit combination ofPageInfo.TableInfo.Style
values that specify the default HTML styles used for displaying the cells in the column. The property can be overridden for specific cells whenTableData.addRow()
is used.summary
: Determines the value displayed in the table summary line for the column. The possible values are defined inPageInfo.TableInfo.Summary
.
- Parameters:
title
- Column titlesubTitle
- Column sub-titlestyle
- Default styles for the column's cells.summary
- The value to be displayed in the table's summary line.- Returns:
- this object.
-