public class SMenu
extends java.lang.Object
Constructor and Description |
---|
SMenu(SPage parentpage,
java.lang.String label)
creates a menu for the given page and the given label
|
Modifier and Type | Method and Description |
---|---|
void |
addMenuItem(SMenuItem menuitem)
adds a menu item to the menu
|
boolean |
hide(SPageData input,
SecurityBuffer buffer)
checks if the menu should be displayed.
|
void |
writeToOLcMessage(MessageWriter writer,
SPageData input,
SecurityBuffer buffer)
writes the menu content inside a message
|
public SMenu(SPage parentpage, java.lang.String label)
parentpage
- parent pagelabel
- label in default languagepublic void addMenuItem(SMenuItem menuitem)
menuitem
- menu item to addpublic boolean hide(SPageData input, SecurityBuffer buffer)
input
- input data for the pagebuffer
- security buffer of the serverpublic void writeToOLcMessage(MessageWriter writer, SPageData input, SecurityBuffer buffer) throws java.io.IOException
writer
- writer of the messageinput
- page input databuffer
- security bufferjava.io.IOException
- if any error is encountered during the transmission