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.bind.handler.impl;
16:
17: import java.util.HashMap;
18: import java.util.Map;
19:
20: import org.strecks.bind.internal.BindConvertInfo;
21: import org.strecks.form.controller.BindingForm;
22:
23: /**
24: * @author Phil Zoio
25: */
26: public class BindableBean implements BindingForm {
27:
28: private String selectedId;
29:
30: private String intProperty;
31:
32: private Map<Integer, DomainClass> lookupMap = new HashMap<Integer, DomainClass>();
33:
34: private TargetBean targetBean;
35:
36: public Map<Integer, DomainClass> getLookupMap() {
37: return lookupMap;
38: }
39:
40: public void setLookupMap(Map<Integer, DomainClass> hashMap) {
41: this .lookupMap = hashMap;
42: }
43:
44: public String getSelectedId() {
45: return selectedId;
46: }
47:
48: public void setSelectedId(String selectedId) {
49: this .selectedId = selectedId;
50: }
51:
52: public String getIntProperty() {
53: return intProperty;
54: }
55:
56: public void setIntProperty(String intProperty) {
57: this .intProperty = intProperty;
58: }
59:
60: public TargetBean getTargetBean() {
61: return targetBean;
62: }
63:
64: public void setTargetBean(TargetBean targetBean) {
65: this .targetBean = targetBean;
66: }
67:
68: /* ***************************** boiler plate methods ******************************** */
69:
70: public void bindInwards(Object actionBean) {
71: }
72:
73: public void bindOutwards(Object actionBean) {
74: }
75:
76: public void setBindOutwards(boolean bindOutwards) {
77: }
78:
79: public boolean getBindOutwards() {
80: return false;
81: }
82:
83: public void setBindConvertInfo(BindConvertInfo bindConvertInfo) {
84: }
85:
86: }
|