public class SMenuItem
extends java.lang.Object
Constructor and Description |
---|
SMenuItem(SPage parentpage,
java.lang.String label,
SActionRef actionforitem)
creates a menu item
|
Modifier and Type | Method and Description |
---|---|
boolean |
hideComponent(SPageData input,
SecurityBuffer buffer)
hide the component if not authorized
|
void |
writeToOLcMessage(MessageWriter writer,
SPageData input,
SecurityBuffer buffer)
writes in a message the content of the menu item
|
public SMenuItem(SPage parentpage, java.lang.String label, SActionRef actionforitem)
parentpage
- parent pagelabel
- label to showactionforitem
- action to triggered when menu is pressedpublic boolean hideComponent(SPageData input, SecurityBuffer buffer)
input
- page data inputbuffer
- security buffer holding all users privilegespublic void writeToOLcMessage(MessageWriter writer, SPageData input, SecurityBuffer buffer) throws java.io.IOException
writer
- writer of the messageinput
- input page databuffer
- input security bufferjava.io.IOException
- if any exception is encountered during the transmission