Constructors
MainMenu()
Methods
addGroup(String,String)
Adds a group to the main menu (navigator) with the given label and image. By default, it appends the item to the bottom of the main menu. Use one of the other addGroup variants to specify the exact position or on-click JavaScript code.The image is specified by the URL to the actual file.
addGroup(String,String,Integer)
Adds a group to the main menu (navigator) with the given label and image in a specific position. This will shift the index of all subsequent groups. Thus, you should not make assumptions about which slot a group is in.The image is specified by the URL to the actual file.
addGroup(String,String,Integer,String)
Adds a group to the main menu (navigator) with the given label and image in a specific position. This will shift the index of all subsequent groups. Thus, you should not make assumptions about which slot a group is in. In addition, you can specify on-click JavaScript code. Use this to create clickable menu groups.The image is specified by the URL to the actual file.
addItem(String,String)
Adds an item to the SuperOffice main menu (navigator).addItem(String,String,Integer,Integer)
Adds an item to the SuperOffice main menu (navigator).addItem(String,String,Integer,Integer,String,String,String)
Adds an item to the SuperOffice main menu (navigator).addItem(String,String,Integer,Integer,String,String,String,String)
Adds an item to the SuperOffice main menu (navigator).The image is specified by the URL to the actual file.
clear()
Clears all the contents of the menu.deleteGroup(Integer)
Removes the group at the given index (starts at 0) from the main menu.Verify that you’re removing the correct group by checking with getGroupId() what’s in that slot first.
deleteItem(Integer,Integer)
Removes the item at the given index from the group.getGroupId(Integer)
Returns the label (ID) of a group in the main menu given its position.The IDs are unique strings starting at zero.