litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/HeightStretchableAdjustor.java
|
@@ -5,20 +5,17 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.user.client.ui.*; |
7 |
7 |
|
|
8 |
|
- |
public class HeightStretchableAdjustor implements StretchabilityAdjustor |
9 |
|
- |
{ |
|
8 |
+ |
public class HeightStretchableAdjustor implements StretchabilityAdjustor { |
10 |
9 |
|
public static final StretchabilityAdjustor INSTANCE = new HeightStretchableAdjustor(); |
11 |
10 |
|
|
12 |
11 |
|
@Override |
13 |
|
- |
public Widget adjustStretchability( Widget pWidget ) |
14 |
|
- |
{ |
|
12 |
+ |
public Widget adjustStretchability( Widget pWidget ) { |
15 |
13 |
|
return isStretchable( pWidget ) ? // |
16 |
14 |
|
pWidget : // |
17 |
15 |
|
new SizeableSimplePanel( true, pWidget ).stretchableVertically(); |
18 |
16 |
|
} |
19 |
17 |
|
|
20 |
|
- |
public static boolean isStretchable( Widget pWidget ) |
21 |
|
- |
{ |
|
18 |
+ |
public static boolean isStretchable( Widget pWidget ) { |
22 |
19 |
|
return (pWidget instanceof ISizeableWidget) && ((ISizeableWidget) pWidget).getHeightHelper().isStretchable(); |
23 |
20 |
|
} |
24 |
21 |
|
} |