Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -6,16 +6,14 @@
6 6
7 7 import com.google.gwt.user.client.ui.*;
8 8
9 - public class CenterHorizontalPanel extends AbstractSizeableComposite
10 - {
9 + public class CenterHorizontalPanel extends AbstractSizeableComposite {
11 10 private static final String CENTER_ID_PREFIX = "CHP_CENTER_";
12 11
13 12 private HorizontalPanel mCenterContainer = new HorizontalPanel();
14 13
15 14 private static final String STYLE_CENTER = "Center";
16 15
17 - public CenterHorizontalPanel()
18 - {
16 + public CenterHorizontalPanel() {
19 17 int zUniqueID = StaticSimpleIdSource.getNext();
20 18 HTMLPanel zPanel = new HTMLPanel( "<table width='100%' cellpadding='0' cellspacing='0'><tr>" + //
21 19 "<td align='center' valign='middle' id='" + CENTER_ID_PREFIX + zUniqueID + "'></td>" + //
  @@ -30,19 +28,16 @@
30 28 LLstretchableHorizontally();
31 29 }
32 30
33 - public CenterHorizontalPanel style( String pStyleName )
34 - {
31 + public CenterHorizontalPanel style( String pStyleName ) {
35 32 addStyleName( pStyleName );
36 33 return this;
37 34 }
38 35
39 - public HorizontalPanel getCenterContainer()
40 - {
36 + public HorizontalPanel getCenterContainer() {
41 37 return mCenterContainer;
42 38 }
43 39
44 - public CenterHorizontalPanel add( Widget pWidget )
45 - {
40 + public CenterHorizontalPanel add( Widget pWidget ) {
46 41 mCenterContainer.add( pWidget );
47 42 return this;
48 43 }