Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.metadata.basic / org.gvsig.metadata.basic.swing / org.gvsig.metadata.swing.basic.api / src / main / java / org / gvsig / metadata / swing / basic / api / MetadataSwingManager.java @ 40608

History | View | Annotate | Download (2.86 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2010 Infrastructures and Transports Department
4
 * of the Valencian Gobernment (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

    
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2010 Institute of New Imaging Technologies (INIT): 
26
 *   http://www.init.uji.es
27
 * Geographic Information research group: 
28
 *   http://www.geoinfo.uji.es
29
 * Universitat Jaume I UJI, Spain
30
 */
31

    
32
package org.gvsig.metadata.swing.basic.api;
33

    
34
import org.gvsig.metadata.Metadata;
35
import org.gvsig.metadata.MetadataManager;
36
import org.gvsig.metadata.exceptions.MetadataException;
37
import org.gvsig.tools.swing.api.usability.UsabilitySwingManager;
38

    
39
/**
40
 * 
41
 * A basic metadata swing manager to provide a metadata GUI editor.
42
 * 
43
 * @author gvSIG Team
44
 * @author <a href="mailto:reinhold@uji.es">cmartin</a>
45
 * @version $Id$
46
 * 
47
 */
48
public interface MetadataSwingManager {
49

    
50
        /**
51
         * 
52
         * Given a text, it looks for its translation. If none is found, then the
53
         * original text is shown.
54
         * 
55
         * @param text
56
         *            to be translated.
57
         * @return the translation text result.
58
         */
59
        public String translate(String message);
60

    
61
        /**
62
         * Gets the main manager that allows interacting with metadata objects.
63
         * 
64
         * @return the metadata Manager
65
         */
66
        public MetadataManager getManager();
67

    
68
        /**
69
         * Creates the JPanel in which users can edit and visualize metadata
70
         * objects. Editable by default.
71
         * 
72
         * @param metadata
73
         *            the metadata to be displayed.
74
         * @return the metadata editor Panel
75
         * @throws MetadataException
76
         */
77
        public JMetadataPanel createJMetadataPanel(Metadata metadata);
78

    
79
        /**
80
         * Creates the JPanel in which users can edit and visualize metadata
81
         * objects.
82
         * 
83
         * @param metadata
84
         *            the metadata to be displayed.
85
         * @param editable
86
         *            if the metadata panel should be editable or not.
87
         * @return the metadata editor Panel
88
         * @throws MetadataException
89
         */
90
        public JMetadataPanel createJMetadataPanel(Metadata metadata,
91
                        boolean editable);
92

    
93
        /**
94
         * Gets the ToolsLocator usability swing manager to create UI components
95
         * based on gvSIG standards.
96
         * 
97
         * @return
98
         */
99
        public UsabilitySwingManager getUIBuilder();
100

    
101
}