Table Pager
An ui group that displays elements in the form of pages.
Consists of a button row that allows the user to switch pages and a page container in which the current page is displayed. New pages can be added via TablePager#addPage.
Parameters
if true, the pager will use vertical layout instead of horizontal
Constructors
Types
Represents a page of TablePager. Upon the creation, adds a button to buttonsTable.
Functions
Adds a page wrapping the providen element, which fills the table.
Adds a page constructed by a lambda. Note that this method only constructs the page during the function invocation and then reuses it.
Creates a blank page and returns it. May be overridden by subclasses.
Finds a page by name.
Removes the providen page. Does nothing if the page doesn't belong to this pager.
Removes a page by name.
Sets the background of the two inner tables
Properties
Extensions
Adds a collapser constructed by a lambda to the existing table and returns the created cell
Adds a collapser constructed by a lambda to the existing table and returns the created cell. Whether it's shown is determined by the lambda.
Adds a constant image to the table and returns the created cell
Adds a dynamic image to the table and returns the created cell
Adds a constant label to the table and returns the created cell
Adds a dynamic label to the table and returns the created cell
Adds a table constructed by a lambda to the existing table and returns the created table cell
Adds a table to the group, passes it to the lambda and returns the created table.
Creates a table and a button group, calls the constructor and passes this table to it, adds all created buttons into the same group. Adds the table and returns the created cell.
Returns the n-th element of a group or null if it doesn't exist
Adds a custom button constructed by a lambda and returns the created cell
Invalidates every element in the hierarchy. Usually used in combination with deepShrink.
Reduces the size of the whole group to (0, 0) and invalidates hierarchy, effectively reducing the size of this group to the minimum.
Finds an element by its name and type. Can return the current element. If elementName is null, only the type is accounted for.
Finds an element by its type and name. Can return the current element. If elementName is null, only the type is accounted for.
Adds a table that returns 0 if its preferred width / height if the respective lambda returns true, or it's real preferred size otherwise.
Adds an image button with an optional onclick listener, returns the created cell
Adds an image button with a dynamic image and an optional onclick listener, returns the created cell.
Simmilar to toggleButton but adds a constant image
Simmilar to toggleButton but adds a dynamic image
Adds an image toggle button and returns the created cell. The toggle uses imageEnabled or imageDisabled depending on whether it's toggled on or off.
Creates a limited scroll pane constructed by a lambda and returns the created cell.
Adds a MenuButton to the table and returns the created cell.
Adds a dynamic MenuButton to the table and returns the created cell.
Adds a table pager constructed by a lambda and returns the created cell.
Creates a scroll pane containing the providen element and returns the created cell
Creates a scroll pane containing a table constructed by a lambda and returns the created cell
Adds a text button with an optional onclick listener, returns the created cell
Adds a text button with a dynamic label and an optional onclick listener, returns the created cell
Simmilar to toggleButton but adds a constant label
Simmilar to toggleButton but adds a dynamic label
Adds a text toggle button and returns the created cell. The toggle uses textEnabled or textDisabled depending on whether it's toggled on or off.
Creates a toggle button constructed by a lambda and returns the created cell. ontoggle is called whenever the button is toggled.