Example #1
0
 /**
  * Constructs a new SJMenu.
  *
  * <p>|---------|---------| | labelID | itemID | |---------| itemID | | itemID | menuID->| itemID
  * | |---------|
  *
  * @param name the name of the menu. This is the text of the menu label.
  * @param labelID This is the ID of the menu button (ie, what is shown by default before anything
  *     is clicked).
  * @param menuID This is the ID of the list of items that shows when you click the menu button.
  * @param itemID This is the ID of the items themselves.
  */
 public SJMenu(String name, String labelID, String menuID, String itemID) {
   super(name);
   setWidgetID(labelID);
   popupMenu = new SJPopupMenu(menuID);
   popupMenu.setInvoker(this);
   this.itemID = itemID;
   delegate = new SJMenuPaintingDelegate(this);
   setIcon(buildIcon());
 }