MutableDropdown

class MutableDropdown<T, M : MutableListModel<T>>(model: M, boxItemVisualizer: ItemVisualizer<T, IndexedItem>? = null, listItemVisualizer: ItemVisualizer<T, IndexedItem>? = boxItemVisualizer) : Dropdown<T, M> , Editable(source)

A dropdown control that can be edited.

Parameters

model

used to represent the underlying choices

boxItemVisualizer

to render the selected item within the drop-down box

listItemVisualizer

to render each item within the list of choices

See also

Constructors

Link copied to clipboard
constructor(model: M, boxItemVisualizer: ItemVisualizer<T, IndexedItem>? = null, listItemVisualizer: ItemVisualizer<T, IndexedItem>? = boxItemVisualizer)

Properties

Link copied to clipboard

Indicates whether there is an ongoing edit operation

Link copied to clipboard

Controls how editing is done

Inherited properties

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

Controls the Dropdown's look and behavior.

Link copied to clipboard
Link copied to clipboard
override var bounds: Rectangle
Link copied to clipboard
Link copied to clipboard

Defines how the contents within the drop-down box should be aligned.

Link copied to clipboard

to render the selected item within the drop-down box

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

Broadcasts changes Dropdown

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
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
Link copied to clipboard
open var focusable: Boolean
Link copied to clipboard
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

Indicates whether the option list is empty

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

Defines how the contents of each choice be aligned.

Link copied to clipboard

to render each item within the list of choices

Link copied to clipboard
override var minimumSize: Size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open val model: M

used to represent the underlying choices

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

Index of currently selected value

Link copied to clipboard
override var size: Size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val value: Result<T>

Currently selected value

Link copied to clipboard
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
open override fun cancelEditing()

Requests that the existing edit operation be canceled. This will discard the current process and retain the underlying value before editing started.

Link copied to clipboard
open override fun completeEditing()

Requests that the existing edit operation be completed. This will try to fetch a valid result and update the underlying value if possible.

Link copied to clipboard
fun set(value: T)
Link copied to clipboard

Initiate editing of the control. This will notify the Behavior that editing is starting. The behavior can then use the editor to control the process.

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
open override fun render(canvas: Canvas)
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