litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/client/widgets/SimpleFloatingPanel.java
|
@@ -5,26 +5,21 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.user.client.ui.*; |
7 |
7 |
|
|
8 |
|
- |
public class SimpleFloatingPanel extends SizeableFloatingPanel |
9 |
|
- |
{ |
10 |
|
- |
public SimpleFloatingPanel() |
11 |
|
- |
{ |
|
8 |
+ |
public class SimpleFloatingPanel extends SizeableFloatingPanel { |
|
9 |
+ |
public SimpleFloatingPanel() { |
12 |
10 |
|
} |
13 |
11 |
|
|
14 |
|
- |
public SimpleFloatingPanel( Widget pWidget ) |
15 |
|
- |
{ |
|
12 |
+ |
public SimpleFloatingPanel( Widget pWidget ) { |
16 |
13 |
|
setWidget( pWidget ); |
17 |
14 |
|
} |
18 |
15 |
|
|
19 |
|
- |
public SimpleFloatingPanel setTitleBar( SizeableFloatableContainerPanel pContainerPanel, String pTitle ) |
20 |
|
- |
{ |
|
16 |
+ |
public SimpleFloatingPanel setTitleBar( SizeableFloatableContainerPanel pContainerPanel, String pTitle ) { |
21 |
17 |
|
setTitleBar( createTitleBar( pTitle, this, pContainerPanel ) ); |
22 |
18 |
|
return this; |
23 |
19 |
|
} |
24 |
20 |
|
|
25 |
21 |
|
protected FloaterTitleBar createTitleBar( String pTitle, final SimpleFloatingPanel pFloater, |
26 |
|
- |
final SizeableFloatableContainerPanel pContainerPanel ) |
27 |
|
- |
{ |
|
22 |
+ |
final SizeableFloatableContainerPanel pContainerPanel ) { |
28 |
23 |
|
return new CloseableFloaterPanelTitleBar( "Floater", pTitle, null ); |
29 |
24 |
|
// todo: translate: new ClickListener() |
30 |
25 |
|
// { |
|
@@ -35,24 +30,20 @@ |
35 |
30 |
|
// } ); |
36 |
31 |
|
} |
37 |
32 |
|
|
38 |
|
- |
public void setVisible( boolean visible ) |
39 |
|
- |
{ |
|
33 |
+ |
public void setVisible( boolean visible ) { |
40 |
34 |
|
super.setVisible( visible ); |
41 |
35 |
|
chkMaximize(); |
42 |
36 |
|
} |
43 |
37 |
|
|
44 |
|
- |
protected void onAttach() |
45 |
|
- |
{ |
|
38 |
+ |
protected void onAttach() { |
46 |
39 |
|
super.onAttach(); |
47 |
40 |
|
chkMaximize(); |
48 |
41 |
|
} |
49 |
42 |
|
|
50 |
43 |
|
private boolean mMaximized = false; |
51 |
44 |
|
|
52 |
|
- |
private void chkMaximize() |
53 |
|
- |
{ |
54 |
|
- |
if ( isAttached() && isVisible() && !mMaximized ) |
55 |
|
- |
{ |
|
45 |
+ |
private void chkMaximize() { |
|
46 |
+ |
if ( isAttached() && isVisible() && !mMaximized ) { |
56 |
47 |
|
mMaximized = true; |
57 |
48 |
|
maximizeVisibility(); |
58 |
49 |
|
} |