Statistics
| Revision:

svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / ui / mdiFrame / MainFrame.java @ 3897

History | View | Annotate | Download (3.49 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
import javax.swing.JComponent;
49

    
50

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

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

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

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

    
96
        /**
97
         * Sirve para establecec el mensaje en la barra de estado asociado a una etiqueta
98
         *
99
         * @return main StatusBar
100
         */
101
        public NewStatusBar getStatusBar();
102
        /**
103
         * DOCUMENT ME!
104
         *
105
         * @param titulo DOCUMENT ME!
106
         */
107
        public void setTitle(String titulo);
108

    
109
    /**
110
     * Get a JComponent previously added by name. For example
111
     * you can use it if you need to obtain a JToolBar to
112
     * add some customized component.
113
     * @param name
114
     * @return the JComponent or null if none has been found
115
     */
116
    public JComponent getComponentByName(String name);
117
    /**
118
     * You can use this function to select the appropiate
119
     * tool inside the toolbars
120
     */
121
    public void setSelectedTool(String actionCommand);
122

    
123
}