Interface ContextMenuItem


public interface ContextMenuItem
A custom context menu item.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns true if the context menu item is checked.
    default boolean
    Returns true if the context menu item is enabled.
    Returns an immutable list of the sub-items of the context menu item.
    default String
    Returns a string that represents the text of the context menu item.
    Returns the type of the context menu item.
  • Method Details

    • text

      default String text()
      Returns a string that represents the text of the context menu item.
    • isEnabled

      default boolean isEnabled()
      Returns true if the context menu item is enabled.
    • isChecked

      default boolean isChecked()
      Returns true if the context menu item is checked.
    • type

      default ContextMenuItemType type()
      Returns the type of the context menu item.
    • items

      default List<ContextMenuItem> items()
      Returns an immutable list of the sub-items of the context menu item.