SOURCECODE

How to... define a MenuSheet in a Shop


Description:
Menus are essential for users interacting with an application. To create a menu in a Salespoint you will need to redefine the method createShopMenuSheet() of your instance of Shop.

ToDo's:
  1. Create your own subclass of Shop
  2. Redefine the method createShopMenuSheet() by creating your own MenuSheet.

For more information about MenuSheets, take a look at "How to define a MenuSheet"

Uses:
Shop  MenuSheet  



SourceCode

 1
public class VideoMachine extends Shop {
    
     2
    public MenuSheet createShopMenuSheet() {
        //default MenuSheet of the Shop
        MenuSheet msMenuBar = super.createShopMenuSheet();
        return msMenuBar;
    }
}