Revision 17788

View differences:

branches/v10/extensions/extPublish/config/text.properties
1 1
url=URL
2
serverBrand=Servidor
3
serverType=Tipo servicio
4
server_path=Path
5
select_server_type=Selecciona el tipo de servidor
6
select_server_options=Selecciona las opciones del servidor
7
shapePath=ShapePath
8
fonts=Fonts
9
symbols=Symbols
10
mapFile=MapFile
11
imageURL=ImageURL
12
imagePath=ImagePath
13
confFile=Fichero de conf.
14
user=Usuario
15
password=Contrase?a
16
nameSpace=Namespace
2
service=Servicio
3
server=Servidor
4
add_resource=A?adir recurso
5
resources=Recursos
6
publication=Publicaci?n
7
accept=Aceptar
8
cancel=Cancelar
9
add=A?adir
10
remove=Eliminar
11
no_servers_available=No hay servidores disponibles
12
common_ogc_properties=Propiedades OGC principales
13
name=Nombre
14
title=T?tulo
15
abstract=Resumen
16
select_server=Selecciona servidor
17
new_server=Servidor nuevo
18
error_publishing=Error en la publicaci?n
branches/v10/extensions/extPublish/config/text_en.properties
1 1
url=URL
2
serverBrand=Server
3
serverType=Server Type
4
server_path=Path
5
select_server_type=Select the server type
6
select_server_options=Select the server options
7
shapePath=ShapePath
8
fonts=Fonts
9
symbols=Symbols
10
mapFile=MapFile
11
imageURL=ImageURL
12
imagePath=ImagePath
13
confFile=Conf. File
14
user=User
15
password=Password
16
nameSpace=Namespace
2
service=Service
3
server=Server
4
add_resource=Add resource
5
resources=Resources
6
publication=Publication
7
accept=Accept
8
cancel=Cancel
9
add=Add
10
remove=Remove
11
no_servers_available=No servers available
12
common_ogc_properties=Main OGC properties
13
name=Name
14
title=Title
15
abstract=Abstract
16
select_server=Select server
17
new_server=New server
18
error_publishing=Error publishing
branches/v10/extensions/extPublish/src/org/gvsig/publish/ProjectPublication.java
178 178
	 * @see {@link ProjectDocument#getProperties()}
179 179
	 */
180 180
	public IWindow getProperties() {
181
		// TODO Auto-generated method stub
182
		return null;
181

  
182
		return createWindow();
183 183
	}
184 184
	/**
185 185
	 * 
branches/v10/extensions/extPublish/src/org/gvsig/publish/PublicationFactory.java
57 57
	 * @return a string which identifies the type of document
58 58
	 */
59 59
	public String getNameType() {		
60
		return PluginServices.getText(this, "publicationdocument_name");
60
		return PluginServices.getText(this, "publication");
61 61
	}
62 62

  
63 63
	public static String registerName="publication";
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/publish/PublishController.java
53 53
import org.gvsig.publish.serversmodel.Publication;
54 54
import org.gvsig.publish.serversmodel.PublishException;
55 55

  
56
import com.iver.andami.PluginServices;
57

  
56 58
/**
57 59
 * This class represents the controller for the publish use case
58 60
 * <p>
......
147 149
				//show a dialog
148 150
				JOptionPane.showMessageDialog(window,
149 151
						e1.getMessage(),
150
						"error_publishing",
152
						PluginServices.getText(this,"error_publishing"),
151 153
						JOptionPane.ERROR_MESSAGE);
152 154
				return;
153 155
			}
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/publish/PublishWindow.java
52 52
		if (mWindowInfo == null){
53 53
			//mWindowInfo=new WindowInfo(WindowInfo.MODALDIALOG | WindowInfo.RESIZABLE);
54 54
			mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG | WindowInfo.RESIZABLE);
55
			mWindowInfo.setTitle(PluginServices.getText(this,"publish_window"));
55
			mWindowInfo.setTitle(PluginServices.getText(this,"publication"));
56 56
			mWindowInfo.setHeight(500);
57 57
			mWindowInfo.setWidth(650);
58 58
        }
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/publish/PublishPanel.java
48 48
import org.gvsig.gui.beans.swing.JButton;
49 49
import org.gvsig.publish.serversmodel.Publication;
50 50

  
51
import com.iver.andami.PluginServices;
51 52

  
52 53
/**
53
 * TODO: Maybe is better a type PublicationPanel instead of JPAnel 
54
 * Main panel for publishing. It contains the publication panel and buttons. 
54 55
 * 
55 56
 * @author Jos? Vicente Hig?n (josevicente.higon@iver.es)
56 57
 *
......
64 65
	 */
65 66
	public PublishPanel(){
66 67
		super();		
67
		//this.initialize();
68 68
		initComponents();
69
		//initLabels();
69
		initLabels();
70 70
	}
71
	private void initLabels(){
72
		acceptButton.setText(PluginServices.getText(this,"accept"));
73
		cancelButton.setText(PluginServices.getText(this,"cancel"));
74
	}
71 75
	/**
72 76
	 * Testing with netbeans
73 77
	 * 
......
88 92

  
89 93
        buttonsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
90 94

  
91
        acceptButton.setText("accept_button");
95
        
92 96
        buttonsPanel.add(acceptButton);
93 97

  
94
        cancelButton.setText("cancel_button");
98
        
95 99
        buttonsPanel.add(cancelButton);
96 100

  
97 101
        add(buttonsPanel, java.awt.BorderLayout.SOUTH);
......
119 123
		this.cancelButton.setActionCommand(PublishController.PUBLISH_EVENT_CANCEL);
120 124
		this.acceptButton.setActionCommand(PublishController.PUBLISH_EVENT_ACCEPT);
121 125
	}
122
	/**
123
	 * Initialize 
124
	 */
125
/*	private void initialize(){
126
		this.setLayout(new BorderLayout());
127
        this.setSize(new java.awt.Dimension(650,200));
128
       
129
        this.add(getMainControlsPanel(), java.awt.BorderLayout.SOUTH);
130
        //setPublicationPanel(new JPanel());
131
        //this.add(getPublicationPanel(), java.awt.BorderLayout.CENTER);
132
	}
133
*/
134

  
135
/*	private PublishControlsPanel getMainControlsPanel(){
136
		if (this.controlsPanel == null){
137
			controlsPanel = new PublishControlsPanel();
138
		}
139
		return controlsPanel;
140
	}
141
*/
142 126
	private JPanel getPublicationPanel(){
143 127
		return publicationPanel;
144 128
	}
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/selectServer/SelectServerPanel.java
52 52
import org.gvsig.publish.PublishRegister;
53 53
import org.gvsig.publish.serversmodel.Server;
54 54

  
55
import com.iver.andami.PluginServices;
55 56
import com.iver.andami.persistence.serverData.ServerDataPersistence;
56 57
import com.iver.utiles.swing.jcomboServer.JComboServer;
57 58
import com.iver.utiles.swing.jcomboServer.ServerData;
......
67 68
		super();
68 69
		initComponents();
69 70
		initCombos();
70
		//initLabels();
71
		initLabels();
71 72
	}
