litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/GwtRenderParticipatingAdapter.java
|
@@ -1,28 +1,28 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.render.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.user.client.ui.*; |
7 |
|
- |
|
8 |
|
- |
public class GwtRenderParticipatingAdapter implements RenderParticipatingAdapter { |
9 |
|
- |
public static final RenderParticipatingAdapter INSTANCE = new GwtRenderParticipatingAdapter(); |
10 |
|
- |
|
11 |
|
- |
private GwtRenderParticipatingAdapter() { |
12 |
|
- |
} |
13 |
|
- |
|
14 |
|
- |
@Override |
15 |
|
- |
public boolean isParticipatingInRendering( Object pRectangularRenderableObject ) { |
16 |
|
- |
Widget zWidget = (Widget) pRectangularRenderableObject; |
17 |
|
- |
if ( !zWidget.isAttached() ) { |
18 |
|
- |
return false; |
19 |
|
- |
} |
20 |
|
- |
do { |
21 |
|
- |
if ( !zWidget.isVisible() ) { |
22 |
|
- |
return false; |
23 |
|
- |
} |
24 |
|
- |
} |
25 |
|
- |
while ( null != (zWidget = zWidget.getParent()) ); |
26 |
|
- |
return true; |
27 |
|
- |
} |
28 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.render.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.user.client.ui.*; |
|
7 |
+ |
|
|
8 |
+ |
public class GwtRenderParticipatingAdapter implements RenderParticipatingAdapter { |
|
9 |
+ |
public static final RenderParticipatingAdapter INSTANCE = new GwtRenderParticipatingAdapter(); |
|
10 |
+ |
|
|
11 |
+ |
private GwtRenderParticipatingAdapter() { |
|
12 |
+ |
} |
|
13 |
+ |
|
|
14 |
+ |
@Override |
|
15 |
+ |
public boolean isParticipatingInRendering( Object pRectangularRenderableObject ) { |
|
16 |
+ |
Widget zWidget = (Widget) pRectangularRenderableObject; |
|
17 |
+ |
if ( !zWidget.isAttached() ) { |
|
18 |
+ |
return false; |
|
19 |
+ |
} |
|
20 |
+ |
do { |
|
21 |
+ |
if ( !zWidget.isVisible() ) { |
|
22 |
+ |
return false; |
|
23 |
+ |
} |
|
24 |
+ |
} |
|
25 |
+ |
while ( null != (zWidget = zWidget.getParent()) ); |
|
26 |
+ |
return true; |
|
27 |
+ |
} |
|
28 |
+ |
} |