RenderablePaginatedTransform

class RenderablePaginatedTransform<S : Element, T : GridPane<T, S>, U : InterfaceViewer>(min: Vector2, max: Vector2, elementsSupplier: () -> List<RenderFunction<S, T, U>>) : ReactiveTransform<T, U, Int>

Custom implementation of PaginatedTransform that allows rendering elements as well as the buttons.

Constructors

Link copied to clipboard
fun RenderablePaginatedTransform(min: Vector2, max: Vector2, elements: List<RenderFunction<S, T, U>>)

Constructs a new paginated transform.

Link copied to clipboard
fun RenderablePaginatedTransform(min: Vector2, max: Vector2, elementsSupplier: () -> List<RenderFunction<S, T, U>>)

Functions

Link copied to clipboard
open fun <V : Any> andThen(p0: Function<in T, out V>): BiFunction<T, InterfaceView<T, U>, V>
Link copied to clipboard
open override fun apply(originalPane: T, view: InterfaceView<T, U>): T
Link copied to clipboard
fun backwardElement(position: Vector2, builder: TransformFunction<S, T, U>)

Sets the backward element.

Link copied to clipboard
fun dimensions(): Vector2

Returns the dimensions of the paginated view

Link copied to clipboard
fun forwardElement(position: Vector2, builder: TransformFunction<S, T, U>)

Sets the forward element.

Link copied to clipboard
fun maxPage(): @IntRange(from = 0) Int

Returns the maximum page number.

Link copied to clipboard
fun nextPage()

Switch to the next page.

Link copied to clipboard
fun page(): @IntRange(from = 0) Int

Returns the current page number.

Link copied to clipboard
fun pageProperty(): InterfaceProperty<Int>

Get the property containing the pagination's current page.

Link copied to clipboard
fun pages(): @IntRange(from = 1) Int

Returns the number of pages.

Link copied to clipboard

Switch to the previous page.

Link copied to clipboard
open override fun properties(): Array<InterfaceProperty<*>>