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
37
38
39
40
package org.litesoft.GWT.forms.client;

import org.litesoft.GWT.client.nonpublic.*;
import org.litesoft.GWT.client.widgets.*;
import org.litesoft.core.simpletypes.*;

import com.google.gwt.user.client.ui.*;

import java.util.*;

import static org.litesoft.GWT.client.widgets.InjectionPointSelector.*;

public class InjectionPointSelectionDialog<T extends Synopsisable> extends AbstractDialogAutoInitialized {
    private InjectionPointSelector mSelector;

    public InjectionPointSelectionDialog( String pTitle, int pSynopsisLines, List<T> pInjectIns, final Callback<T> pCallback ) {
        super( pTitle, Opaqueness.Slightly );
        mSelector = new InjectionPointSelector<T>( pSynopsisLines, pInjectIns, new Callback<T>() {
            @Override
            public void injectBetween( T pLowerBound, T pUpperBound ) {
                hide();
                pCallback.injectBetween( pLowerBound, pUpperBound );
            }
        } );
    }

    @Override
    protected Widget createBodyPanel() {
        SizeableVerticalPanel zPanel = new SizeableVerticalPanel();
        zPanel.stretchable();
        zPanel.add( new Spacer( 10 ) );
        zPanel.add( mSelector );
        return zPanel;
    }

    @Override
    public void show() {
        super.show();
    }
}

Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/InjectionPointSelectionDialog.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

268 Diff Diff GeorgeS picture GeorgeS Sun 12 Jun, 2011 16:38:21 +0000
247 Diff Diff GeorgeS picture GeorgeS Mon 06 Jun, 2011 04:59:03 +0000
243 GeorgeS picture GeorgeS Sun 05 Jun, 2011 20:29:12 +0000