Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.litesoft.GWT.client.view;

import org.litesoft.GWT.client.*;
import org.litesoft.GWT.client.widgets.datatables.*;
import org.litesoft.bo.views.*;

public abstract class ClickableViewObjectQBEscreenView<T extends IViewObject> extends ViewObjectQBEscreenView<T> implements TableClickCommand<T> {
    protected ClickableViewObjectQBEscreenView( CO pCO, VoDataProvider<T> pDataProvider ) {
        super( pCO, pDataProvider );
    }

    @Override
    public final void execute( T pRowValue ) {
        if ( pRowValue == null ) {
            processVO( pRowValue );
            return;
        }
        mDataProvider.requestRow( pRowValue.getObjectURL(), new FetchRowDataProviderCallBack<T>() {
            @Override
            public void success( T pRow ) {
                if ( pRow != null ) {
                    processVO( pRow );
                    return;
                }
                error( "Data no longer exists!" );
            }

            @Override
            public void error( String pError ) {
                AlertManager.alert( mTitle, mTitle, pError );
            }
        } );
    }

    abstract protected void processVO( T pRowValue );
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/ClickableViewObjectQBEscreenView.java

Diff revisions: vs.
Revision Author Commited Message
948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

488 Diff Diff GeorgeS picture GeorgeS Thu 08 Sep, 2011 12:34:55 +0000
398 GeorgeS picture GeorgeS Mon 15 Aug, 2011 19:57:47 +0000