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
package com.temp.client.foundation.widget.dialog;

import com.google.gwt.event.dom.client.*;
import com.google.gwt.user.client.ui.*;
import com.temp.client.foundation.handler.*;
import com.temp.client.foundation.widget.*;

public class ConfirmationDialogExt<T> {

    private ConfirmationDialog<T> confirmDialog;
    private ActionHandler<T> noHandler;

    public ConfirmationDialogExt( final T obj, String title, Integer contentWidth, String... body ) {

        ButtonBase noButton = new OurPushButton( "noYesSize" );
        confirmDialog = new ConfirmationDialog<T>( obj, title, contentWidth, null, noButton, body );

        noButton.addClickHandler( new ClickHandler() {
            @Override
            public void onClick( ClickEvent event ) {
                if ( noHandler != null ) {
                    noHandler.execute( obj );
                }
            }
        } );
    }

    public void show( ActionHandler<T> yesHandler, ActionHandler<T> noHandler ) {
        this.noHandler = noHandler;
        confirmDialog.show( yesHandler );
    }
}

Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/dialog/ConfirmationDialogExt.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

626 GeorgeS picture GeorgeS Wed 11 Apr, 2012 19:39:41 +0000