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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
package org.litesoft.datt.client.ui.views;
import org.litesoft.GWT.client.*;
import org.litesoft.GWT.client.widgets.datatables.*;
import org.litesoft.bo.views.*;
import org.litesoft.uispecification.*;
public abstract class DATT_ClickableQBEscreenView<T extends IViewObject> extends DATT_QBEscreenView<T> implements TableClickCommand<T>
{
protected DATT_ClickableQBEscreenView( String pSection, ViewDef pViewDef, VoDataProvider<T> pDataProvider )
{
super( pSection, pViewDef, pDataProvider );
}
protected DATT_ClickableQBEscreenView( String pSection, String pViewSubTitle, VoDataProvider<T> pTVoDataProvider )
{
super( pSection, pViewSubTitle, pTVoDataProvider );
}
@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 );
}
|
Revision |
Author |
Commited |
Message |
430
|
GeorgeS
|
Sat 20 Aug, 2011 19:46:21 +0000 |
|