litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/nonpublic/ExtendableDialogPicker.java
|
@@ -7,41 +7,33 @@ |
7 |
7 |
|
import com.google.gwt.event.dom.client.*; |
8 |
8 |
|
import com.google.gwt.user.client.ui.*; |
9 |
9 |
|
|
10 |
|
- |
public abstract class ExtendableDialogPicker extends DialogBox implements ClickHandler |
11 |
|
- |
{ |
|
10 |
+ |
public abstract class ExtendableDialogPicker extends DialogBox implements ClickHandler { |
12 |
11 |
|
private DialogButtonPanel mDialogButtonPanel; |
13 |
12 |
|
|
14 |
|
- |
protected ExtendableDialogPicker() |
15 |
|
- |
{ |
|
13 |
+ |
protected ExtendableDialogPicker() { |
16 |
14 |
|
super( true, false ); |
17 |
15 |
|
VerticalPanel panel = new VerticalPanel(); |
18 |
16 |
|
panel.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); |
19 |
17 |
|
setWidget( panel ); // actually set into the FlexTable |
20 |
18 |
|
} |
21 |
19 |
|
|
22 |
|
- |
protected final void addExtensionPanel( Widget pExtensionPanel ) |
23 |
|
- |
{ |
24 |
|
- |
if ( pExtensionPanel != null ) |
25 |
|
- |
{ |
|
20 |
+ |
protected final void addExtensionPanel( Widget pExtensionPanel ) { |
|
21 |
+ |
if ( pExtensionPanel != null ) { |
26 |
22 |
|
((VerticalPanel) getWidget()).add( pExtensionPanel ); |
27 |
23 |
|
} |
28 |
24 |
|
} |
29 |
25 |
|
|
30 |
|
- |
protected final void addDialogButtonPanel( Button... pButtons ) |
31 |
|
- |
{ |
|
26 |
+ |
protected final void addDialogButtonPanel( Button... pButtons ) { |
32 |
27 |
|
addExtensionPanel( mDialogButtonPanel = new DialogButtonPanel( this, pButtons ) ); |
33 |
28 |
|
} |
34 |
29 |
|
|
35 |
30 |
|
@Override |
36 |
|
- |
public void onClick( ClickEvent event ) |
37 |
|
- |
{ |
|
31 |
+ |
public void onClick( ClickEvent event ) { |
38 |
32 |
|
onClick( (Widget) event.getSource() ); |
39 |
33 |
|
} |
40 |
34 |
|
|
41 |
|
- |
public final void onClick( Widget sender ) |
42 |
|
- |
{ |
43 |
|
- |
if ( (mDialogButtonPanel != null) && mDialogButtonPanel.isOurButton( sender ) ) |
44 |
|
- |
{ |
|
35 |
+ |
public final void onClick( Widget sender ) { |
|
36 |
+ |
if ( (mDialogButtonPanel != null) && mDialogButtonPanel.isOurButton( sender ) ) { |
45 |
37 |
|
dialogButtonClicked( (Button) sender ); |
46 |
38 |
|
} |
47 |
39 |
|
} |
|
@@ -49,8 +41,7 @@ |
49 |
41 |
|
abstract protected void dialogButtonClicked( Button pButton ); |
50 |
42 |
|
|
51 |
43 |
|
@Override |
52 |
|
- |
public void show() |
53 |
|
- |
{ |
|
44 |
+ |
public void show() { |
54 |
45 |
|
CommonElementHelper.hide( getElement() ); |
55 |
46 |
|
super.show(); |
56 |
47 |
|
CommonElementHelper.unhide( getElement() ); |