Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -45,6 +45,7 @@
45 45 mRenderHelperX = new Gwt1dContainerRenderHelperX( this, pContainmentApproachX,
46 46 RenderContainerChildrenPolicy.Propogate )
47 47 {
48 + @Override
48 49 protected Object[] getChildObjects()
49 50 {
50 51 return getChildren();
  @@ -53,6 +54,7 @@
53 54 mRenderHelperY = new Gwt1dContainerRenderHelperY( this, pContainmentApproachY,
54 55 RenderContainerChildrenPolicy.Propogate )
55 56 {
57 + @Override
56 58 protected Object[] getChildObjects()
57 59 {
58 60 return getChildren();
  @@ -86,11 +88,13 @@
86 88 return (zWidget == null) ? NO_WIDGETS : new Widget[]{zWidget};
87 89 }
88 90
91 + @Override
89 92 protected Element getStyleElement()
90 93 {
91 94 return mStyleElement;
92 95 }
93 96
97 + @Override
94 98 protected Element getContainerElement()
95 99 {
96 100 return mContainerElement;
  @@ -104,6 +108,7 @@
104 108 *
105 109 * @see Widget#onAttach()
106 110 */
111 + @Override
107 112 public void onAttach()
108 113 {
109 114 super.onAttach();
  @@ -118,6 +123,7 @@
118 123 *
119 124 * @see Widget#onDetach()
120 125 */
126 + @Override
121 127 public void onDetach()
122 128 {
123 129 super.onDetach();
  @@ -130,6 +136,7 @@
130 136 * @param pVisible <code>true</code> to show the object, <code>false</code>
131 137 * to hide it
132 138 */
139 + @Override
133 140 public void setVisible( boolean pVisible )
134 141 {
135 142 if ( isVisible() != pVisible )
  @@ -148,6 +155,7 @@
148 155 *
149 156 * @param pWidth the Widget's new width, in CSS px (e.g. "10")
150 157 */
158 + @Override
151 159 public void setWidth( String pWidth )
152 160 {
153 161 Parse.andSetSize( getRenderHelperX(), pWidth );
  @@ -163,6 +171,7 @@
163 171 *
164 172 * @param pWidth the Widget's new width, in CSS px (e.g. "10")
165 173 */
174 + @Override
166 175 public void LLsetWidgetWidth( int pWidth )
167 176 {
168 177 Size.set( this, GwtElementDimensionHelperX.INSTANCE, getContainerElement(), pWidth, getDecorationSizeX() );
  @@ -172,6 +181,7 @@
172 181 * Remove the Widget's width, after this call subsequent calls to "getOffsetWidth()" will "eventually" return the
173 182 * "natural" width of the Widget!
174 183 */
184 + @Override
175 185 public void clearWidth()
176 186 {
177 187 Size.clear( this, GwtElementDimensionHelperX.INSTANCE, getContainerElement() );
  @@ -186,6 +196,7 @@
186 196 *
187 197 * @param pHeight the Widget's new height, in CSS px (e.g. "10")
188 198 */
199 + @Override
189 200 public void setHeight( String pHeight )
190 201 {
191 202 Parse.andSetSize( getRenderHelperY(), pHeight );
  @@ -201,6 +212,7 @@
201 212 *
202 213 * @param pHeight the Widget's new height, in CSS px (e.g. "10")
203 214 */
215 + @Override
204 216 public void LLsetWidgetHeight( int pHeight )
205 217 {
206 218 Size.set( this, GwtElementDimensionHelperY.INSTANCE, getContainerElement(), pHeight, getDecorationSizeY() );
  @@ -210,21 +222,25 @@
210 222 * Remove the Widget's height, after this call subsequent calls to "getOffsetHeight()" will "eventually" return the
211 223 * "natural" height of the Widget!
212 224 */
225 + @Override
213 226 public void clearHeight()
214 227 {
215 228 Size.clear( this, GwtElementDimensionHelperY.INSTANCE, getContainerElement() );
216 229 }
217 230
231 + @Override
218 232 public void renderingParticipationChanged()
219 233 {
220 234 RenderingParticipationChangedHelper.participationChanged( this, getWidget() );
221 235 }
222 236
237 + @Override
223 238 public RenderHelper getRenderHelperX()
224 239 {
225 240 return mRenderHelperX;
226 241 }
227 242
243 + @Override
228 244 public RenderHelper getRenderHelperY()
229 245 {
230 246 return mRenderHelperY;
  @@ -235,6 +251,7 @@
235 251 * <p/>
236 252 * Note: this will NOT be called until the Container is reporting proper sizes!
237 253 */
254 + @Override
238 255 public int getDecorationSizeX()
239 256 {
240 257 return DecorationSize.calculate( this, GwtElementDimensionHelperX.INSTANCE, //
  @@ -246,12 +263,14 @@
246 263 * <p/>
247 264 * Note: this will NOT be called until the Container is reporting proper sizes!
248 265 */
266 + @Override
249 267 public int getDecorationSizeY()
250 268 {
251 269 return DecorationSize.calculate( this, GwtElementDimensionHelperY.INSTANCE, //
252 270 getElement(), getContainerElement() );
253 271 }
254 272
273 + @Override
255 274 public void relayout()
256 275 {
257 276 getRenderHelperX().layout();