public class ContextMenuSkin extends java.lang.Object implements Skin<ContextMenu>
PopupControlSkin.
Region/css based skin implementation for PopupMenu is the PopupMenuContent
class.
| Modifier and Type | Field and Description |
|---|---|
private EventHandler<KeyEvent> |
keyListener |
private ContextMenu |
popupMenu |
private Region |
root |
private TwoLevelFocusPopupBehavior |
tlFocus |
| 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.
|
private ContextMenu popupMenu
private final Region root
private TwoLevelFocusPopupBehavior tlFocus
private final EventHandler<KeyEvent> keyListener
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>