All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
com.google.scrollview.events.SVEvent Class Reference

Public Member Functions

 SVEvent (SVEventType t, SVWindow w, int x1, int y1, int x2, int y2, String p)
 
 SVEvent (SVEventType eventtype, SVWindow svWindow, int commandid, String value)
 
String toString ()
 

Detailed Description

The SVEvent is a structure which holds the actual values of a message to be transmitted. It corresponds to the client structure defined in scrollview.h

Author
wanke.nosp@m.@goo.nosp@m.gle.c.nosp@m.om

Definition at line 21 of file SVEvent.java.

Constructor & Destructor Documentation

com.google.scrollview.events.SVEvent.SVEvent ( SVEventType  t,
SVWindow  w,
int  x1,
int  y1,
int  x2,
int  y2,
String  p 
)
inline

A "normal" SVEvent.

Parameters
tThe type of the event as specified in SVEventType (e.g. SVET_CLICK)
wThe window the event corresponds to
x1X position of the mouse at the time of the event
y1Y position of the mouse at the time of the event
x2X selection size at the time of the event
y2Y selection size at the time of the event
pA parameter associated with the event (e.g. keyboard input)

Definition at line 43 of file SVEvent.java.

44  {
45  type = t;
46  window = w;
47  x = x1;
48  y = y1;
49  xSize = x2;
50  ySize = y2;
51  commandId = 0;
52  parameter = p;
53  }
com.google.scrollview.events.SVEvent.SVEvent ( SVEventType  eventtype,
SVWindow  svWindow,
int  commandid,
String  value 
)
inline

An event which issues a command (like clicking on a item in the menubar).

Parameters
eventtypeThe type of the event as specified in SVEventType (usually SVET_MENU or SVET_POPUP)
svWindowThe window the event corresponds to
commandidThe associated id with the command (given by the client on construction of the item)
valueA parameter associated with the event (e.g. keyboard input)

Definition at line 65 of file SVEvent.java.

66  {
67  type = eventtype;
68  window = svWindow;
69 
70  parameter = value;
71  x = 0;
72  y = 0;
73  xSize = 0;
74  ySize = 0;
75  commandId = commandid;
76  }

Member Function Documentation

String com.google.scrollview.events.SVEvent.toString ( )
inline

This is the string representation of the message, which is what will actually be transferred over the network.

Definition at line 83 of file SVEvent.java.

83  {
84  return (window.hash + "," + type.ordinal() + "," + x + "," + y + ","
85  + xSize + "," + ySize + "," + commandId + "," + parameter);
86  }

The documentation for this class was generated from the following file: