01: /*
02: * Copyright 2005-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
05: * in compliance with the License. You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software distributed under the License
10: * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11: * or implied. See the License for the specific language governing permissions and limitations under
12: * the License.
13: */
14:
15: package org.strecks.form.controller;
16:
17: import org.strecks.bind.internal.BindConvertInfo;
18:
19: /**
20: * Represents a form which can be bound to a domain model using the annotation based binding facility
21: * @author Phil Zoio
22: */
23: public interface BindingForm {
24:
25: /**
26: * Bind from the to the String form bean properties to the target object(s)
27: * @param the current action bean instance
28: */
29: public void bindInwards(Object actionBean);
30:
31: /**
32: * Bind from the target object(s) to the String form bean properties
33: * @param the current action bean instance
34: */
35: public void bindOutwards(Object actionBean);
36:
37: /**
38: * Indicate that the form should be bound outwards
39: */
40: public void setBindOutwards(boolean bindOutwards);
41:
42: /**
43: * Determine whether the form should be bound outwards
44: */
45: public boolean getBindOutwards();
46:
47: /**
48: * Sets form property to domain model mappings
49: */
50: public void setBindConvertInfo(BindConvertInfo bindConvertInfo);
51:
52: }
|