01: // Copyright 2006 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.ComponentResources;
18: import org.apache.tapestry.MarkupWriter;
19: import org.apache.tapestry.runtime.Component;
20: import org.apache.tapestry.runtime.ComponentEvent;
21: import org.apache.tapestry.runtime.Event;
22:
23: /**
24: * For use in places where we don't want to have to transform a class just for testing purposes.
25: */
26: public class DefaultComponent implements Component {
27:
28: public void afterRender(MarkupWriter writer, Event event) {
29: }
30:
31: public void afterRenderBody(MarkupWriter writer, Event event) {
32: }
33:
34: public void afterRenderTemplate(MarkupWriter writer, Event event) {
35: }
36:
37: public void beforeRenderBody(MarkupWriter writer, Event event) {
38: }
39:
40: public void beforeRenderTemplate(MarkupWriter writer, Event event) {
41: }
42:
43: public void beginRender(MarkupWriter writer, Event event) {
44: }
45:
46: public void cleanupRender(MarkupWriter writer, Event event) {
47: }
48:
49: public boolean handleComponentEvent(ComponentEvent event) {
50: return false;
51: }
52:
53: public void postRenderCleanup() {
54: }
55:
56: public void setupRender(MarkupWriter writer, Event event) {
57: }
58:
59: public ComponentResources getComponentResources() {
60: return null;
61: }
62:
63: public void containingPageDidAttach() {
64: }
65:
66: public void containingPageDidDetach() {
67: }
68:
69: public void containingPageDidLoad() {
70: }
71: }
|