KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > admingui > ModelTypeMapImpl


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.tools.admingui;
25
26 import java.util.*;
27 import com.iplanet.jato.*;
28 import com.iplanet.jato.model.DatasetModel;
29 import com.iplanet.jato.model.DefaultModel;
30
31 import com.sun.enterprise.tools.admingui.models.EditPropsModel;
32 import com.sun.enterprise.tools.admingui.models.EditPropsModelImpl;
33 import com.sun.enterprise.tools.admingui.tree.IndexTreeModel;
34 import com.sun.enterprise.tools.admingui.tree.IndexTreeModelImpl;
35
36 import com.sun.web.ui.model.CCActionTableModel;
37 import com.sun.web.ui.model.CCActionTableModelInterface;
38 import com.sun.web.ui.model.CCBreadCrumbsModel;
39 import com.sun.web.ui.model.CCBreadCrumbsModelInterface;
40 import com.sun.web.ui.model.CCDateTimeModel;
41 import com.sun.web.ui.model.CCDateTimeModelInterface;
42 import com.sun.web.ui.model.CCPropertySheetModel;
43 import com.sun.web.ui.model.CCPropertySheetModelInterface;
44 import com.sun.web.ui.model.CCTabsModel;
45 import com.sun.web.ui.model.CCTabsModelInterface;
46 import com.sun.web.ui.model.CCTreeModel;
47 import com.sun.web.ui.model.CCTreeModelInterface;
48 import com.sun.enterprise.tools.admingui.taglib.DataSheetModel;
49 import com.sun.enterprise.tools.admingui.taglib.DataSheetModelInterface;
50
51
52 /**
53  *
54  *
55  * @author
56  */

57 public class ModelTypeMapImpl extends ModelTypeMapBase implements ModelTypeMap {
58     /**
59      * Default constructor
60      *
61      */

62     public ModelTypeMapImpl() {
63     super();
64     }
65
66
67
68     //////////////////////////////////////////////////////////////////////////
69
// Static initializer
70
//////////////////////////////////////////////////////////////////////////
71

72     static {
73     // Add type a map entry for each model in your application. Each type
74
// map entry should map a model interface to a model implementation.
75
addModelInterfaceMapping(
76         IndexTreeModel.class, IndexTreeModelImpl.class);
77     addModelInterfaceMapping(
78         EditPropsModel.class, EditPropsModelImpl.class);
79     addModelInterfaceMapping(
80         DatasetModel.class, DefaultModel.class);
81     addModelInterfaceMapping(
82         CCBreadCrumbsModelInterface.class, CCBreadCrumbsModel.class);
83     addModelInterfaceMapping(
84         CCTabsModelInterface.class, CCTabsModel.class);
85     addModelInterfaceMapping(
86         CCPropertySheetModelInterface.class, CCPropertySheetModel.class);
87     addModelInterfaceMapping(
88         DataSheetModelInterface.class, DataSheetModel.class);
89     addModelInterfaceMapping(
90         CCActionTableModelInterface.class, CCActionTableModel.class);
91     addModelInterfaceMapping(
92         CCDateTimeModelInterface.class, CCDateTimeModel.class);
93         addModelInterfaceMapping(
94         CCTreeModelInterface.class, CCTreeModel.class);
95     }
96 }
97
Popular Tags