Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/ClickableViewObjectQBEscreenView.java

Diff revisions: vs.
  @@ -1,36 +1,36 @@
1 - package org.litesoft.GWT.client.view;
2 -
3 - import org.litesoft.GWT.client.*;
4 - import org.litesoft.GWT.client.widgets.datatables.*;
5 - import org.litesoft.bo.views.*;
6 -
7 - public abstract class ClickableViewObjectQBEscreenView<T extends IViewObject> extends ViewObjectQBEscreenView<T> implements TableClickCommand<T> {
8 - protected ClickableViewObjectQBEscreenView( CO pCO, VoDataProvider<T> pDataProvider ) {
9 - super( pCO, pDataProvider );
10 - }
11 -
12 - @Override
13 - public final void execute( T pRowValue ) {
14 - if ( pRowValue == null ) {
15 - processVO( pRowValue );
16 - return;
17 - }
18 - mDataProvider.requestRow( pRowValue.getObjectURL(), new FetchRowDataProviderCallBack<T>() {
19 - @Override
20 - public void success( T pRow ) {
21 - if ( pRow != null ) {
22 - processVO( pRow );
23 - return;
24 - }
25 - error( "Data no longer exists!" );
26 - }
27 -
28 - @Override
29 - public void error( String pError ) {
30 - AlertManager.alert( mTitle, mTitle, pError );
31 - }
32 - } );
33 - }
34 -
35 - abstract protected void processVO( T pRowValue );
36 - }
1 + package org.litesoft.GWT.client.view;
2 +
3 + import org.litesoft.GWT.client.*;
4 + import org.litesoft.GWT.client.widgets.datatables.*;
5 + import org.litesoft.bo.views.*;
6 +
7 + public abstract class ClickableViewObjectQBEscreenView<T extends IViewObject> extends ViewObjectQBEscreenView<T> implements TableClickCommand<T> {
8 + protected ClickableViewObjectQBEscreenView( CO pCO, VoDataProvider<T> pDataProvider ) {
9 + super( pCO, pDataProvider );
10 + }
11 +
12 + @Override
13 + public final void execute( T pRowValue ) {
14 + if ( pRowValue == null ) {
15 + processVO( pRowValue );
16 + return;
17 + }
18 + mDataProvider.requestRow( pRowValue.getObjectURL(), new FetchRowDataProviderCallBack<T>() {
19 + @Override
20 + public void success( T pRow ) {
21 + if ( pRow != null ) {
22 + processVO( pRow );
23 + return;
24 + }
25 + error( "Data no longer exists!" );
26 + }
27 +
28 + @Override
29 + public void error( String pError ) {
30 + AlertManager.alert( mTitle, mTitle, pError );
31 + }
32 + } );
33 + }
34 +
35 + abstract protected void processVO( T pRowValue );
36 + }