Revision 9521 org.gvsig.online/trunk/org.gvsig.online/org.gvsig.online.app/org.gvsig.online.app.mainplugin/src/main/java/org/gvsig/online/app/mainplugin/addlayer/AbstractWizardOnlineView.java

View differences:

AbstractWizardOnlineView.java
35 35
   JButton btnSelectAllColumns = new JButton();
36 36
   JButton btnTablesFilter = new JButton();
37 37
   JTextField txtTablesFilter = new JTextField();
38
   JButton btnCheckout = new JButton();
39 38
   JButton btnTablesCheckAll = new JButton();
40 39
   JButton btnTablesUncheckAll = new JButton();
41 40
   JButton btnTablesCollapseAll = new JButton();
......
44 43
   JButton btnAddWorkspace = new JButton();
45 44
   JButton btnInitWorkspace = new JButton();
46 45
   JLabel lblWorkspace = new JLabel();
46
   JButton btnDownload = new JButton();
47 47
   JLabel lblStatusTitle = new JLabel();
48 48
   JProgressBar pbStatus = new JProgressBar();
49 49
   JLabel lblStatusMessages = new JLabel();
50 50
   JButton btnAdvancedProperties = new JButton();
51
   JCheckBox chkMaintainStructureInToC = new JCheckBox();
52
   JCheckBox chkCheckScale = new JCheckBox();
53
   JCheckBox chkAddToCWhenLoadingAll = new JCheckBox();
54 51
   JLabel lblReadOnlyNotification = new JLabel();
55
   JButton btnConnectToModel = new JButton();
56 52
   JTabbedPane tabTableInfo = new JTabbedPane();
57 53
   JLabel lblName = new JLabel();
58 54
   JTextField txtName = new JTextField();
......
171 167
      jpanel1.add(createPanel6(),cc.xy(2,10));
172 168
      jpanel1.add(createPanel7(),cc.xy(2,9));
173 169
      tabTableInfo.setName("tabTableInfo");
174
      tabTableInfo.addTab("_General",null,createPanel9());
175
      tabTableInfo.addTab("_Others",null,createPanel12());
170
      tabTableInfo.addTab("_General",null,createPanel8());
171
      tabTableInfo.addTab("_Others",null,createPanel11());
176 172
      jpanel1.add(tabTableInfo,cc.xy(2,7));
177 173

  
178 174
      addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
......
269 265
      CellConstraints cc = new CellConstraints();
270 266
      jpanel1.setLayout(formlayout1);
271 267

  
272
      btnCheckout.setActionCommand("...");
273
      btnCheckout.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/vcsgis-common-checkout.png"));
274
      btnCheckout.setName("btnCheckout");
275
      btnCheckout.setToolTipText("_VCS_Checkout");
276
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
277
      btnCheckout.setBorder(emptyborder1);
278
      jpanel1.add(btnCheckout,cc.xy(6,1));
279

  
280 268
      btnTablesCheckAll.setActionCommand("...");
281 269
      btnTablesCheckAll.setEnabled(false);
282 270
      btnTablesCheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-on.png"));
......
284 272
      btnTablesCheckAll.setOpaque(false);
285 273
      btnTablesCheckAll.setRolloverEnabled(true);
286 274
      btnTablesCheckAll.setToolTipText("_Select_all");
287
      EmptyBorder emptyborder2 = new EmptyBorder(1,1,1,1);
288
      btnTablesCheckAll.setBorder(emptyborder2);
275
      EmptyBorder emptyborder1 = new EmptyBorder(1,1,1,1);
276
      btnTablesCheckAll.setBorder(emptyborder1);
289 277
      jpanel1.add(btnTablesCheckAll,cc.xy(1,1));
290 278

  
291 279
      btnTablesUncheckAll.setActionCommand("...");
......
295 283
      btnTablesUncheckAll.setOpaque(false);
296 284
      btnTablesUncheckAll.setRolloverEnabled(true);
297 285
      btnTablesUncheckAll.setToolTipText("_Unselect_all");
298
      EmptyBorder emptyborder3 = new EmptyBorder(1,1,1,1);
299
      btnTablesUncheckAll.setBorder(emptyborder3);
286
      EmptyBorder emptyborder2 = new EmptyBorder(1,1,1,1);
287
      btnTablesUncheckAll.setBorder(emptyborder2);
300 288
      jpanel1.add(btnTablesUncheckAll,cc.xy(2,1));
301 289

  
302 290
      btnTablesCollapseAll.setActionCommand("...");
......
306 294
      btnTablesCollapseAll.setOpaque(false);
307 295
      btnTablesCollapseAll.setRolloverEnabled(true);