73
	private void initLabels(){
74
		acceptButton.setText(PluginServices.getText(this,"accept"));
75
		cancelButton.setText(PluginServices.getText(this,"cancel"));
76
		selectionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(PluginServices.getText(this,"select_server")));
77
		labelservice.setText(PluginServices.getText(this,"service"));
78
		labelurl.setText(PluginServices.getText(this, "url"));
79
		labelserver.setText(PluginServices.getText(this, "server"));
80
	}
72 81
	private void initComponents() {
73 82
		java.awt.GridBagConstraints gridBagConstraints;
74 83

  
......
87 96

  
88 97
		buttonsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));
89 98

  
90
		acceptButton.setText("accept");
99
		
91 100
		buttonsPanel.add(acceptButton);
92 101

  
93
		cancelButton.setText("cancel");
102
	
94 103
		buttonsPanel.add(cancelButton);
95 104

  
96 105
		add(buttonsPanel, java.awt.BorderLayout.SOUTH);
97 106

  
98 107
		selectionPanel.setLayout(new java.awt.GridBagLayout());
99 108

  
100
		selectionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("select server"));
101
		labelservice.setText("service");
109
		
110

  
102 111
		gridBagConstraints = new java.awt.GridBagConstraints();
103 112
		gridBagConstraints.gridx = 2;
