|
@@ -10,8 +10,7 @@ |
10 |
10 |
|
|
11 |
11 |
|
import com.google.gwt.user.client.ui.*; |
12 |
12 |
|
|
13 |
|
- |
public abstract class QBEdialogView<T extends IViewObject> extends DialogView implements TableClickCommand<T> |
14 |
|
- |
{ |
|
13 |
+ |
public abstract class QBEdialogView<T extends IViewObject> extends DialogView implements TableClickCommand<T> { |
15 |
14 |
|
protected QBEscreenSupport mQBEscreenSupport = new QBEscreenSupport(); |
16 |
15 |
|
|
17 |
16 |
|
protected QBE_FormEngine mFE; |
|
@@ -19,8 +18,7 @@ |
19 |
18 |
|
protected VoDataProvider<T> mDataProvider; |
20 |
19 |
|
protected FormBinder<T> mFormBinder; |
21 |
20 |
|
|
22 |
|
- |
public QBEdialogView( CO pCO, Opaqueness pOpaqueness, VoDataProvider<T> pDataProvider ) |
23 |
|
- |
{ |
|
21 |
+ |
public QBEdialogView( CO pCO, Opaqueness pOpaqueness, VoDataProvider<T> pDataProvider ) { |
24 |
22 |
|
super( pCO, pOpaqueness ); |
25 |
23 |
|
|
26 |
24 |
|
Objects.assertNotNull( "DataProvider", mDataProvider = pDataProvider ); |
|
@@ -28,25 +26,21 @@ |
28 |
26 |
|
super.add( mQBEscreenSupport ); |
29 |
27 |
|
} |
30 |
28 |
|
|
31 |
|
- |
protected SizeableVerticalPanel getQBEleft() |
32 |
|
- |
{ |
|
29 |
+ |
protected SizeableVerticalPanel getQBEleft() { |
33 |
30 |
|
return mQBEscreenSupport.getQBEleft(); |
34 |
31 |
|
} |
35 |
32 |
|
|
36 |
|
- |
protected SizeableQBEboxedPanel getQBEboxedPanel() |
37 |
|
- |
{ |
|
33 |
+ |
protected SizeableQBEboxedPanel getQBEboxedPanel() { |
38 |
34 |
|
return mQBEscreenSupport.getQBEboxedPanel(); |
39 |
35 |
|
} |
40 |
36 |
|
|
41 |
37 |
|
@Override |
42 |
|
- |
protected void add( Widget pWidget ) |
43 |
|
- |
{ |
|
38 |
+ |
protected void add( Widget pWidget ) { |
44 |
39 |
|
getQBEleft().add( pWidget ); |
45 |
40 |
|
} |
46 |
41 |
|
|
47 |
42 |
|
@Override |
48 |
|
- |
public void aboutToShow() |
49 |
|
- |
{ |
|
43 |
+ |
public void aboutToShow() { |
50 |
44 |
|
super.aboutToShow(); |
51 |
45 |
|
getActualDialog().setMinimumMargin( 38, 42 ); |
52 |
46 |
|
getActualDialog().setMaximize(); |
|
@@ -57,27 +51,21 @@ |
57 |
51 |
|
abstract protected void modeSearch(); |
58 |
52 |
|
|
59 |
53 |
|
@Override |
60 |
|
- |
protected void justLoaded() |
61 |
|
- |
{ |
|
54 |
+ |
protected void justLoaded() { |
62 |
55 |
|
super.justLoaded(); |
63 |
56 |
|
mFE.setFocus(); |
64 |
57 |
|
} |
65 |
58 |
|
|
66 |
59 |
|
@Override |
67 |
|
- |
public final void execute( T pRowValue ) |
68 |
|
- |
{ |
69 |
|
- |
if ( pRowValue == null ) |
70 |
|
- |
{ |
|
60 |
+ |
public final void execute( T pRowValue ) { |
|
61 |
+ |
if ( pRowValue == null ) { |
71 |
62 |
|
processVO( pRowValue ); |
72 |
63 |
|
return; |
73 |
64 |
|
} |
74 |
|
- |
mDataProvider.requestRow( pRowValue.getObjectURL(), new FetchRowDataProviderCallBack<T>() |
75 |
|
- |
{ |
|
65 |
+ |
mDataProvider.requestRow( pRowValue.getObjectURL(), new FetchRowDataProviderCallBack<T>() { |
76 |
66 |
|
@Override |
77 |
|
- |
public void success( T pRow ) |
78 |
|
- |
{ |
79 |
|
- |
if ( pRow != null ) |
80 |
|
- |
{ |
|
67 |
+ |
public void success( T pRow ) { |
|
68 |
+ |
if ( pRow != null ) { |
81 |
69 |
|
processVO( pRow ); |
82 |
70 |
|
return; |
83 |
71 |
|
} |
|
@@ -85,8 +73,7 @@ |
85 |
73 |
|
} |
86 |
74 |
|
|
87 |
75 |
|
@Override |
88 |
|
- |
public void error( String pError ) |
89 |
|
- |
{ |
|
76 |
+ |
public void error( String pError ) { |
90 |
77 |
|
AlertManager.alert( mTitle, mTitle, pError ); |
91 |
78 |
|
} |
92 |
79 |
|
} ); |