308 296
      btnTablesCollapseAll.setToolTipText("_Collapse_all");
309
      EmptyBorder emptyborder4 = new EmptyBorder(1,1,1,1);
310
      btnTablesCollapseAll.setBorder(emptyborder4);
297
      EmptyBorder emptyborder3 = new EmptyBorder(1,1,1,1);
298
      btnTablesCollapseAll.setBorder(emptyborder3);
311 299
      jpanel1.add(btnTablesCollapseAll,cc.xy(3,1));
312 300

  
313 301
      btnTablesExpandAll.setActionCommand("...");
......
317 305
      btnTablesExpandAll.setOpaque(false);
318 306
      btnTablesExpandAll.setRolloverEnabled(true);
319 307
      btnTablesExpandAll.setToolTipText("_Expand_all");
320
      EmptyBorder emptyborder5 = new EmptyBorder(1,1,1,1);
321
      btnTablesExpandAll.setBorder(emptyborder5);
308
      EmptyBorder emptyborder4 = new EmptyBorder(1,1,1,1);
309
      btnTablesExpandAll.setBorder(emptyborder4);
322 310
      jpanel1.add(btnTablesExpandAll,cc.xy(4,1));
323 311

  
324
      addFillComponents(jpanel1,new int[]{ 5 },new int[0]);
312
      addFillComponents(jpanel1,new int[]{ 5,6 },new int[0]);
325 313
      return jpanel1;
326 314
   }
327 315

  
328 316
   public JPanel createPanel5()
329 317
   {
330 318
      JPanel jpanel1 = new JPanel();
331
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
319
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
332 320
      CellConstraints cc = new CellConstraints();
333 321
      jpanel1.setLayout(formlayout1);
334 322

  
......
343 331
      jpanel1.add(btnAddWorkspace,cc.xy(5,1));
344 332

  
345 333
      btnInitWorkspace.setActionCommand("...");
346
      btnInitWorkspace.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/vcsgis-common-init-workspace.png"));
334
      btnInitWorkspace.setIcon(loadImage("datos/devel/org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-common-init-workspace"));
347 335
      btnInitWorkspace.setName("btnInitWorkspace");
348
      btnInitWorkspace.setToolTipText("_If_you_cant_find_the_layer_click_here_to_initialize_a_new_workingcopy");
336
      btnInitWorkspace.setToolTipText("_If_you_cant_find_the_layer_you_can_click_here_to_create_a_new_workingcopy_from_a_gvSIG_Online_server");
349 337
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
350 338
      btnInitWorkspace.setBorder(emptyborder2);
351 339
      btnInitWorkspace.setHorizontalTextPosition(JButton.LEFT);
......
355 343
      lblWorkspace.setText("_Workingcopy");
356 344
      jpanel1.add(lblWorkspace,cc.xy(1,1));
357 345

  
358
      addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[]{ 2 });
346
      btnDownload.setActionCommand("...");
347
      btnDownload.setIcon(loadImage("datos/devel/org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-common-download.png"));
348
      btnDownload.setName("btnDownload");
349
      btnDownload.setToolTipText("_If_you_cant_find_the_layer_you_can_click_here_to_download_it_from_gvSIG_Online_server_to_an_existent_workingcopy");
350
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
351
      btnDownload.setBorder(emptyborder3);
352
      jpanel1.add(btnDownload,cc.xy(9,1));
353

  
354
      addFillComponents(jpanel1,new int[]{ 2,4,6,8 },new int[]{ 2 });
359 355
      return jpanel1;
360 356
   }
361 357

  
......
395 391
   public JPanel createPanel7()
396 392
   {
397 393
      JPanel jpanel1 = new JPanel();
398
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
394
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
399 395
      CellConstraints cc = new CellConstraints();
400 396
      jpanel1.setLayout(formlayout1);
401 397

  
402 398
      btnAdvancedProperties.setActionCommand("_Advanced_properties");
403 399
      btnAdvancedProperties.setName("btnAdvancedProperties");
404 400
      btnAdvancedProperties.setText("_Advanced_properties");
405
      jpanel1.add(btnAdvancedProperties,cc.xy(5,2));
401
      jpanel1.add(btnAdvancedProperties,cc.xy(5,1));
406 402

  
407
      jpanel1.add(createPanel8(),cc.xywh(1,1,5,1));
408 403
      lblReadOnlyNotification.setName("lblReadOnlyNotification");
409
      jpanel1.add(lblReadOnlyNotification,cc.xywh(1,2,2,1));
404
      jpanel1.add(lblReadOnlyNotification,cc.xywh(1,1,2,1));
410 405

  
411
      btnConnectToModel.setActionCommand("...");
412
      btnConnectToModel.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/vcsgis-common-checkout-datamodel.png"));
413
      btnConnectToModel.setName("btnConnectToModel");
414
      btnConnectToModel.setToolTipText("_VCS_Connect_to_datamodel");
415
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
416
      btnConnectToModel.setBorder(emptyborder1);
417
      jpanel1.add(btnConnectToModel,cc.xy(3,2));
418

  
419
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1 });
406
      addFillComponents(jpanel1,new int[]{ 2,3,4 },new int[0]);
