01: // Copyright 2006, 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // 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
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.internal.bindings;
16:
17: import org.apache.tapestry.beaneditor.Order;
18:
19: public class TargetBean extends DefaultComponent {
20: private String _objectValue;
21:
22: private int _intValue;
23:
24: String _writeOnly;
25:
26: private StringHolder _stringHolder = new StringHolderImpl();
27:
28: public StringHolder getStringHolder() {
29: return _stringHolder;
30: }
31:
32: @Order(300)
33: public StringHolder stringHolderMethod() {
34: return _stringHolder;
35: }
36:
37: public void voidMethod() {
38:
39: }
40:
41: public int getIntValue() {
42: return _intValue;
43: }
44:
45: public void setIntValue(int intValue) {
46: _intValue = intValue;
47: }
48:
49: @Order(1000)
50: public String getObjectValue() {
51: return _objectValue;
52: }
53:
54: @Order(2000)
55: public void setObjectValue(String objectValue) {
56: _objectValue = objectValue;
57: }
58:
59: @Order(200)
60: public void setWriteOnly(String value) {
61: _writeOnly = value;
62: }
63:
64: @Order(100)
65: public String getReadOnly() {
66: return "ReadOnly";
67: }
68: }
|