Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/LeftHorizontalPanel.java

Diff revisions: vs.
  @@ -1,44 +1,44 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets;
3 -
4 - import org.litesoft.GWT.client.widgets.nonpublic.*;
5 - import org.litesoft.core.*;
6 -
7 - import com.google.gwt.user.client.ui.*;
8 -
9 - public class LeftHorizontalPanel extends AbstractSizeableComposite {
10 - private static final String LEFT_ID_PREFIX = "LHP_LEFT_";
11 -
12 - private HorizontalPanel mLeftContainer = new HorizontalPanel();
13 -
14 - private static final String STYLE_LEFT = "Left";
15 -
16 - public LeftHorizontalPanel() {
17 - int zUniqueID = StaticSimpleIdSource.getNext();
18 - HTMLPanel zPanel = new HTMLPanel( "<table width='100%' cellpadding='0' cellspacing='0'><tr>" + //
19 - "<td align='left' valign='middle' id='" + LEFT_ID_PREFIX + zUniqueID + "'></td>" + //
20 - "</tr></table>" );
21 -
22 - mLeftContainer.addStyleName( STYLE_LEFT );
23 -
24 - zPanel.add( mLeftContainer, LEFT_ID_PREFIX + zUniqueID );
25 -
26 - initWidget( new ConstrainingSizeableOuterLayers( zPanel, "LeftHorizontalPanel" ) );
27 -
28 - LLstretchableHorizontally();
29 - }
30 -
31 - public LeftHorizontalPanel style( String pStyleName ) {
32 - addStyleName( pStyleName );
33 - return this;
34 - }
35 -
36 - public HorizontalPanel getLeftContainer() {
37 - return mLeftContainer;
38 - }
39 -
40 - public LeftHorizontalPanel add( Widget pWidget ) {
41 - mLeftContainer.add( pWidget );
42 - return this;
43 - }
44 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets;
3 +
4 + import org.litesoft.GWT.client.widgets.nonpublic.*;
5 + import org.litesoft.core.*;
6 +
7 + import com.google.gwt.user.client.ui.*;
8 +
9 + public class LeftHorizontalPanel extends AbstractSizeableComposite {
10 + private static final String LEFT_ID_PREFIX = "LHP_LEFT_";
11 +
12 + private HorizontalPanel mLeftContainer = new HorizontalPanel();
13 +
14 + private static final String STYLE_LEFT = "Left";
15 +
16 + public LeftHorizontalPanel() {
17 + int zUniqueID = StaticSimpleIdSource.getNext();
18 + HTMLPanel zPanel = new HTMLPanel( "<table width='100%' cellpadding='0' cellspacing='0'><tr>" + //
19 + "<td align='left' valign='middle' id='" + LEFT_ID_PREFIX + zUniqueID + "'></td>" + //
20 + "</tr></table>" );
21 +
22 + mLeftContainer.addStyleName( STYLE_LEFT );
23 +
24 + zPanel.add( mLeftContainer, LEFT_ID_PREFIX + zUniqueID );
25 +
26 + initWidget( new ConstrainingSizeableOuterLayers( zPanel, "LeftHorizontalPanel" ) );
27 +
28 + LLstretchableHorizontally();
29 + }
30 +
31 + public LeftHorizontalPanel style( String pStyleName ) {
32 + addStyleName( pStyleName );
33 + return this;
34 + }
35 +
36 + public HorizontalPanel getLeftContainer() {
37 + return mLeftContainer;
38 + }
39 +
40 + public LeftHorizontalPanel add( Widget pWidget ) {
41 + mLeftContainer.add( pWidget );
42 + return this;
43 + }
44 + }