Record Class DataSourceController.TablesPage
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.datasource.DataSourceController.TablesPage
- Record Components:
page- Current 1-based page numberpageCount- Total page countsummary- Human-readable page summaryrange- Human-readable result rangepageSizes- Available page-size optionstables- Rows rendered on this pageempty- Whether the page has no rowspreviousDisabled- Whether previous-page navigation is disablednextDisabled- Whether next-page navigation is disabled
- Enclosing class:
DataSourceController
public static record DataSourceController.TablesPage(int page, int pageCount, String summary, String range, List<DataSourceController.PageSizeOption> pageSizes, List<DataSourceController.TableRow> tables, boolean empty, boolean previousDisabled, boolean nextDisabled)
extends Record
View model for one page of datasource tables.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionTablesPage(int page, int pageCount, String summary, String range, List<DataSourceController.PageSizeOption> pageSizes, List<DataSourceController.TableRow> tables, boolean empty, boolean previousDisabled, boolean nextDisabled) Creates an instance of aTablesPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Returns the value of theemptyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenextDisabledrecord component.intpage()Returns the value of thepagerecord component.intReturns the value of thepageCountrecord component.Returns the value of thepageSizesrecord component.booleanReturns the value of thepreviousDisabledrecord component.range()Returns the value of therangerecord component.summary()Returns the value of thesummaryrecord component.tables()Returns the value of thetablesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TablesPage
public TablesPage(int page, int pageCount, String summary, String range, List<DataSourceController.PageSizeOption> pageSizes, List<DataSourceController.TableRow> tables, boolean empty, boolean previousDisabled, boolean nextDisabled) Creates an instance of aTablesPagerecord class.- Parameters:
page- the value for thepagerecord componentpageCount- the value for thepageCountrecord componentsummary- the value for thesummaryrecord componentrange- the value for therangerecord componentpageSizes- the value for thepageSizesrecord componenttables- the value for thetablesrecord componentempty- the value for theemptyrecord componentpreviousDisabled- the value for thepreviousDisabledrecord componentnextDisabled- the value for thenextDisabledrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
page
-
pageCount
-
summary
-
range
-
pageSizes
-
tables
-
empty
-
previousDisabled
public boolean previousDisabled()Returns the value of thepreviousDisabledrecord component.- Returns:
- the value of the
previousDisabledrecord component
-
nextDisabled
public boolean nextDisabled()Returns the value of thenextDisabledrecord component.- Returns:
- the value of the
nextDisabledrecord component
-