1 64 65 package com.jcorporate.expresso.services.controller.ui; 66 67 import com.jcorporate.expresso.core.controller.Block; 68 import com.jcorporate.expresso.core.controller.ControllerException; 69 import com.jcorporate.expresso.core.controller.ControllerRequest; 70 import com.jcorporate.expresso.core.controller.ControllerResponse; 71 import com.jcorporate.expresso.core.controller.ErrorCollection; 72 import com.jcorporate.expresso.core.controller.Input; 73 import com.jcorporate.expresso.core.dataobjects.DataObject; 74 75 83 public interface AutoControllerElement { 84 85 86 96 public Input renderDBObjectField(ControllerResponse response, 97 DataObject dbobj, 98 String fieldName, 99 String defaultValue, 100 boolean readOnly) throws ControllerException; 101 102 103 115 public Block createDBObjectBlock(ControllerRequest request, 116 ControllerResponse response, 117 DataObject dbobj) 118 throws ControllerException; 119 120 121 133 public Block createDBObjectBlock(ControllerRequest request, 134 ControllerResponse response, 135 String title, 136 DataObject dbobj) throws ControllerException; 137 138 150 public DataObject parseBlock(ControllerRequest request, 151 DataObject oneObject, 152 ErrorCollection ec) throws ControllerException; 153 154 168 public DataObject parseDBObject(ControllerRequest request, 169 DataObject oneObject, 170 ErrorCollection ec) throws ControllerException; 171 172 173 public DataObject parseDBObject(ControllerRequest request, 174 DataObject oneObject, ErrorCollection ec, 175 boolean validate) 176 throws ControllerException; 177 178 191 public DataObject[] parseBlocks(ControllerRequest request, 192 DataObject[] theObjects, 193 ErrorCollection ec) throws ControllerException; 194 195 196 213 public String parseSingleInput(ControllerRequest request, 214 DataObject dbobj, 215 String fieldName, 216 String parameterName, 217 ErrorCollection ec) throws ControllerException; 218 219 224 public String getNormalStyle() throws ControllerException; 225 226 231 public String getRequiredStyle() throws ControllerException; 232 233 238 public String getErrorStyle() throws ControllerException; 239 } | Popular Tags |