All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.controls.Menu Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.controls;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * The Menu interface is the Nifty control API view of a Menu control.
 *
 * @param 
 * @author void
 */
public interface Menu extends NiftyControl {

  /**
   * Add a menu item to this Menu.
   *
   * @param menuText the text to display
   * @param item     the item
   */
  void addMenuItem(@Nonnull String menuText, @Nonnull T item);

  /**
   * Add a menu item to this Menu.
   *
   * @param menuText the text to display
   * @param menuIcon the icon (image) to display
   * @param item     the item
   */
  void addMenuItem(@Nonnull String menuText, @Nullable String menuIcon, @Nonnull T item);

  /**
   * Add a separator.
   */
  void addMenuItemSeparator();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy