Sha256: e58ae0a2b21edbf86b7ab4620aee74ef93decb50ac72f2135824784398bd5d41

Contents?: true

Size: 846 Bytes

Versions: 5

Compression:

Stored size: 846 Bytes

Contents

package <%= views_package %>;

import java.util.List;

import <%= models_package %>.<%= class_name %>;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.inject.ImplementedBy;

import <%= gwt_rails_package %>.RestfulAction;

@ImplementedBy(<%= class_name %>ViewImpl.class)
public interface <%= class_name %>View extends IsWidget {

    public interface Presenter {
<% unless options[:singleton] -%>
        void create();
<% end -%>        
        void save();
<% unless options[:singleton] -%>
        void delete();
<% end -%>
        void goTo(Place place);
    }
    void setPresenter(Presenter presenter);

    void reset(<%= class_name %> model);

    void reset(RestfulAction action);
    
    void setEnabled(boolean enabled);

    <%= class_name %> retrieve<%= class_name %>();
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
resty-generators-0.4.0 lib/generators/resty/templates/View.java
resty-generators-0.3.3 lib/generators/resty/templates/View.java
resty-generators-0.3.2 lib/generators/resty/templates/View.java
resty-generators-0.3.1 lib/generators/resty/templates/View.java
resty-generators-0.3.0 lib/generators/resty/templates/View.java