IlvObject | +--IlvPopupMenuFactory
This class manages the pop-up menu communication between a thin client and the servlet.
The pop-up menu trigger event is the right-click.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
asyncDisplayPopupMenu(data)
Second part of the displayPopupMenu method.
|
|
create(data)
Creates the pop-up menu by decoding the data sent by the servlet.
|
|
displayPopupMenu(view, event, modelId)
Sends a request to display a pop-up menu in a thin client.
|
|
Returns the string used as the request type when the thin client requests
a pop-up menu from the servlet.
|
|
onload(context)
Stores/retrieves IlvPopupMenuFactory instances in a static variable, and
manages the onload event.
|
|
readAction(item, array)
Override this method to handle more action types.
|
|
readMenu(array, path)
Decodes the array to create a IlvMenu.
|
|
readMenuItem(array)
Decodes the array to create a IlvMenuItem.
|
|
setRequestType(requestType)
Sets the string used as the request type when the thin client requests
a pop-up menu from the servlet.
|
dispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
The servlet response to the thin client request is in HTML format. If
the response contains JavaScript variables, these can be accessed via
data.variableName
.
For example, if the servlet response is something like:
<html> <body> <script> myString = "hello world"; </script> </body> </html>then the variable
myString
can be retrieved via data.myString
.
This method should not be called directly as its implementation is
synchronous and does not display any menu. You should always call
displayPopupMenu
instead of this method
to display a pop-up menu.
This method only creates the pop-up menu by decoding the servlet response in HTML format.
This method returns immediately.
It returns true
if the event is not a pop-up menu trigger event;
otherwise, it returnsfalse
.
It performs the following tasks asynchronously:
The request type is sent to the server so that the servlet knows the kind of content it should send back to the client. This request type is used each time a pop-up menu is requested.
The default value is popupmenurequested
.
The default value is popupmenurequested
.