Module MaterialFX

Class MFXContextMenuItemSkin

java.lang.Object
javafx.scene.control.SkinBase<MFXContextMenuItem>
io.github.palexdev.materialfx.skins.MFXContextMenuItemSkin
All Implemented Interfaces:
Skin<MFXContextMenuItem>

public class MFXContextMenuItemSkin extends SkinBase<MFXContextMenuItem>
Skin associated with every MFXContextMenuItem by default.

This skin is composed of a top container, which is a HBox, a MFXIconWrapper to contain the icon and two labels to show the item's text and the accelerator.
  • Constructor Details

  • Method Details

    • computeMinWidth

      protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMinWidth in class SkinBase<MFXContextMenuItem>