420 407
      return jpanel1;
421 408
   }
422 409

  
423 410
   public JPanel createPanel8()
424 411
   {
425 412
      JPanel jpanel1 = new JPanel();
426
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
427
      CellConstraints cc = new CellConstraints();
428
      jpanel1.setLayout(formlayout1);
429

  
430
      chkMaintainStructureInToC.setActionCommand("_Maintain_structure_in_ToC");
431
      chkMaintainStructureInToC.setName("chkMaintainStructureInToC");
432
      chkMaintainStructureInToC.setText("_Maintain_structure_in_ToC");
433
      jpanel1.add(chkMaintainStructureInToC,cc.xy(1,1));
434

  
435
      chkCheckScale.setActionCommand("_Check_scale");
436
      chkCheckScale.setName("chkCheckScale");
437
      chkCheckScale.setText("_Check_scale");
438
      jpanel1.add(chkCheckScale,cc.xy(3,1));
439

  
440
      chkAddToCWhenLoadingAll.setActionCommand("_Add_to_ToC_when_loading_all ");
441
      chkAddToCWhenLoadingAll.setName("chkAddToCWhenLoadingAll");
442
      chkAddToCWhenLoadingAll.setText("_Add_to_ToC_when_loading_all");
443
      jpanel1.add(chkAddToCWhenLoadingAll,cc.xy(5,1));
444

  
445
      addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]);
446
      return jpanel1;
447
   }
448

  
449
   public JPanel createPanel9()
450
   {
451
      JPanel jpanel1 = new JPanel();
452 413
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
453 414
      CellConstraints cc = new CellConstraints();
454 415
      jpanel1.setLayout(formlayout1);
455 416

  
456
      jpanel1.add(createPanel10(),cc.xy(2,2));
417
      jpanel1.add(createPanel9(),cc.xy(2,2));
457 418
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 });
458 419
      return jpanel1;
459 420
   }
460 421

  
461
   public JPanel createPanel10()
422
   public JPanel createPanel9()
462 423
   {
463 424
      JPanel jpanel1 = new JPanel();
464 425
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
......
490 451
      lblProjection.setText("_Projection");
491 452
      jpanel1.add(lblProjection,cc.xy(1,8));
492 453

  
493
      jpanel1.add(createPanel11(),cc.xy(3,8));
454
      jpanel1.add(createPanel10(),cc.xy(3,8));
494 455
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,3,5,7,9 });
495 456
      return jpanel1;
496 457
   }
497 458

  
498
   public JPanel createPanel11()
459
   public JPanel createPanel10()
499 460
   {
500 461
      JPanel jpanel1 = new JPanel();
501 462
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:NONE");
......
525 486
      return jpanel1;
526 487
   }
527 488

  
528
   public JPanel createPanel12()
489
   public JPanel createPanel11()
529 490
   {
530 491
      JPanel jpanel1 = new JPanel();
531 492
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
532 493
      CellConstraints cc = new CellConstraints();
533 494
      jpanel1.setLayout(formlayout1);
534 495

  
535
      jpanel1.add(createPanel13(),cc.xy(2,2));
496
      jpanel1.add(createPanel12(),cc.xy(2,2));
536 497
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 });
537 498
      return jpanel1;
538 499
   }
539 500

  
540
   public JPanel createPanel13()
501
   public JPanel createPanel12()
541 502
   {
542 503
      JPanel jpanel1 = new JPanel();
543 504
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
......
548 509
      lblFilter.setText("_Filter");
549 510
      jpanel1.add(lblFilter,cc.xy(1,2));
550 511

  
551
      jpanel1.add(createPanel14(),cc.xy(3,2));
512
      jpanel1.add(createPanel13(),cc.xy(3,2));
552 513
      lblVisible.setName("lblVisible");
553 514
      lblVisible.setText("_Visible");
554 515
      jpanel1.add(lblVisible,cc.xy(1,4));
......
560 521
      return jpanel1;
561 522
   }
562 523

  
563
   public JPanel createPanel14()
524
   public JPanel createPanel13()
564 525
   {
565 526
      JPanel jpanel1 = new JPanel();
566 527
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");

Also available in: Unified diff