|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.wings.event.SMouseEvent
public class SMouseEvent
A 'virtual' mouse event. To convert the inner SPoint to a sensefule meaning you should use the
according converions methods like STree.rowAtPoint(org.wings.SPoint) or
STable.columnAtPoint(org.wings.SPoint) .
| Field Summary | |
|---|---|
protected SComponent |
component
|
protected boolean |
consumed
|
protected int |
id
|
protected SPoint |
point
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
SMouseEvent(SComponent component,
int id,
SPoint point)
Constructs a new mouse event |
|
| Method Summary | |
|---|---|
void |
consume()
Call of this method inhibits the further dispatching of this mouse event. |
SComponent |
getComponent()
Gets the mouse event source component |
int |
getId()
|
SPoint |
getPoint()
The object denoting where inside the source component a mouse click occured. |
boolean |
isConsumed()
Denotes if this event was already consumed. |
void |
setComponent(SComponent component)
Sets the mouse event source component. |
void |
setPoint(SPoint point)
The object denoting where inside the source component a mouse click occured. |
String |
toString()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int id
protected boolean consumed
protected SComponent component
protected SPoint point
| Constructor Detail |
|---|
public SMouseEvent(SComponent component,
int id,
SPoint point)
component - source componentid - idpoint - An SPoint. Intepretation is component dependent.| Method Detail |
|---|
public int getId()
public boolean isConsumed()
true if the mouse event was consumed an no furter event processing should occur.public void consume()
public SComponent getComponent()
public void setComponent(SComponent component)
component - The mouse event source componentpublic SPoint getPoint()
public void setPoint(SPoint point)
point - An virtual mouse click point. Intepretation is component dependent.public String toString()
toString in class EventObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||