01: package org.wings;
02:
03: import java.io.Serializable;
04:
05: /**
06: * A <b>virtual mouse</b> point. In Swing the {@link java.awt.Point} class denotes a
07: * mouse coordinate. In web applications we cannot determine the mouse click coordinates
08: * but the targeted virtual coordinate. Hence the content of this point is dependend
09: * on the concrete usage context.
10: *
11: * @see STable#rowAtPoint(SPoint)
12: * @see STable#columnAtPoint(SPoint)
13: * @see org.wings.STree#rowAtPoint(SPoint)
14: *
15: * @author hengels
16: * @author Benjamin Schmid <B.Schmid@exxcellent.de>
17: */
18: public class SPoint implements Serializable {
19: private String coordinates;
20:
21: public SPoint(String coordinates) {
22: this .coordinates = coordinates;
23: }
24:
25: /**
26: * The 'conceptual' coordinates. Content depends on source component. Look in source component for conversion methods.
27: * @return The 'conceptual' coordinates
28: */
29: String getCoordinates() {
30: return coordinates;
31: }
32:
33: /**
34: * The 'conceptual' coordinates. Content depends on source component. Look in source component for conversion methods.
35: * @param coordinates 'conceptual' coordinates
36: */
37: void setCoordinates(String coordinates) {
38: this .coordinates = coordinates;
39: }
40:
41: public String toString() {
42: return coordinates;
43: }
44: }
|