Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -11,6 +11,7 @@
11 11 {
12 12 private Widget mWidget;
13 13
14 + @Override
14 15 public boolean anyChildren()
15 16 {
16 17 return (mWidget != null);
  @@ -21,6 +22,7 @@
21 22 /**
22 23 * Removes all child widgets.
23 24 */
25 + @Override
24 26 public void clear()
25 27 {
26 28 if ( anyChildren() )
  @@ -33,12 +35,14 @@
33 35 * Gets an iterator for the contained widgets. This iterator is required to
34 36 * implement {@link Iterator#remove()}.
35 37 */
38 + @Override
36 39 public Iterator<Widget> iterator()
37 40 {
38 41 // Return a simple iterator that enumerates the 0 or 1 elements in this
39 42 // panel.
40 43 return new SingleWidgetIterator( mWidget )
41 44 {
45 + @Override
42 46 public void remove()
43 47 {
44 48 clear();
  @@ -51,6 +55,7 @@
51 55 *
52 56 * @param pWidget the child widget to be added
53 57 */
58 + @Override
54 59 public void add( Widget pWidget )
55 60 {
56 61 // Can't add() more than one widget to a SimplePanel.
  @@ -68,6 +73,7 @@
68 73 *
69 74 * @return <code>true</code> if the widget was present
70 75 */
76 + @Override
71 77 public boolean remove( Widget pWidget )
72 78 {
73 79 if ( mWidget == pWidget )
  @@ -87,6 +93,7 @@
87 93 *
88 94 * @return the child widget, or <code>null</code> if none is present
89 95 */
96 + @Override
90 97 public Widget getWidget()
91 98 {
92 99 return mWidget;
  @@ -95,6 +102,7 @@
95 102 /**
96 103 * Sets this panel's widget. Any existing child widget will be removed.
97 104 */
105 + @Override
98 106 public void setWidget( Widget pWidget )
99 107 {
100 108 // If there is already a widget attached, remove it.
  @@ -112,6 +120,7 @@
112 120
113 121 // ^^^^^^^^^^^ SingleWidgetContainer
114 122
123 + @Override
115 124 protected final Element adopt( Widget w, Element container )
116 125 {
117 126 throw new IllegalStateException( "Inappropriate use of raw adopt( Widget w, Element container )" );
  @@ -136,6 +145,7 @@
136 145 *
137 146 * @param pWidget !null
138 147 */
148 + @Override
139 149 protected Element disown( Widget pWidget )
140 150 {
141 151 if ( aboutToDisown( pWidget ) )
  @@ -201,21 +211,25 @@
201 211 {
202 212 }
203 213
214 + @Override
204 215 public void setWidth( String width )
205 216 {
206 217 super.setWidth( width ); // for stacktrace Debugging
207 218 }
208 219
220 + @Override
209 221 public void setHeight( String height )
210 222 {
211 223 super.setHeight( height ); // for stacktrace Debugging
212 224 }
213 225
226 + @Override
214 227 protected void distributeToChildrenChangedWidth()
215 228 {
216 229 getHelper().applyChangedDimensionToChild( getWidget(), getWidthHelper() );
217 230 }
218 231
232 + @Override
219 233 protected void distributeToChildrenChangedHeight()
220 234 {
221 235 getHelper().applyChangedDimensionToChild( getWidget(), getHeightHelper() );