Top Description Inners Fields Constructors Methods
com.sun.javafx.scene.control

public Class EmbeddedTextContextMenuContent

extends StackPane
Class Inheritance
Imports
java.util.Map, com.sun.javafx.scene.control.skin.*, javafx.beans.InvalidationListener, .Observable, javafx.collections.ListChangeListener, javafx.event.ActionEvent, .Event, javafx.geometry.HPos, .VPos, javafx.scene.control.*, javafx.scene.control.skin.TextAreaSkin, .TextFieldSkin, javafx.scene.layout.HBox, .StackPane

The embedded context menu for a text input control. The menu will be displayed horizontally underneath the cursor with the available text editing options i.e. cut, copy, paste, select all.

Nested and Inner Type Summary

Modifier and TypeClass and Description

Field Summary

Modifier and TypeField and Description
private ContextMenu
private StackPane

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected double
computePrefHeight(double width)

Overrides javafx.scene.layout.StackPane.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy.

protected double
computePrefWidth(double height)

Overrides javafx.scene.layout.StackPane.computePrefWidth.

Computes the preferred width of this region for the given height.

private void
protected void
layoutChildren()

Overrides javafx.scene.layout.StackPane.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

private void
Inherited from javafx.scene.layout.StackPane:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthgetAlignmentgetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMarginrequestLayoutsetAlignmentsetAlignmentsetMargin

Field Detail

contextMenuback to summary
private ContextMenu contextMenu
pointerback to summary
private StackPane pointer

Constructor Detail

EmbeddedTextContextMenuContentback to summary
public EmbeddedTextContextMenuContent(final ContextMenu popupMenu)

Method Detail

computePrefHeightback to summary
protected double computePrefHeight(double width)

Overrides javafx.scene.layout.StackPane.computePrefHeight.

Doc from javafx.scene.layout.Region.computePrefHeight.

Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.

Annotations
@Override
computePrefWidthback to summary
protected double computePrefWidth(double height)

Overrides javafx.scene.layout.StackPane.computePrefWidth.

Doc from javafx.scene.layout.Region.computePrefWidth.

Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.

Annotations
@Override
hideAllMenusback to summary
private void hideAllMenus(MenuItem item)
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.layout.StackPane.layoutChildren.

Doc from javafx.scene.Parent.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override
updateMenuItemContainerback to summary
private void updateMenuItemContainer()