Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/AbstractSizeableVerticalPanel.java

Diff revisions: vs.
  @@ -3,31 +3,25 @@
3 3
4 4 import com.google.gwt.user.client.*;
5 5
6 - public class AbstractSizeableVerticalPanel extends AbstractSizeableOneDimensionalPanel
7 - {
6 + public class AbstractSizeableVerticalPanel extends AbstractSizeableOneDimensionalPanel {
8 7 @Override
9 - protected Element unwrap( Element pTD )
10 - {
8 + protected Element unwrap( Element pTD ) {
11 9 return DOM.getParent( pTD ); // TR
12 10 }
13 11
14 12 @Override
15 - protected Element wrap( Element pTD )
16 - {
13 + protected Element wrap( Element pTD ) {
17 14 return addParent( DOM.createTR(), pTD );
18 15 }
19 16
20 17 //****** Implementation Code Block to support delegation to AbsoluteSizeHelper
21 18
22 19 @Override
23 - public void setWidth( String width )
24 - {
25 - if ( (mMinimumWidth == null) && anyChildren() )
26 - {
20 + public void setWidth( String width ) {
21 + if ( (mMinimumWidth == null) && anyChildren() ) {
27 22 Element elem = DOM.getParent( getContainerElement() );
28 23 int currentWidth = DOM.getElementPropertyInt( elem, "offsetWidth" );
29 - if ( currentWidth > 0 )
30 - {
24 + if ( currentWidth > 0 ) {
31 25 getHelper().setDimensionOnChildren( this, getWidthHelper(), currentWidth );
32 26 mMinimumWidth = currentWidth;
33 27 }
  @@ -38,32 +32,24 @@
38 32 private Integer mMinimumWidth = null;
39 33
40 34 @Override
41 - public void setHeight( String height )
42 - {
35 + public void setHeight( String height ) {
43 36 super.setHeight( height ); // for stacktrace Debugging
44 37 }
45 38
46 39 @Override
47 - protected void distributeToChildrenChangedWidth()
48 - {
49 - if ( anyChildren() )
50 - {
40 + protected void distributeToChildrenChangedWidth() {
41 + if ( anyChildren() ) {
51 42 getHelper().applyChangedDimensionToChildren( this, getWidthHelper() );
52 43 }
53 44 }
54 45
55 46 @Override
56 - protected void distributeToChildrenChangedHeight()
57 - {
58 - if ( anyChildren() )
59 - {
47 + protected void distributeToChildrenChangedHeight() {
48 + if ( anyChildren() ) {
60 49 AbstractSizeableHelper asHelper = getHelper();
61 - if ( asHelper.isOverflowHidden() )
62 - {
50 + if ( asHelper.isOverflowHidden() ) {
63 51 asHelper.distributeDimensionOnChildren( this, getHeightHelper() );
64 - }
65 - else
66 - {
52 + } else {
67 53 asHelper.setDimensionOnChildren( this, getHeightHelper(), 400 );
68 54 }
69 55 }