Class SeparatorMenuItem

All Implemented Interfaces:
Styleable, EventTarget

public class SeparatorMenuItem extends CustomMenuItem

A MenuItem that as the name suggests allows for a horizontal Separator to be embedded within it, by assigning a Separator to the content property of the CustomMenuItem This is provided for convenience as groups of menuitems can be separated by a separator. Instead of a creating a CustomMenuItem for this purpose, the user can use this class as indicated below.


SeparatorMenuItem separatorMenuItem = new SeparatorMenuItem();
Since:
JavaFX 2.0
See Also:
  • Constructor Details

    • SeparatorMenuItem

      public SeparatorMenuItem()
      Creates a default SeparatorMenuItem instance.