KtfxContextMenu

open class KtfxContextMenu : ContextMenu, MenuItemManager

ContextMenu with dynamic-layout dsl support. Invoking dsl will add its children.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
override fun <C : MenuItem> addChild(child: C): C

Allows child to be added dynamically with Kotlin DSL in the context of this manager.

Link copied to clipboard
fun <T : Event> addEventFilter(p0: EventType<T>, p1: EventHandler<in T>)
Link copied to clipboard
fun <T : Event> addEventHandler(p0: EventType<T>, p1: EventHandler<in T>)
Link copied to clipboard
fun anchorLocationProperty(): ObjectProperty<PopupWindow.AnchorLocation>
Link copied to clipboard
fun anchorXProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
fun anchorYProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
fun autoFixProperty(): BooleanProperty
Link copied to clipboard
fun autoHideProperty(): BooleanProperty
Link copied to clipboard
open override fun buildEventDispatchChain(p0: EventDispatchChain): EventDispatchChain
Link copied to clipboard
open fun centerOnScreen()
Link copied to clipboard
fun consumeAutoHidingEventsProperty(): BooleanProperty
Link copied to clipboard
fun eventDispatcherProperty(): ObjectProperty<EventDispatcher>
Link copied to clipboard
fun fireEvent(p0: Event)
Link copied to clipboard
fun focusedProperty(): ReadOnlyBooleanProperty
Link copied to clipboard
fun forceIntegerRenderScaleProperty(): BooleanProperty
Link copied to clipboard
fun getAnchorLocation(): PopupWindow.AnchorLocation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getCssMetaData(): MutableList<CssMetaData<out Styleable, *>>
Link copied to clipboard
fun getEventDispatcher(): EventDispatcher
Link copied to clipboard
Link copied to clipboard
override fun getId(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getOnAction(): EventHandler<ActionEvent>
Link copied to clipboard
fun getOnAutoHide(): EventHandler<Event>
Link copied to clipboard
fun getOnCloseRequest(): EventHandler<WindowEvent>
Link copied to clipboard
fun getOnHidden(): EventHandler<WindowEvent>
Link copied to clipboard
fun getOnHiding(): EventHandler<WindowEvent>
Link copied to clipboard
fun getOnShowing(): EventHandler<WindowEvent>
Link copied to clipboard
fun getOnShown(): EventHandler<WindowEvent>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getOwnerNode(): Node
Link copied to clipboard
fun getOwnerWindow(): Window
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun getPseudoClassStates(): ObservableSet<PseudoClass>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getScene(): Scene
Link copied to clipboard
override fun getSkin(): Skin<*>
Link copied to clipboard
override fun getStyle(): String
Link copied to clipboard
open override fun getStyleableNode(): Node
Link copied to clipboard
open override fun getStyleableParent(): Styleable
Link copied to clipboard
override fun getStyleClass(): ObservableList<String>
Link copied to clipboard
open override fun getTypeSelector(): String
Link copied to clipboard
open fun getUserData(): Any
Link copied to clipboard
Link copied to clipboard
fun getX(): Double
Link copied to clipboard
fun getY(): Double
Link copied to clipboard
Link copied to clipboard
fun heightProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
open override fun hide()
Link copied to clipboard
fun hideOnEscapeProperty(): BooleanProperty
Link copied to clipboard
fun idProperty(): StringProperty
Link copied to clipboard
inline operator fun String.invoke(graphic: Node? = null, configuration: MenuItem.() -> Unit): MenuItem

Call MenuItemManager.menuItem by string invocation.

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
fun maxHeightProperty(): DoubleProperty
Link copied to clipboard
Link copied to clipboard
fun maxWidthProperty(): DoubleProperty
Link copied to clipboard
Link copied to clipboard
fun minHeightProperty(): DoubleProperty
Link copied to clipboard
Link copied to clipboard
fun minWidthProperty(): DoubleProperty
Link copied to clipboard
fun onActionProperty(): ObjectProperty<EventHandler<ActionEvent>>
Link copied to clipboard
fun onAutoHideProperty(): ObjectProperty<EventHandler<Event>>
Link copied to clipboard
fun onCloseRequestProperty(): ObjectProperty<EventHandler<WindowEvent>>
Link copied to clipboard
fun onHiddenProperty(): ObjectProperty<EventHandler<WindowEvent>>
Link copied to clipboard
fun onHidingProperty(): ObjectProperty<EventHandler<WindowEvent>>
Link copied to clipboard
fun onShowingProperty(): ObjectProperty<EventHandler<WindowEvent>>
Link copied to clipboard
fun onShownProperty(): ObjectProperty<EventHandler<WindowEvent>>
Link copied to clipboard
fun opacityProperty(): DoubleProperty
Link copied to clipboard
fun outputScaleXProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
fun outputScaleYProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
fun ownerNodeProperty(): ReadOnlyObjectProperty<Node>
Link copied to clipboard
fun ownerWindowProperty(): ReadOnlyObjectProperty<Window>
Link copied to clipboard
Link copied to clipboard
fun prefHeightProperty(): DoubleProperty
Link copied to clipboard
Link copied to clipboard
fun prefWidthProperty(): DoubleProperty
Link copied to clipboard
fun pseudoClassStateChanged(p0: PseudoClass, p1: Boolean)
Link copied to clipboard
fun <T : Event> removeEventFilter(p0: EventType<T>, p1: EventHandler<in T>)
Link copied to clipboard
fun <T : Event> removeEventHandler(p0: EventType<T>, p1: EventHandler<in T>)
Link copied to clipboard
fun renderScaleXProperty(): DoubleProperty
Link copied to clipboard
fun renderScaleYProperty(): DoubleProperty
Link copied to clipboard
Link copied to clipboard
fun sceneProperty(): ReadOnlyObjectProperty<Scene>
Link copied to clipboard
fun setAnchorLocation(p0: PopupWindow.AnchorLocation)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setEventDispatcher(p0: EventDispatcher)
Link copied to clipboard
fun setHeight(p0: Double)
Link copied to clipboard
Link copied to clipboard
fun setId(p0: String)
Link copied to clipboard
Link copied to clipboard
open fun setMaxSize(p0: Double, p1: Double)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setMinSize(p0: Double, p1: Double)
Link copied to clipboard
Link copied to clipboard
fun setOnAction(p0: EventHandler<ActionEvent>)
Link copied to clipboard
fun setOnAutoHide(p0: EventHandler<Event>)
Link copied to clipboard
fun setOnCloseRequest(p0: EventHandler<WindowEvent>)
Link copied to clipboard
fun setOnHidden(p0: EventHandler<WindowEvent>)
Link copied to clipboard
fun setOnHiding(p0: EventHandler<WindowEvent>)
Link copied to clipboard
fun setOnShowing(p0: EventHandler<WindowEvent>)
Link copied to clipboard
fun setOnShown(p0: EventHandler<WindowEvent>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setPrefSize(p0: Double, p1: Double)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun setSkin(p0: Skin<*>)
Link copied to clipboard
fun setStyle(p0: String)
Link copied to clipboard
open fun setUserData(p0: Any)
Link copied to clipboard
fun setWidth(p0: Double)
Link copied to clipboard
fun setX(p0: Double)
Link copied to clipboard
fun setY(p0: Double)
Link copied to clipboard
open fun show(p0: Window)
open override fun show(p0: Node, p1: Double, p2: Double)
open fun show(p0: Window, p1: Double, p2: Double)
open fun show(p0: Node, p1: Side, p2: Double, p3: Double)
Link copied to clipboard
fun showingProperty(): ReadOnlyBooleanProperty
Link copied to clipboard
open fun sizeToScene()
Link copied to clipboard
override fun skinProperty(): ObjectProperty<Skin<*>>
Link copied to clipboard
fun styleProperty(): StringProperty
Link copied to clipboard
fun widthProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
fun xProperty(): ReadOnlyDoubleProperty
Link copied to clipboard
fun yProperty(): ReadOnlyDoubleProperty

Properties

Link copied to clipboard
val items: ObservableList<MenuItem>
Link copied to clipboard
val properties: ObservableMap<Any, Any>

Extensions

Link copied to clipboard
fun MenuItemManager.checkMenuItem(text: String? = null, graphic: Node? = null): CheckMenuItem

Add a CheckMenuItem to this manager.

inline fun MenuItemManager.checkMenuItem(text: String? = null, graphic: Node? = null, configuration: CheckMenuItem.() -> Unit): CheckMenuItem

Add a CheckMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.customMenuItem(content: Node? = null, hideOnClick: Boolean = true): CustomMenuItem

Add a CustomMenuItem to this manager.

inline fun MenuItemManager.customMenuItem(content: Node? = null, hideOnClick: Boolean = true, configuration: CustomMenuItem.() -> Unit): CustomMenuItem

Add a CustomMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.menu(text: String = "", graphic: Node? = null): Menu

Add a Menu to this manager.

inline fun MenuItemManager.menu(text: String = "", graphic: Node? = null, configuration: KtfxMenu.() -> Unit): Menu

Add a Menu with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.menuItem(text: String? = null, graphic: Node? = null): MenuItem

Add a MenuItem to this manager.

inline fun MenuItemManager.menuItem(text: String? = null, graphic: Node? = null, configuration: MenuItem.() -> Unit): MenuItem

Add a MenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.radioMenuItem(text: String? = null, graphic: Node? = null): RadioMenuItem

Add a RadioMenuItem to this manager.

inline fun MenuItemManager.radioMenuItem(text: String? = null, graphic: Node? = null, configuration: RadioMenuItem.() -> Unit): RadioMenuItem

Add a RadioMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.separatorMenuItem(): SeparatorMenuItem

Add a SeparatorMenuItem to this manager.

inline fun MenuItemManager.separatorMenuItem(configuration: SeparatorMenuItem.() -> Unit): SeparatorMenuItem

Add a SeparatorMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.styledCheckMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null): CheckMenuItem

Add a styled CheckMenuItem to this manager.

inline fun MenuItemManager.styledCheckMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: CheckMenuItem.() -> Unit): CheckMenuItem

