Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -5,43 +5,36 @@
5 5
6 6 import com.google.gwt.user.client.*;
7 7
8 - public class CloseableFloaterPanelTitleBar extends FloaterTitleBar
9 - {
8 + public class CloseableFloaterPanelTitleBar extends FloaterTitleBar {
10 9 protected SimpleLabel mTitle = new SimpleLabel();
11 10
12 - public CloseableFloaterPanelTitleBar( String pForm, Command pCloseCommand )
13 - {
11 + public CloseableFloaterPanelTitleBar( String pForm, Command pCloseCommand ) {
14 12 mTitle.setStyleName( "litesoft-" + pForm + "BarCaption" );
15 13 buildTitleBar( pCloseCommand );
16 14 }
17 15
18 - public CloseableFloaterPanelTitleBar( String pForm, String pTitle, Command pCloseCommand )
19 - {
16 + public CloseableFloaterPanelTitleBar( String pForm, String pTitle, Command pCloseCommand ) {
20 17 this( pForm, pCloseCommand );
21 18 setTitleBarTitle( pTitle );
22 19 }
23 20
24 - protected void buildTitleBar( Command pCloseCommand )
25 - {
21 + protected void buildTitleBar( Command pCloseCommand ) {
26 22 add( new Spacer().width( 5 ) );
27 23 add( mTitle );
28 24 add( new Spacer().width( 5 ) );
29 25 add( new SizeableSpacer().stretchableHorizontally() );
30 - if ( pCloseCommand != null )
31 - {
26 + if ( pCloseCommand != null ) {
32 27 add( new WindowCloseButton( pCloseCommand ) );
33 28 }
34 29 }
35 30
36 31 @Override
37 - public String getTitleBarTitle()
38 - {
32 + public String getTitleBarTitle() {
39 33 return mTitle.getText();
40 34 }
41 35
42 36 @Override
43 - public void setTitleBarTitle( String pTitle )
44 - {
37 + public void setTitleBarTitle( String pTitle ) {
45 38 mTitle.setText( pTitle );
46 39 relayoutFromHereDown();
47 40 }