TabbedPanel

class TabbedPanel<T>(orientation: BoxOrientation = Top, val visualizer: ItemVisualizer<T, Any>, val tabVisualizer: ItemVisualizer<T, Any>, item: T, remaining: T) : View, Iterable<T> (source)

A container that manages a set of tabs, each representing one of the items it holds. This container is intended to display a single item at a time based on which is selected. This class delegates all rendering an configuration to its TabbedPanelBehavior, which allows a high degree of flexibility regarding display and behavior.

Parameters

orientation

of the tab container

visualizer

to display each item

tabVisualizer

to display the tab for each item

item

the first item in the list

remaining

items in the lest

Constructors

Link copied to clipboard
constructor(visualizer: ItemVisualizer<T, Any>, tabVisualizer: ItemVisualizer<T, Any>, item: T, vararg remaining: T)

Creates a TabbedPanel with orientation == Top.

constructor(orientation: BoxOrientation = Top, visualizer: ItemVisualizer<T, Any>, tabVisualizer: ItemVisualizer<T, Any>, item: T, vararg remaining: T)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Component responsible for controlling the presentation and behavior of the panel.

Link copied to clipboard

Notifies of changes to items.

Link copied to clipboard

The number of items (tabs) in the panel.

Link copied to clipboard

The location of the tabs.

Link copied to clipboard
Link copied to clipboard

The currently selected item.

Link copied to clipboard

The currently selected item/tab. Defaults to 0.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Inherited properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override var bounds: Rectangle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open val children: ObservableList<View>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val displayChange: BooleanObservers
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val displayRectHandlingChanged: BooleanObservers
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val enabledChanged: BooleanObservers
Link copied to clipboard
Link copied to clipboard
val focusabilityChanged: BooleanObservers
Link copied to clipboard
open var focusable: Boolean
Link copied to clipboard
val focusChanged: BooleanObservers
Link copied to clipboard
protected val focusCycleRoot: View?
Link copied to clipboard
Link copied to clipboard
var font: Font?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override var height: Double
Link copied to clipboard
override var idealSize: Size?
Link copied to clipboard
protected open var insets: Insets
Link copied to clipboard
protected open var isFocusCycleRoot: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open var layout: Layout?
Link copied to clipboard
override var minimumSize: Size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var parent: View?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override var position: Point
Link copied to clipboard
Link copied to clipboard
override var size: Size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val visibilityChanged: BooleanObservers
Link copied to clipboard
override var visible: Boolean
Link copied to clipboard
override var width: Double
Link copied to clipboard
override var x: Double
Link copied to clipboard
override var y: Double
Link copied to clipboard
var zOrder: Int

Functions

Link copied to clipboard
fun add(item: T): Boolean

Adds an item to the panel

fun add(at: Int, item: T)

Adds an item to the panel at a particular index.

Link copied to clipboard
fun clear()

Removes all items from the panel

Link copied to clipboard
operator fun contains(item: T): Boolean
Link copied to clipboard
operator fun get(index: Int): T?
Link copied to clipboard
fun indexOf(item: T): Int
Link copied to clipboard

true if the item list is empty

Link copied to clipboard
open operator override fun iterator(): Iterator<T>
Link copied to clipboard
fun lastIndexOf(item: T): Int
Link copied to clipboard
fun move(item: T, to: Int): Boolean

Moves an item from to the given index.

Link copied to clipboard
fun remove(item: T): Boolean

Removes an item from the panel.

fun remove(at: Int): T

Removes the item at an index from the panel.

Link copied to clipboard
open override fun render(canvas: Canvas)
Link copied to clipboard
operator fun set(at: Int, item: T): T

Changes the item at a given index.

Inherited functions

Link copied to clipboard
protected open fun addedToDisplay()
Link copied to clipboard
protected open infix fun ancestorOf(view: View): Boolean
Link copied to clipboard
protected open fun child(at: Point): View?
Link copied to clipboard
protected operator fun contains(child: View): Boolean
open operator override fun contains(point: Point): Boolean
Link copied to clipboard
protected fun contentDirectionChanged()
Link copied to clipboard
protected fun cursorChanged(old: Cursor?, new: Cursor?)
Link copied to clipboard
protected open fun doLayout()
Link copied to clipboard
protected fun enabledChanged(old: Boolean, new: Boolean, filter: (View) -> Boolean)
Link copied to clipboard
protected open fun filterKeyEvent(event: KeyEvent)
Link copied to clipboard
protected open fun filterPointerEvent(event: PointerEvent)
Link copied to clipboard
protected open fun filterPointerMotionEvent(event: PointerEvent)
Link copied to clipboard
fun fromAbsolute(point: Point): Point
Link copied to clipboard
operator fun get(traversalType: FocusTraversalPolicy.TraversalType): Set<KeyState>?
Link copied to clipboard
protected open fun handleDisplayRectEvent(old: Rectangle, new: Rectangle)
Link copied to clipboard
protected open fun handleKeyEvent(event: KeyEvent)
Link copied to clipboard
protected open fun handlePointerEvent(event: PointerEvent)
Link copied to clipboard
protected open fun handlePointerMotionEvent(event: PointerEvent)
Link copied to clipboard
open infix fun intersects(point: Point): Boolean
Link copied to clipboard
protected open fun relayout()
Link copied to clipboard
protected open fun removedFromDisplay()
Link copied to clipboard
fun rerender()
Link copied to clipboard
Link copied to clipboard
protected fun revalidate()
Link copied to clipboard
operator fun set(traversalType: FocusTraversalPolicy.TraversalType, keyStates: Set<KeyState>?)
Link copied to clipboard
protected open fun shouldHandlePointerEvent(event: PointerEvent): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected fun styleChanged(filter: (View) -> Boolean)
Link copied to clipboard
fun toAbsolute(point: Point): Point
Link copied to clipboard
fun toLocal(point: Point, from: View?): Point
Link copied to clipboard
Link copied to clipboard
fun toParent(point: Point): Point