Add a styled CheckMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.styledCustomMenuItem(content: Node? = null, hideOnClick: Boolean = true, vararg styleClass: String, id: String? = null): CustomMenuItem

Add a styled CustomMenuItem to this manager.

inline fun MenuItemManager.styledCustomMenuItem(content: Node? = null, hideOnClick: Boolean = true, vararg styleClass: String, id: String? = null, configuration: CustomMenuItem.() -> Unit): CustomMenuItem

Add a styled CustomMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.styledMenu(text: String = "", graphic: Node? = null, vararg styleClass: String, id: String? = null): Menu

Add a styled Menu to this manager.

inline fun MenuItemManager.styledMenu(text: String = "", graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: KtfxMenu.() -> Unit): Menu

Add a styled Menu with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.styledMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null): MenuItem

Add a styled MenuItem to this manager.

inline fun MenuItemManager.styledMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: MenuItem.() -> Unit): MenuItem

Add a styled MenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.styledRadioMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null): RadioMenuItem

Add a styled RadioMenuItem to this manager.

inline fun MenuItemManager.styledRadioMenuItem(text: String? = null, graphic: Node? = null, vararg styleClass: String, id: String? = null, configuration: RadioMenuItem.() -> Unit): RadioMenuItem

Add a styled RadioMenuItem with configuration block to this manager.

Link copied to clipboard
fun MenuItemManager.styledSeparatorMenuItem(vararg styleClass: String, id: String? = null): SeparatorMenuItem

Add a styled SeparatorMenuItem to this manager.

inline fun MenuItemManager.styledSeparatorMenuItem(vararg styleClass: String, id: String? = null, configuration: SeparatorMenuItem.() -> Unit): SeparatorMenuItem

Add a styled SeparatorMenuItem with configuration block to this manager.