Statistics
| Revision:

root / trunk / libraries / libUIComponent / src / org / gvsig / gui / beans / panelGroup / exceptions / EmptyPanelGroupGUIException.java @ 17027

History | View | Annotate | Download (2.19 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2007 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

    
20
package org.gvsig.gui.beans.panelGroup.exceptions;
21

    
22
import java.util.Map;
23

    
24
import org.gvsig.exceptions.BaseException;
25

    
26
/**
27
 * <p>When an object of type {@link IPanelGroup IPanelGroup} hasn't any of its registered panels in its GUI
28
 *  launches an exception of this kind.</p> 
29
 * 
30
 * @version 27/11/2007
31
 * @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) 
32
 */
33
public class EmptyPanelGroupGUIException extends BaseException {
34
        private static final long serialVersionUID = 1244814519514860627L;
35

    
36
        /**
37
         * <p>Creates an initializes a new instance of <code>EmptyPanelGroupGUIException</code>.</p>
38
         */
39
        public EmptyPanelGroupGUIException() {
40
                super();
41

    
42
                // Identifier of this kind of exception
43
                this.code = serialVersionUID;
44
                
45
                // Default text that explains this kind of exception. If there is no translation associated to the
46
                // "messageKey" of this exception, then the value shown will be the value of "formatString".
47
                this.formatString = "'Panel group' component without any of its registered panels in its GUI.";
48

    
49
                 // Key to the sentence that explains this exception. That key will be use for multilingual purposes.
50
                this.messageKey = "empty_panel_group_gui_exception";
51
        }
52

    
53
        /*
54
         * (non-Javadoc)
55
         * @see org.gvsig.exceptions.BaseException#values()
56
         */
57
        protected Map values() {
58
                return null;
59
        }
60
}