Subversion Repository Public Repository

litesoft

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

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