Revision 3649 branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/panels/WMSParamsPanel.java

View differences:

WMSParamsPanel.java
194 194
		if (tabFormats == null) {
195 195
			tabFormats = new javax.swing.JPanel();
196 196
			tabFormats.setLayout(null);
197
			//tabFormats.
198 197
			tabFormats.add(getJPanel1(), null);
199 198
			tabFormats.add(getJPanel5(), null);
200 199
		}
......
348 347
						
349 348
                        boolean isGetMapable = false; // pffff, jajaja
350 349
                        TreePath[] selecciones = getTreeLayers().getSelectionPaths();
351
                        if (selecciones!=null) // no entenc perqu? peta ac?...
350
                        if (selecciones!=null) // no entenc perqu? peta ac? i li arriba null a voltes...
352 351
                        {
353 352
                        	for (int i = 0; i < selecciones.length && !isGetMapable; i++) {
354 353
                        		isGetMapable = ((WMSLayerNode) selecciones[i].getLastPathComponent()).getChildren().size()==0;
......
1185 1184
        String server_title_text = dataSource.getTitle(); 
1186 1185
        String server_abstract_text = dataSource.getAbstract();
1187 1186
        
1187
        if (server_text == null) 
1188
            server_text = "-";
1189
        if (server_type_text == null)
1190
            server_type_text = "-";
1191
        if (server_title_text == null)
1192
            server_title_text = "-";
1193
        if (server_abstract_text == null)
1194
            server_abstract_text = "-";
1195
        
1188 1196
        if (format == null)
1189
            format = "-";
1197
            format = PluginServices.getText(this, "none_selected");
1190 1198
        if (srs == null)
1191
            srs = "-";
1199
            srs = PluginServices.getText(this, "none_selected");
1192 1200
        
1193 1201
        String layers_html = "";
1194 1202
        for (int i = 0; i < layers.size(); i++) {
......
1219 1227
                "    <td width=\"92\" height=\"18\" bgcolor="+bgColor3+" colspan=\"2\"><font face=\"Arial\" size=\"4\"><b>"+layers_title+"</font></b></td>" +
1220 1228
                "  </tr>" + layers_html;
1221 1229
        String dimension_html = "";
1222
//            "  <tr>" +
1223
//            "    <td bgcolor=\"#FFFFFF\"><strong>"+selected_dimensions+"</strong></td>" +
1224
//            "    <td></td>" +
1225
//            "  </tr>" +
1226
//            "  <tr bgcolor="+bgColor0+">" +
1227
//            "    <td width=\"120\" height=\"18\" bgcolor=\"#D6D6D6\"><b>\"+dimension_name+\"</b></td>" +
1228
//            "    <td width=\"322\" height=\"18\">\"+dimension_value+\"</td>" +
1229
//            "  </tr>";
1230
        boolean swap = false;
1231
        for (int i = 0; i < dimensions.size(); i++) {
1232
            String color = swap ? bgColor0 : bgColor1;
1233
            String[] dimension = ((String) dimensions.get(i)).split("=");
1234
            dimension_html +=
1235
                "  <tr valign=\"top\" bgcolor="+color+">" +
1236
                "    <td width=\"120\" height=\"18\" bgcolor=\"#D6D6D6\" align=\"right\"><b>"+dimension[0]+"</b></td>" +
1237
                "    <td width=\"322\" height=\"18\">"+dimension[1]+"</td>" +
1238
                "  </tr>";
1239
            swap = !swap;
1240
        }
1241
            
1230 1242
        if (!dimension_html.equals(""))
1231 1243
            dimension_html = 
1232
                "  <tr>" +
1233
              "    <td bgcolor=\"#FFFFFF\"><strong>"+selected_dimensions+"</strong></td>" +
1234
              "    <td></td>" +
1244
              "  <tr valign=\"top\">" +
1245
              "    <td width=\"92\" height=\"18\" bgcolor="+bgColor3+" colspan=\"2\"><font face=\"Arial\" size=\"4\"><b>"+selected_dimensions+"</font></b></td>" +
1235 1246
              "  </tr>" + dimension_html;
1236 1247
        String html = 
1237 1248

  

Also available in: Unified diff