public class ContextMenuSkin extends Object implements Skin<ContextMenu>
PopupControlSkin.
Region/css based skin implementation for PopupMenu is the PopupMenuContent
class.
| Constructor and Description |
|---|
ContextMenuSkin(ContextMenu popupMenu) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Called by a Skinnable when the Skin is replaced on the Skinnable.
|
Node |
getNode()
Gets the Node which represents this Skin.
|
ContextMenu |
getSkinnable()
Gets the Skinnable to which this Skin is assigned.
|
public ContextMenuSkin(ContextMenu popupMenu)
public ContextMenu getSkinnable()
SkinSkin.dispose().
The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.
getSkinnable in interface Skin<ContextMenu>public Node getNode()
SkinSkin.dispose(), and must never change except when
changing to null.getNode in interface Skin<ContextMenu>public void dispose()
SkinSkin.getSkinnable() and Skin.getNode()
should return null following a call to dispose. Calling dispose twice
has no effect.dispose in interface Skin<ContextMenu>Copyright © 2025. All rights reserved.