01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework;
16:
17: import java.io.Serializable;
18:
19: /**
20: * Viewable is a component which has a view model via <code>getViewModel()</code>.
21: * <p>
22: * Viewable should not be implemented directly but subinterfaces ComponentInterface,
23: * ServiceInterface, WidgetInterface should be used.
24: * </p>
25: *
26: * @author "Toomas Römer" <toomas@webmedia.ee>
27: * @author Jevgeni Kabanov (ekabanov <i>at</i> araneaframework <i>dot</i> org)
28: */
29: public interface Viewable extends Serializable {
30: public Interface _getViewable();
31:
32: interface Interface extends Serializable {
33: public Object getViewModel();
34: }
35:
36: /**
37: * Viewable Component.
38: */
39: public interface ViewableComponent extends Viewable, Component,
40: Serializable {
41: }
42:
43: /**
44: * Viewable Service.
45: */
46: public interface ViewableService extends ViewableComponent,
47: Service, Serializable {
48: }
49:
50: /**
51: * Viewable Widget.
52: */
53: public interface ViewableWidget extends ViewableService, Widget,
54: Serializable {
55: }
56: }
|