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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
package org.litesoft.datt.client.ui.views;
import org.litesoft.bo.views.*;
import org.litesoft.datt.client.boviews.*;
import org.litesoft.datt.client.ui.views.admin.*;
import org.litesoft.uispecification.*;
public abstract class DATTscreenView extends AbstractDATTscreenView
{
public DATTscreenView()
{
super();
}
protected DATTscreenView( String pSection, ViewDef pViewDef )
{
super( pSection, pViewDef );
}
protected DATTscreenView( String pSection, String pViewSubTitle )
{
super( pSection, pViewSubTitle );
}
protected boolean assertStoryURL( ObjectURL pStoryURL )
{
if ( pStoryURL == null )
{
backToHome( "No Story Selected" );
return false;
}
return true;
}
protected boolean requestRequiredStory( final StoryFindable pStoryFindable, ObjectURL pStoryURL, final Integer pRequestID )
{
if ( !assertStoryURL( pStoryURL ) )
{
return false;
}
StoryViewDataProvider.getInstance().requestRow( pStoryURL, new FetchRowDataProviderCallBack<StoryView>()
{
@Override
public void success( StoryView pRow )
{
if ( pRow != null )
{
pStoryFindable.foundStory( pRow, pRequestID );
return;
}
error( "Story Not Found" );
}
@Override
public void error( String pError )
{
backToHome( pError );
}
} );
return true;
}
protected void requestOptionalStory( final StoryFindable pStoryFindable, ObjectURL pStoryURL, final Integer pRequestID )
{
if ( pStoryURL != null )
{
StoryViewDataProvider.getInstance().requestRow( pStoryURL, new FetchRowDataProviderCallBack<StoryView>()
{
@Override
public void success( StoryView pRow )
{
if ( pRow != null )
{
pStoryFindable.foundStory( pRow, pRequestID );
}
}
@Override
public void error( String pError )
{
getStatusMessageSinc().setErrorMessage( pError );
}
} );
}
}}
|
Revision |
Author |
Commited |
Message |
430
|
GeorgeS
|
Sat 20 Aug, 2011 19:46:21 +0000 |
|