/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.venky.swf.views.model; import com.venky.swf.db.annotations.column.ui.PROTECTION.Kind; import com.venky.swf.db.model.Model; import com.venky.swf.path.Path; import com.venky.swf.views.controls.page.Body; /** * * @author venky */ public class ModelShowView<M extends Model> extends ModelEditView<M> { public ModelShowView(Path path, String[] includeFields, M record) { super(path, includeFields, record); } @Override public boolean isFieldEditable(String fieldName) { return false; } public Kind getFieldProtection(String fieldName){ return Kind.NON_EDITABLE; } @Override protected String getFormAction(){ return "back"; } protected void createBody (Body b){ super.createBody(b); } }