litesoft
Diff Revisions
475
vs
948
for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/event/client/TableEvent.java
|
@@ -18,13 +18,11 @@ |
18 |
18 |
|
/** |
19 |
19 |
|
* Handler interface for all Table events. |
20 |
20 |
|
*/ |
21 |
|
- |
public interface TableEvent |
22 |
|
- |
{ |
|
21 |
+ |
public interface TableEvent { |
23 |
22 |
|
/** |
24 |
23 |
|
* Information about the cell that is being highlighted. |
25 |
24 |
|
*/ |
26 |
|
- |
public static class Cell |
27 |
|
- |
{ |
|
25 |
+ |
public static class Cell { |
28 |
26 |
|
private int cellIndex; |
29 |
27 |
|
private int rowIndex; |
30 |
28 |
|
|
|
@@ -34,8 +32,7 @@ |
34 |
32 |
|
* @param rowIndex the index of the highlighted row |
35 |
33 |
|
* @param cellIndex the index of the highlighted cell |
36 |
34 |
|
*/ |
37 |
|
- |
public Cell( int rowIndex, int cellIndex ) |
38 |
|
- |
{ |
|
35 |
+ |
public Cell( int rowIndex, int cellIndex ) { |
39 |
36 |
|
this.cellIndex = cellIndex; |
40 |
37 |
|
this.rowIndex = rowIndex; |
41 |
38 |
|
} |
|
@@ -43,16 +40,14 @@ |
43 |
40 |
|
/** |
44 |
41 |
|
* @return the cell index |
45 |
42 |
|
*/ |
46 |
|
- |
public int getCellIndex() |
47 |
|
- |
{ |
|
43 |
+ |
public int getCellIndex() { |
48 |
44 |
|
return cellIndex; |
49 |
45 |
|
} |
50 |
46 |
|
|
51 |
47 |
|
/** |
52 |
48 |
|
* @return the row index |
53 |
49 |
|
*/ |
54 |
|
- |
public int getRowIndex() |
55 |
|
- |
{ |
|
50 |
+ |
public int getRowIndex() { |
56 |
51 |
|
return rowIndex; |
57 |
52 |
|
} |
58 |
53 |
|
} |
|
@@ -60,8 +55,7 @@ |
60 |
55 |
|
/** |
61 |
56 |
|
* Information about the row that is being highlighted. |
62 |
57 |
|
*/ |
63 |
|
- |
public static class Row implements Comparable<Row> |
64 |
|
- |
{ |
|
58 |
+ |
public static class Row implements Comparable<Row> { |
65 |
59 |
|
private int rowIndex; |
66 |
60 |
|
|
67 |
61 |
|
/** |
|
@@ -69,28 +63,21 @@ |
69 |
63 |
|
* |
70 |
64 |
|
* @param rowIndex the index of the highlighted row |
71 |
65 |
|
*/ |
72 |
|
- |
public Row( int rowIndex ) |
73 |
|
- |
{ |
|
66 |
+ |
public Row( int rowIndex ) { |
74 |
67 |
|
this.rowIndex = rowIndex; |
75 |
68 |
|
} |
76 |
69 |
|
|
77 |
|
- |
public int compareTo( Row o ) |
78 |
|
- |
{ |
79 |
|
- |
if ( o == null ) |
80 |
|
- |
{ |
|
70 |
+ |
public int compareTo( Row o ) { |
|
71 |
+ |
if ( o == null ) { |
81 |
72 |
|
return 1; |
82 |
|
- |
} |
83 |
|
- |
else |
84 |
|
- |
{ |
|
73 |
+ |
} else { |
85 |
74 |
|
return rowIndex - o.getRowIndex(); |
86 |
75 |
|
} |
87 |
76 |
|
} |
88 |
77 |
|
|
89 |
78 |
|
@Override |
90 |
|
- |
public boolean equals( Object o ) |
91 |
|
- |
{ |
92 |
|
- |
if ( o instanceof Row ) |
93 |
|
- |
{ |
|
79 |
+ |
public boolean equals( Object o ) { |
|
80 |
+ |
if ( o instanceof Row ) { |
94 |
81 |
|
return compareTo( (Row) o ) == 0; |
95 |
82 |
|
} |
96 |
83 |
|
return false; |
|
@@ -99,8 +86,7 @@ |
99 |
86 |
|
/** |
100 |
87 |
|
* @return the row index |
101 |
88 |
|
*/ |
102 |
|
- |
public int getRowIndex() |
103 |
|
- |
{ |
|
89 |
+ |
public int getRowIndex() { |
104 |
90 |
|
return rowIndex; |
105 |
91 |
|
} |
106 |
92 |
|
} |