Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IWidget |
|
| 1.0;1 |
1 | // Copyright Apr 21, 2006 The Apache Software Foundation | |
2 | // | |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | // you may not use this file except in compliance with the License. | |
5 | // You may obtain a copy of the License at | |
6 | // | |
7 | // http://www.apache.org/licenses/LICENSE-2.0 | |
8 | // | |
9 | // 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 | package org.apache.tapestry.dojo; | |
15 | ||
16 | import org.apache.tapestry.IDirectEvent; | |
17 | import org.apache.tapestry.IMarkupWriter; | |
18 | import org.apache.tapestry.IRequestCycle; | |
19 | ||
20 | ||
21 | /** | |
22 | * Represents a tapestry component that delegates part of its | |
23 | * functionality / UI to a corresponding browser <a href="http://dojotoolkit.org">dojo</a> | |
24 | * widget instance. | |
25 | * | |
26 | * @author jkuhnert | |
27 | */ | |
28 | public interface IWidget extends IDirectEvent | |
29 | { | |
30 | /** | |
31 | * Similar to the semantics involved with normal <code>AbstractComponent.renderComponent</code> | |
32 | * method writing component state to the output stream. | |
33 | * | |
34 | * @param writer | |
35 | * The markup writer used to write any output. | |
36 | * @param cycle | |
37 | * The corresponding request. | |
38 | */ | |
39 | void renderWidget(IMarkupWriter writer, IRequestCycle cycle); | |
40 | } |