KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > gui > dialog > model > DialogModel


1 /***
2  * FractalGUI: a graphical tool to edit Fractal component configurations.
3  * Copyright (C) 2003 France Telecom R&D
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Contact: fractal@objectweb.org
20  *
21  * Authors: Eric Bruneton, Patrice Fauvel
22  */

23
24 package org.objectweb.fractal.gui.dialog.model;
25
26 import javax.swing.ListSelectionModel JavaDoc;
27 import javax.swing.table.TableModel JavaDoc;
28 import javax.swing.text.Document JavaDoc;
29
30 /**
31  * A model for a dialog based configuration view. This model is made of many
32  * Swing sub models, one for each element of the dialog view.
33  */

34
35 public interface DialogModel {
36
37   /**
38    * Returns the model for the table representing the external client
39    * interfaces.
40    *
41    * @return the model for the table representing the external client
42    * interfaces.
43    */

44
45   TableModel JavaDoc getClientInterfacesTableModel();
46
47   /**
48    * Returns the selection model for the table representing the external client
49    * interfaces.
50    *
51    * @return the selection model for the table representing the external client
52    * interfaces.
53    */

54
55   ListSelectionModel JavaDoc getClientInterfacesTableSelectionModel();
56
57   /**
58    * Returns the model for the table representing the external server
59    * interfaces.
60    *
61    * @return the model for the table representing the external server
62    * interfaces.
63    */

64
65   TableModel JavaDoc getServerInterfacesTableModel();
66
67   /**
68    * Returns the selection model for the table representing the external server
69    * interfaces.
70    *
71    * @return the selection model for the table representing the external server
72    * interfaces.
73    */

74
75   InterfaceTableSelectionModel getServerInterfacesTableSelectionModel();
76
77   /**
78    * Returns the model for the table representing the component's attributes.
79    *
80    * @return the model for the table representing the component's attributes.
81    */

82
83   TableModel JavaDoc getAttributesTableModel();
84
85   /**
86    * Returns the selection model for the table representing the component's
87    * attributes.
88    *
89    * @return the selection model for the table representing the component's
90    * attributes.
91    */

92
93   ListSelectionModel JavaDoc getAttributesTableSelectionModel();
94
95   /**
96    * Returns the model for the text field containing the component's name.
97    *
98    * @return the model for the text field containing the component's name.
99    */

100
101   Document JavaDoc getNameFieldModel();
102
103   /**
104    * Returns the model for the text field containing the component's type.
105    *
106    * @return the model for the text field containing the component's type.
107    */

108
109   Document JavaDoc getTypeFieldModel();
110
111   /**
112    * Returns the model for the text field containing the component's
113    * implementation.
114    *
115    * @return the model for the text field containing the component's
116    * implementation.
117    */

118
119   Document JavaDoc getImplementationFieldModel();
120
121   /**
122    * Returns the model for the text field containing the component's attribute
123    * controller.
124    *
125    * @return the model for the text field containing the component's attribute
126    * controller.
127    */

128
129   Document JavaDoc getAttrControllerFieldModel();
130
131   /**
132    * Returns the model for the text field containing the component's template
133    * controller descriptor.
134    *
135    * @return the model for the text field containing the component's template
136    * controller descriptor.
137    */

138
139   Document JavaDoc getTmplControllerDescFieldModel();
140
141   /**
142    * Returns the model for the text field containing the component's controller
143    * descriptor.
144    *
145    * @return the model for the text field containing the component's controller
146    * descriptor.
147    */

148
149   Document JavaDoc getCompControllerDescFieldModel();
150 }
151
Popular Tags