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
package org.litesoft.datt.client.support;

import org.litesoft.GWT.client.view.*;
import org.litesoft.bo.views.*;
import org.litesoft.datt.client.support.*;
import org.litesoft.uispecification.*;

public abstract class AbstractTwoStoriesScreenViewFactory extends ScreenViewFactory
{
    public AbstractTwoStoriesScreenViewFactory( ViewDef pViewDef )
    {
        super( pViewDef );
        UriFragmentIdTwoObjectURL.FACTORY.register();
    }

    protected static TwoStoryURLs decodeParams( UriFragmentIdParams pTwoStories )
    {
        if ( pTwoStories instanceof UriFragmentIdTwoObjectURL )
        {
            UriFragmentIdTwoObjectURL zProper = (UriFragmentIdTwoObjectURL) pTwoStories;
            return new TwoStoryURLs( zProper.getObjectURL0(), zProper.getObjectURL1() );
        }
        return null;
    }

    public static UriFragmentIdParams encodeParams( TwoStoryURLs pStoryURLs )
    {
        return (pStoryURLs != null) ? //
               new UriFragmentIdTwoObjectURL( pStoryURLs.getStory0(), pStoryURLs.getStory1() ) : //
               null;
    }
    
}

Commits for litesoft/trunk/Java/DATT/src/org/litesoft/datt/client/support/AbstractTwoStoriesScreenViewFactory.java

Diff revisions: vs.
Revision Author Commited Message
496 Diff Diff GeorgeS picture GeorgeS Sun 11 Sep, 2011 16:58:00 +0000
430 GeorgeS picture GeorgeS Sat 20 Aug, 2011 19:46:21 +0000