Sha256: d92033982ad7e95ced1eb70466371c43f3198a1ac804e5f0393093ddf86e346a

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

package <%= base_package %>;

<% if options[:gin] -%>
import javax.inject.Inject;
import javax.inject.Singleton;
<% end -%>

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

<% if options[:gin] -%>
@Singleton
<% end -%>
public class <%= application_class_name %>Application extends Composite {

    interface Binder extends UiBinder<Widget, <%= application_class_name %>Application> {}

    private static Binder BINDER = GWT.create(Binder.class);

<% if options[:gin] -%>
    @Inject
<% end -%>
    <%= application_class_name %>Application(){
        initWidget( BINDER.createAndBindUi( this ) );
    }

<% if options[:gwt_ruby] -%>
    @Override
<% end -%>
    public void run() {
	//TODO
    }
<% if options[:session] -%>

    @Override
    public void startSession(User user) {
    }

    @Override
    public void stopSession() {
    }
 <% end -%>
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gwt-run-0.1.0 lib/maven/gwt/templates/Application.java~