104 113
		gridBagConstraints.gridy = 1;
105 114
		gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
106 115
		selectionPanel.add(labelservice, gridBagConstraints);
107 116

  
108
		labelserver.setText("server");
117
	
109 118
		gridBagConstraints = new java.awt.GridBagConstraints();
110 119
		gridBagConstraints.gridx = 0;
111 120
		gridBagConstraints.gridy = 1;
......
122 131
		gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
123 132
		selectionPanel.add(servercombo, gridBagConstraints);
124 133

  
125
		labelurl.setText("url");
134

  
126 135
		gridBagConstraints = new java.awt.GridBagConstraints();
127 136
		gridBagConstraints.gridx = 0;
128 137
		gridBagConstraints.gridy = 0;
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/selectServer/SelectServerWindow.java
50 50
	public WindowInfo getWindowInfo() {
51 51
		if (mWindowInfo == null){
52 52
			mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG | WindowInfo.RESIZABLE);
53
			mWindowInfo.setTitle(PluginServices.getText(this,"new_server_window"));
53
			mWindowInfo.setTitle(PluginServices.getText(this,"new_server"));
54 54
			mWindowInfo.setHeight(150);
55 55
			mWindowInfo.setWidth(500);
56 56
        }
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/ogcMetadata/ServiceWMS111Panel.java
50 50
import org.gvsig.publish.gui.publish.IPublishPluginPanel;
51 51
import org.gvsig.publish.ogcmetadata.ServiceWMS111Metadata;
52 52

  
53
import com.iver.andami.PluginServices;
54

  
53 55
public class ServiceWMS111Panel extends JPanel implements IPublishPluginPanel {
54 56
		/*
55 57
		 * model
......
61 63
		 */
62 64
	    public ServiceWMS111Panel() {
63 65
	        initComponents();
64
	        //initLabels();
66
	        initLabels();
65 67
	    }
66
	    
68
	    private void initLabels(){
69
	    	setBorder(javax.swing.BorderFactory.createTitledBorder(PluginServices.getText(this,"service_wms111")));
70
	    	onlineresourceLabel.setText(PluginServices.getText(this,"online_resource"));
71
	    }
67 72
	    private void initComponents() {
68 73
	        java.awt.GridBagConstraints gridBagConstraints;
69 74

  
......
72 77

  
73 78
	        setLayout(new java.awt.GridBagLayout());
74 79

  
75
	        setBorder(javax.swing.BorderFactory.createTitledBorder("Service WMS 1.1.1"));
80
	        
76 81
	        onlineresourceLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
77
	        onlineresourceLabel.setText("online resource");
82
	     
78 83
	        gridBagConstraints = new java.awt.GridBagConstraints();
79 84
	        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
80 85
	        add(onlineresourceLabel, gridBagConstraints);
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/ogcMetadata/CommonOGCMetadataPanel.java
47 47
import org.gvsig.publish.gui.publish.IPublishPluginPanel;
48 48
import org.gvsig.publish.ogcmetadata.CommonOGCMetadata;
49 49

  
50
import com.iver.andami.PluginServices;
50 51

  
51 52
/**
52 53
 * Panel for common properties of ogc entities  
......
67 68
	public CommonOGCMetadataPanel(){
68 69
		super();
69 70
		initComponents();
70
		//initLabels();
71
		initLabels();
71 72
	}
73
	private void initLabels(){
74
		setBorder(javax.swing.BorderFactory.createTitledBorder(PluginServices.getText(this,"common_ogc_properties")));
75
		nameLabel.setText(PluginServices.getText(this,"name"));
76
        nameField.setText(PluginServices.getText(this, "name"));
77
        titleLabel.setText(PluginServices.getText(this,"title"));
78
        titleField.setText(PluginServices.getText(this,"title"));
79
        abstractLabel.setText(PluginServices.getText(this,"abstract"));
80
	}
72 81
    private void initComponents() {
73 82
        java.awt.GridBagConstraints gridBagConstraints;
74 83

  
......
82 91

  
83 92
        setLayout(new java.awt.GridBagLayout());
84 93

  
85
        setBorder(javax.swing.BorderFactory.createTitledBorder("OGC Common"));
94
        
86 95
        setAutoscrolls(true);
87 96
        setMaximumSize(new java.awt.Dimension(10, 10));
88 97
        setPreferredSize(new java.awt.Dimension(300, 150));
89 98
        nameLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
90
        nameLabel.setText("name_label");
99
        
91 100
        gridBagConstraints = new java.awt.GridBagConstraints();
92 101
        gridBagConstraints.gridx = 0;
93 102
        gridBagConstraints.gridy = 0;
......
96 105

  
97 106
        nameField.setColumns(30);
98 107
        nameField.setEditable(false);
99
        nameField.setText("name");
108

  
100 109
        gridBagConstraints = new java.awt.GridBagConstraints();
101 110
        gridBagConstraints.gridx = 1;
102 111
        gridBagConstraints.gridy = 0;
......
106 115
        add(nameField, gridBagConstraints);
107 116

  
108 117
        titleLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
109
        titleLabel.setText("title_label");
118

  
110 119
        gridBagConstraints = new java.awt.GridBagConstraints();
111 120
        gridBagConstraints.gridx = 0;
112 121
        gridBagConstraints.gridy = 1;
......
115 124

  
116 125
        titleField.setColumns(30);
117 126
        titleField.setHorizontalAlignment(javax.swing.JTextField.LEFT);
118
        titleField.setText("title");
127

  
119 128
        gridBagConstraints = new java.awt.GridBagConstraints();
120 129
        gridBagConstraints.gridx = 1;
121 130
        gridBagConstraints.gridy = 1;
......
124 133
        gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
125 134
        add(titleField, gridBagConstraints);
126 135

  
127
        abstractLabel.setText("abstract_label");
136
        
128 137
        gridBagConstraints = new java.awt.GridBagConstraints();
129 138
        gridBagConstraints.gridx = 0;
130 139
        gridBagConstraints.gridy = 2;
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/ogcMetadata/LayerWMS111Panel.java
47 47
import org.gvsig.publish.gui.publish.IPublishPluginPanel;
48 48
import org.gvsig.publish.ogcmetadata.LayerWMS111Metadata;
49 49

  
50
import com.iver.andami.PluginServices;
51

  
50 52
public class LayerWMS111Panel extends JPanel implements IPublishPluginPanel {
51 53
	/*
52 54
	 * model
......
55 57
	
56 58
	public LayerWMS111Panel() {
57 59
		initComponents();
58
		//initLabels();
60
		initLabels();
59 61
	}
60

  
62
	private void initLabels(){
63
		setBorder(javax.swing.BorderFactory.createTitledBorder(PluginServices.getText(this,"layer_wms111")));
64
		isQueryableCheck.setText(PluginServices.getText(this,"is_queryable"));
65
	}
61 66
    private void initComponents() {
62 67
        java.awt.GridBagConstraints gridBagConstraints;
63 68

  
64 69
        isQueryableCheck = new javax.swing.JCheckBox();
65 70

  
66
        setLayout(new java.awt.GridBagLayout());
67

  
68
        setBorder(javax.swing.BorderFactory.createTitledBorder("Layer WMS 1.1.1"));
69
        isQueryableCheck.setText("is queryable");
71
        setLayout(new java.awt.GridBagLayout());        
72
     
70 73
        isQueryableCheck.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
71 74
        isQueryableCheck.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
72 75
        isQueryableCheck.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/addResource/AddResourcePanel.java
50 50
import org.gvsig.publish.PublishLogger;
51 51
import org.gvsig.publish.infoproject.IProjectInfo;
52 52

  
53
import com.iver.andami.PluginServices;
53 54

  
55

  
54 56
public class AddResourcePanel extends JPanel {
55 57
	
56 58
	public AddResourcePanel(){
57 59
		super();
58 60
		initComponents();
59
		//initLabels();
61
		initLabels();
60 62
	}
63
	private void initLabels(){		
64
		treePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(PluginServices.getText(this, "resources")));
65
	}
61 66
    private void initComponents() {
62 67
        java.awt.GridBagConstraints gridBagConstraints;
63 68

  
......
72 77

  
73 78
        treePanel.setLayout(new java.awt.GridBagLayout());
74 79

  
75
        treePanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Add resource"));
80
        
76 81
        jScrollPane1.setViewportView(tree);
77 82

  
78 83
        gridBagConstraints = new java.awt.GridBagConstraints();
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/addResource/AddResourceWindow.java
49 49
	WindowInfo mWindowInfo = null;	
50 50
	public WindowInfo getWindowInfo() {
51 51
		if (mWindowInfo == null){
52
			mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
53
			mWindowInfo.setTitle(PluginServices.getText(this,"add_resource_window"));
54
			mWindowInfo.setHeight(300);
55
			mWindowInfo.setWidth(250);
52
			//mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
53
			mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG | WindowInfo.RESIZABLE);
54
			mWindowInfo.setTitle(PluginServices.getText(this,"add_resource"));
55
			mWindowInfo.setHeight(350);
56
			mWindowInfo.setWidth(300);
56 57
        }
57 58
        return mWindowInfo;
58 59
	}
branches/v10/extensions/extPublish/src/org/gvsig/publish/gui/browser/BrowserPanel.java
53 53
import org.gvsig.publish.gui.publish.IPublishPluginPanel;
54 54
import org.gvsig.publish.serversmodel.Publication;
55 55

  
56
import com.iver.andami.PluginServices;
57

  
56 58
public class BrowserPanel extends JPanel implements IPublishPluginPanel, MouseListener {
57 59
    /**
58 60
	 * 
......
66 68
    /** Creates new form BrowserPanel */
67 69
    public BrowserPanel() {
68 70
        initComponents();
69
        //initLabels();
71
        initLabels();
70 72
    }
71
    
73
    private void initLabels(){
74
    	addItem.setText(PluginServices.getText(this,"add"));
75
    	removeItem.setText(PluginServices.getText(this, "remove"));
76
    	NoServersLabel.setText(PluginServices.getText(this,"no_servers_available"));
77
    }
72 78
    private void initComponents() {
73 79
        java.awt.GridBagConstraints gridBagConstraints;
74 80

  
......
83 89
        BrowserPropertiesNPanel = new javax.swing.JPanel();
84 90
        NoServersLabel = new javax.swing.JLabel();
85 91

  
86
        addItem.setText("add_resource");
92
        
87 93
        jPopupMenu1.add(addItem);
88 94

  
89
        removeItem.setText("remove_resource");
95
        
90 96
        jPopupMenu1.add(removeItem);
91 97

  
92 98
        setLayout(new java.awt.GridBagLayout());
......
109 115

  
110 116
        BrowserPropertiesNPanel.setLayout(new java.awt.GridBagLayout());
111 117

  
112
        NoServersLabel.setText("No servers available");
118
        
113 119
        gridBagConstraints = new java.awt.GridBagConstraints();
114 120
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
115 121
        gridBagConstraints.weightx = 1.0;

Also available in: Unified diff