Subversion Repository Public Repository

litesoft

Diff Revisions 2 vs 23 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/AbstractSizeableTwoDimensionalPanel.java

Diff revisions: vs.
  @@ -28,6 +28,7 @@
28 28 setElement( tableElem ); // todo: ...
29 29 }
30 30
31 + @Override
31 32 public boolean anyChildren()
32 33 {
33 34 return (mChildren.size() != 0);
  @@ -38,6 +39,7 @@
38 39 /**
39 40 * Removes all child widgets.
40 41 */
42 + @Override
41 43 public void clear()
42 44 {
43 45 if ( anyChildren() )
  @@ -50,6 +52,8 @@
50 52 * Gets an iterator for the contained widgets. This iterator is required to
51 53 * implement {@link Iterator#remove()}.
52 54 */
55 + @SuppressWarnings({"unchecked"})
56 + @Override
53 57 public Iterator iterator()
54 58 {
55 59 return mChildren.iterator();
  @@ -63,6 +67,7 @@
63 67 * @throws UnsupportedOperationException if this method is not supported (most
64 68 * often this means that a specific overload must be called)
65 69 */
70 + @Override
66 71 public void add( Widget pWidget )
67 72 {
68 73 // todo: ...
  @@ -75,6 +80,7 @@
75 80 *
76 81 * @return <code>true</code> if the widget was present
77 82 */
83 + @Override
78 84 public boolean remove( Widget pWidget )
79 85 {
80 86 // Make sure this panel actually contains the child widget.
  @@ -92,21 +98,25 @@
92 98
93 99 // vvvvvvvvvvv IndexedPanel
94 100
101 + @Override
95 102 public Widget getWidget( int pIndex )
96 103 {
97 104 return null; // todo: getChildren().get( pIndex );
98 105 }
99 106
107 + @Override
100 108 public int getWidgetCount()
101 109 {
102 110 return 0; // todo: getChildren().size();
103 111 }
104 112
113 + @Override
105 114 public int getWidgetIndex( Widget pChild )
106 115 {
107 116 return 0; // todo: getChildren().indexOf( pChild );
108 117 }
109 118
119 + @Override
110 120 public boolean remove( int pIndex )
111 121 {
112 122 return remove( getWidget( pIndex ) );
  @@ -275,6 +285,7 @@
275 285 return (out == null ? null : out);
276 286 }-*/;
277 287
288 + @Override
278 289 protected final Element adopt( Widget w, Element container )
279 290 {
280 291 throw new IllegalStateException( "Inappropriate use of raw adopt( Widget w, Element container )" );
  @@ -299,6 +310,7 @@
299 310 *
300 311 * @param pWidget !null
301 312 */
313 + @Override
302 314 protected Element disown( Widget pWidget )
303 315 {
304 316 int index = mChildren.indexOf( pWidget );