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 @ 40769
History | View | Annotate | Download (2.68 KB)
1 | 40769 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | 40608 | jjdelcerro | *
|
4 | 40769 | jjdelcerro | * Copyright (C) 2007-2013 gvSIG Association.
|
5 | *
|
||
6 | 40608 | jjdelcerro | * This program is free software; you can redistribute it and/or
|
7 | * modify it under the terms of the GNU General Public License
|
||
8 | 40769 | jjdelcerro | * as published by the Free Software Foundation; either version 3
|
9 | 40608 | jjdelcerro | * of the License, or (at your option) any later version.
|
10 | 40769 | jjdelcerro | *
|
11 | 40608 | jjdelcerro | * 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 | 40769 | jjdelcerro | *
|
16 | 40608 | jjdelcerro | * 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 | 40769 | jjdelcerro | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 | 40608 | jjdelcerro | * MA 02110-1301, USA.
|
20 | 40769 | jjdelcerro | *
|
21 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | 40608 | jjdelcerro | */
|
24 | package org.gvsig.metadata.swing.basic.api; |
||
25 | |||
26 | import org.gvsig.metadata.Metadata; |
||
27 | import org.gvsig.metadata.MetadataManager; |
||
28 | import org.gvsig.metadata.exceptions.MetadataException; |
||
29 | import org.gvsig.tools.swing.api.usability.UsabilitySwingManager; |
||
30 | |||
31 | /**
|
||
32 | *
|
||
33 | * A basic metadata swing manager to provide a metadata GUI editor.
|
||
34 | *
|
||
35 | * @author gvSIG Team
|
||
36 | * @author <a href="mailto:reinhold@uji.es">cmartin</a>
|
||
37 | * @version $Id$
|
||
38 | *
|
||
39 | */
|
||
40 | public interface MetadataSwingManager { |
||
41 | |||
42 | /**
|
||
43 | *
|
||
44 | * Given a text, it looks for its translation. If none is found, then the
|
||
45 | * original text is shown.
|
||
46 | *
|
||
47 | * @param text
|
||
48 | * to be translated.
|
||
49 | * @return the translation text result.
|
||
50 | */
|
||
51 | public String translate(String message); |
||
52 | |||
53 | /**
|
||
54 | * Gets the main manager that allows interacting with metadata objects.
|
||
55 | *
|
||
56 | * @return the metadata Manager
|
||
57 | */
|
||
58 | public MetadataManager getManager();
|
||
59 | |||
60 | /**
|
||
61 | * Creates the JPanel in which users can edit and visualize metadata
|
||
62 | * objects. Editable by default.
|
||
63 | *
|
||
64 | * @param metadata
|
||
65 | * the metadata to be displayed.
|
||
66 | * @return the metadata editor Panel
|
||
67 | * @throws MetadataException
|
||
68 | */
|
||
69 | public JMetadataPanel createJMetadataPanel(Metadata metadata);
|
||
70 | |||
71 | /**
|
||
72 | * Creates the JPanel in which users can edit and visualize metadata
|
||
73 | * objects.
|
||
74 | *
|
||
75 | * @param metadata
|
||
76 | * the metadata to be displayed.
|
||
77 | * @param editable
|
||
78 | * if the metadata panel should be editable or not.
|
||
79 | * @return the metadata editor Panel
|
||
80 | * @throws MetadataException
|
||
81 | */
|
||
82 | public JMetadataPanel createJMetadataPanel(Metadata metadata,
|
||
83 | boolean editable);
|
||
84 | |||
85 | /**
|
||
86 | * Gets the ToolsLocator usability swing manager to create UI components
|
||
87 | * based on gvSIG standards.
|
||
88 | *
|
||
89 | * @return
|
||
90 | */
|
||
91 | public UsabilitySwingManager getUIBuilder();
|
||
92 | |||
93 | } |