|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.sree.EventHandler
public class EventHandler
Client-side event handler stores the event to command mapping. It is searched on the client when an event is generated. If a command is found, it is executed on the client, and the event is not passed to the server. Otherwise, the event is passed back to the server to be handled by the replet event handler.
| Nested Class Summary | |
|---|---|
static class |
EventHandler.EventAction
Event to action mapping object. |
| Constructor Summary | |
|---|---|
EventHandler()
Create an empty handler. |
|
EventHandler(EventHandler base)
Create an event handler with a base handler. |
|
| Method Summary | |
|---|---|
protected void |
addElement(EventHandler.EventAction ea,
int idx)
Add an event to action mapping object to the handler. |
void |
addFormLink(String name,
String replet)
Add a request event to replet link. |
void |
addMouseClickCommand(String eid,
Point item,
RepletCommand cmd)
Add a mouse click event to action mapping. |
void |
addMouseEntryCommand(int eventid,
Object src,
Point item,
RepletCommand cmd)
Add a mouse entry event to action mapping. |
void |
addMousePopupTriggerCommand(String eid,
Point item,
RepletCommand cmd)
Add a menu popup trigger event to action mapping. |
void |
addRepletMenuCommand(String eid,
Point item,
String menuitem,
RepletCommand cmd)
Add a menu event to action mapping. |
void |
addRepletMenuCommand(String menuitem,
RepletCommand cmd)
Add a menu event to action mapping. |
void |
addSelectionCommand(String eid,
Object item,
RepletCommand cmd)
Add a selection event to action mapping. |
int |
getActionCount()
Get the count of all event to action mapping objects. |
RepletCommand |
getCommand(EventObject e)
Get the command associated with the event. |
Enumeration |
getEventActions()
Get all event to action mapping objects. |
ActionListener |
getEventListener()
Get the event action listener. |
Point |
getEventLocation(EventObject event)
Get the event location (col, row). |
int |
getEventMask()
Return the bitwise OR of all event masks this handler handles. |
void |
removeAll()
Remove all event handlers. |
void |
setEventListener(ActionListener l)
Set the event action listener to replet. |
String |
toString()
Get the string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventHandler()
public EventHandler(EventHandler base)
| Method Detail |
|---|
public RepletCommand getCommand(EventObject e)
e - replet event.
public int getActionCount()
public Enumeration getEventActions()
public Point getEventLocation(EventObject event)
public void removeAll()
public final int getEventMask()
public void addRepletMenuCommand(String menuitem,
RepletCommand cmd)
menuitem - menu item.cmd - associated command.
public void addRepletMenuCommand(String eid,
Point item,
String menuitem,
RepletCommand cmd)
eid - element ID.item - element item, null to ignore.menuitem - menu item.cmd - associated command.
public void addFormLink(String name,
String replet)
name - name of the request.replet - the name of the replet to show.
public void addSelectionCommand(String eid,
Object item,
RepletCommand cmd)
eid - element ID.item - element item, null to ignore.cmd - associated command.
public void addMouseEntryCommand(int eventid,
Object src,
Point item,
RepletCommand cmd)
eventid - the event id, entered or exited.src - element ID, String or ReportElement.item - element item, null to ignore.cmd - associated command.
public void addMouseClickCommand(String eid,
Point item,
RepletCommand cmd)
eid - element ID.item - element item, null to ignore.cmd - associated command.
public void addMousePopupTriggerCommand(String eid,
Point item,
RepletCommand cmd)
eid - element ID.item - element item, null to ignore.cmd - associated command.
protected void addElement(EventHandler.EventAction ea,
int idx)
public String toString()
toString in class Objectpublic void setEventListener(ActionListener l)
public ActionListener getEventListener()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||