svn-gvsig-desktop / tags / v1_0_1_RELEASE / frameworks / _fwAndami / src / com / iver / andami / ui / mdiFrame / MainFrame.java @ 9531
History | View | Annotate | Download (3.63 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program 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
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
package com.iver.andami.ui.mdiFrame; |
42 |
|
43 |
import java.awt.event.ActionListener; |
44 |
|
45 |
import javax.swing.JComponent; |
46 |
import javax.swing.JMenuBar; |
47 |
|
48 |
import com.iver.andami.plugins.PluginClassLoader; |
49 |
import com.iver.andami.plugins.config.generate.Menu; |
50 |
|
51 |
|
52 |
/**
|
53 |
*
|
54 |
*/
|
55 |
public interface MainFrame { |
56 |
/**
|
57 |
* A?ade el men? a la barra de men?s
|
58 |
*
|
59 |
* @param menu Texto del menu
|
60 |
* @param listener objeto que recibe los eventos del menu
|
61 |
* @param loader ClassLoader del plugin que instala el men?
|
62 |
*/
|
63 |
public void addMenu(Menu menu, ActionListener listener, |
64 |
PluginClassLoader loader); |
65 |
|
66 |
/**
|
67 |
* Cambia el nombre completo del menu, y por tanto su ubicaci?n. El array
|
68 |
* de strings representa la ruta completa del men?. por ejemplo un array
|
69 |
* {"ver", "ventanas", "consola"} referencia al men? que se encuentra en
|
70 |
* ver/ventanas/consola. Hay que tener en cuenta que los elementos en el
|
71 |
* array son claves en el fichero de traducciones del plugin
|
72 |
*
|
73 |
* @param menu Ruta completa del men?
|
74 |
* @param newName Nuevo nombre del menu
|
75 |
* @param loader ClassLoader del plugin que a?adi? el menu
|
76 |
*
|
77 |
* @throws NoSuchMenuException Si no existe ning?n menu en la
|
78 |
* ruta menu
|
79 |
*/
|
80 |
public void changeMenuName(String[] menu, String newName, |
81 |
PluginClassLoader loader) throws NoSuchMenuException;
|
82 |
|
83 |
/**
|
84 |
* Elimina el men? que se pasa como par?metro si est? a?adido. Si no se
|
85 |
* encuentra el men? no se hace nada
|
86 |
*
|
87 |
* @param menu referencia al men? que se quiere eliminar
|
88 |
*/
|
89 |
public void removeMenu(Menu menu); |
90 |
|
91 |
/**
|
92 |
* Itera por los controles preguntando a las extensiones si estos est?n
|
93 |
* habilitados y visibles
|
94 |
*/
|
95 |
public void enableControls(); |
96 |
|
97 |
/**
|
98 |
* Sirve para establecec el mensaje en la barra de estado asociado a una etiqueta
|
99 |
*
|
100 |
* @return main StatusBar
|
101 |
*/
|
102 |
public NewStatusBar getStatusBar();
|
103 |
/**
|
104 |
* DOCUMENT ME!
|
105 |
*
|
106 |
* @param titulo DOCUMENT ME!
|
107 |
*/
|
108 |
public void setTitle(String titulo); |
109 |
|
110 |
/**
|
111 |
* Get a JComponent previously added by name. For example
|
112 |
* you can use it if you need to obtain a JToolBar to
|
113 |
* add some customized component.
|
114 |
* @param name
|
115 |
* @return the JComponent or null if none has been found
|
116 |
*/
|
117 |
public JComponent getComponentByName(String name); |
118 |
/**
|
119 |
* You can use this function to select the appropiate
|
120 |
* tool inside the toolbars
|
121 |
*/
|
122 |
public void setSelectedTool(String actionCommand); |
123 |
|
124 |
/**
|
125 |
* @return the internal menu bar. Useful to work directly with menus
|
126 |
*/
|
127 |
public JMenuBar getJMenuBar(); |
128 |
|
129 |
} |