Statistics
| Revision:

root / trunk / frameworks / _fwAndami / src / com / iver / andami / ui / mdiFrame / MainFrame.java @ 1340

History | View | Annotate | Download (2.98 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 com.iver.andami.plugins.PluginClassLoader;
44
import com.iver.andami.plugins.config.generate.Menu;
45

    
46
import java.awt.event.ActionListener;
47

    
48

    
49
/**
50
 *
51
 */
52
public interface MainFrame {
53
        /**
54
         * A?ade el men? a la barra de men?s
55
         *
56
         * @param menu Texto del menu
57
         * @param listener objeto que recibe los eventos del menu
58
         * @param loader ClassLoader del plugin que instala el men?
59
         */
60
        public void addMenu(Menu menu, ActionListener listener,
61
                PluginClassLoader loader);
62

    
63
        /**
64
         * Cambia el nombre completo del menu, y por tanto su ubicaci?n. El array
65
         * de strings representa la ruta  completa del men?. por ejemplo un array
66
         * {"ver", "ventanas", "consola"} referencia al men? que se encuentra en
67
         * ver/ventanas/consola. Hay que tener en cuenta que los elementos en el
68
         * array son claves en el fichero de traducciones del plugin
69
         *
70
         * @param menu Ruta completa del men?
71
         * @param newName Nuevo nombre del menu
72
         * @param loader ClassLoader del plugin que a?adi? el menu
73
         *
74
         * @throws NoSuchMenuException Si no existe ning?n menu en la
75
         * ruta menu
76
         */
77
        public void changeMenuName(String[] menu, String newName,
78
                PluginClassLoader loader) throws NoSuchMenuException;
79

    
80
        /**
81
         * Elimina el men? que se pasa como par?metro si est? a?adido. Si no se
82
         * encuentra el men? no se hace nada
83
         *
84
         * @param menu referencia al men? que se quiere eliminar
85
         */
86
        public void removeMenu(Menu menu);
87

    
88
        /**
89
         * Itera por los controles preguntando a las extensiones si estos est?n
90
         * habilitados y visibles
91
         */
92
        public void enableControls();
93

    
94
        /**
95
         * Establece el mensaje en la barra de estado asociado a una etiqueta
96
         *
97
         * @return DOCUMENT ME!
98
         */
99
        public NewStatusBar getStatusBar();
100

    
101
        /**
102
         * DOCUMENT ME!
103
         *
104
         * @param titulo DOCUMENT ME!
105
         */
106
        public void setTitle(String titulo);
107
}