Toggle Button
Represents a toggleable Button.
See also
Parameters
the style of this button. Must support the checked state, otherwise an exception will be thrown.
Constructors
Functions
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.