root node.
ContextMenu
| Modifier and Type | Field and Description |
|---|---|
| private final EventHandler | |
| private ContextMenu | |
| private double | |
| private double | |
| private final Region | |
| private double | |
| private double | |
| private TwoLevelFocusPopupBehavior |
| Access | Constructor and Description |
|---|---|
| public | ContextMenuSkin(final ContextMenu
The control that this skin should be installed onto. control)Creates a new ContextMenuSkin instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| public Node | |
| public ContextMenu | getSkinnable()
Implements javafx. Gets the Skinnable to which this Skin is assigned. |
| private void |
| keyListener | back to summary |
|---|---|
| private final EventHandler<KeyEvent> keyListener | |
| popupMenu | back to summary |
|---|---|
| private ContextMenu popupMenu | |
| prefHeight | back to summary |
|---|---|
| private double prefHeight | |
| prefWidth | back to summary |
|---|---|
| private double prefWidth | |
| root | back to summary |
|---|---|
| private final Region root | |
| shiftX | back to summary |
|---|---|
| private double shiftX | |
| shiftY | back to summary |
|---|---|
| private double shiftY | |
| tlFocus | back to summary |
|---|---|
| private TwoLevelFocusPopupBehavior tlFocus | |
| ContextMenuSkin | back to summary |
|---|---|
| public ContextMenuSkin(final ContextMenu control) Creates a new ContextMenuSkin instance.
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| getNode | back to summary |
|---|---|
| public Node getNode() Implements javafx. Doc from javafx. Gets the Node which represents this Skin. This must never be null, except
after a call to
| |
| getSkinnable | back to summary |
|---|---|
| public ContextMenu getSkinnable() Implements javafx. Doc from javafx. Gets the Skinnable to which this Skin is assigned. A Skin must be created
for one and only one Skinnable. This value will only ever go from a
non-null to null value when the Skin is removed from the Skinnable, and
only as a consequence of a call to The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.
| |
| performPopupShifts | back to summary |
|---|---|
| private void performPopupShifts() | |