litesoft
Diff Revisions
49
vs
151
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/AbstractSizeableTwoDimensionalPanel.java
|
@@ -6,8 +6,7 @@ |
6 |
6 |
|
import com.google.gwt.user.client.*; |
7 |
7 |
|
import com.google.gwt.user.client.ui.*; |
8 |
8 |
|
|
9 |
|
- |
public abstract class AbstractSizeableTwoDimensionalPanel extends AbstractSizeableHasAlignmentPanel |
10 |
|
- |
implements IndexedPanel |
|
9 |
+ |
public abstract class AbstractSizeableTwoDimensionalPanel extends AbstractSizeableHasAlignmentPanel implements IndexedPanel |
11 |
10 |
|
{ |
12 |
11 |
|
/** |
13 |
12 |
|
* Table element. |
|
@@ -53,8 +52,7 @@ |
53 |
52 |
|
* Gets an iterator for the contained widgets. This iterator is required to |
54 |
53 |
|
* implement {@link Iterator#remove()}. |
55 |
54 |
|
*/ |
56 |
|
- |
@SuppressWarnings({"unchecked"}) |
57 |
|
- |
@Override |
|
55 |
+ |
@SuppressWarnings({"unchecked"}) @Override |
58 |
56 |
|
public Iterator iterator() |
59 |
57 |
|
{ |
60 |
58 |
|
return mChildren.iterator(); |
|
@@ -235,8 +233,7 @@ |
235 |
233 |
|
int cellSize = getCellCount( row ); |
236 |
234 |
|
if ( cellSize <= column ) |
237 |
235 |
|
{ |
238 |
|
- |
throw new IndexOutOfBoundsException( |
239 |
|
- |
"Column index: " + column + ", Column size: " + getCellCount( row ) ); |
|
236 |
+ |
throw new IndexOutOfBoundsException( "Column index: " + column + ", Column size: " + getCellCount( row ) ); |
240 |
237 |
|
} |
241 |
238 |
|
} |
242 |
239 |
|
|
|
@@ -282,9 +279,9 @@ |
282 |
279 |
|
* @return the element |
283 |
280 |
|
*/ |
284 |
281 |
|
private native Element getCellElement( Element table, int row, int col ) /*-{ |
285 |
|
- |
var out = table.rows[row].cells[col]; |
286 |
|
- |
return (out == null ? null : out); |
287 |
|
- |
}-*/; |
|
282 |
+ |
var out = table.rows[row].cells[col]; |
|
283 |
+ |
return (out == null ? null : out); |
|
284 |
+ |
}-*/; |
288 |
285 |
|
|
289 |
286 |
|
@Override |
290 |
287 |
|
protected final Element adopt( Widget w, Element container ) |
|
@@ -317,8 +314,7 @@ |
317 |
314 |
|
int index = mChildren.indexOf( pWidget ); |
318 |
315 |
|
if ( index == -1 ) |
319 |
316 |
|
{ |
320 |
|
- |
throw new IllegalStateException( |
321 |
|
- |
"Attempt to 'disown' widget (" + pWidget + ") not owned by: " + this ); |
|
317 |
+ |
throw new IllegalStateException( "Attempt to 'disown' widget (" + pWidget + ") not owned by: " + this ); |
322 |
318 |
|
} |
323 |
319 |
|
if ( aboutToDisown( pWidget, index ) ) |
324 |
320 |
|
{ |