Revision 9532 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/gui/ViewProperties.java
ViewProperties.java | ||
---|---|---|
94 | 94 |
private javax.swing.JPanel jPanel1 = null; |
95 | 95 |
private javax.swing.JPanel jPanel2 = null; |
96 | 96 |
private javax.swing.JPanel jPanel3 = null; |
97 |
|
|
97 |
|
|
98 | 98 |
private javax.swing.JLabel jLabel3 = null; |
99 | 99 |
private javax.swing.JLabel jLabelSep1 = null; |
100 | 100 |
private WindowInfo m_viewinfo = null; |
... | ... | |
103 | 103 |
//private JButton jBtnChangeProj = null; |
104 | 104 |
protected CRSSelectPanel jPanelProj = null; |
105 | 105 |
private AcceptCancelPanel okCancelPanel = null; |
106 |
private boolean isAcceppted=false; |
|
107 |
|
|
106 | 108 |
/** |
107 | 109 |
* This is the default constructor |
108 | 110 |
* |
... | ... | |
137 | 139 |
this.add(getJPanelProj(), null); |
138 | 140 |
this.add(getJLabel6(), null); |
139 | 141 |
add(getJScrollPane(), null); |
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
142 | 144 |
this.add(getJLabel7(), null); |
143 | 145 |
this.add(getLblColor(), null); |
144 | 146 |
this.add(getBtnColor(), null); |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
147 | 149 |
add(getJLabel3(), null); |
148 | 150 |
this.add(getOkCancelPanel(), null); |
149 | 151 |
txtName.setText(view.getName()); |
... | ... | |
179 | 181 |
} |
180 | 182 |
return jLabelSep1; |
181 | 183 |
} |
182 |
|
|
184 |
|
|
183 | 185 |
/** |
184 | 186 |
* This method initializes txtName |
185 | 187 |
* |
... | ... | |
396 | 398 |
private JButton getBtnColor() { |
397 | 399 |
if (btnColor == null) { |
398 | 400 |
btnColor = new JButton(); |
399 |
|
|
401 |
|
|
400 | 402 |
btnColor.setText("..."); |
401 | 403 |
|
402 | 404 |
btnColor.addActionListener(new java.awt.event.ActionListener() { |
... | ... | |
448 | 450 |
layFlowLayout4.setVgap(9); |
449 | 451 |
jPanel.setLayout(layFlowLayout4); |
450 | 452 |
*/ |
451 |
|
|
453 |
|
|
452 | 454 |
GridLayout layout = new GridLayout(3,1); |
453 |
layout.setVgap(5);
|
|
455 |
layout.setVgap(5); |
|
454 | 456 |
jPanel.setLayout(layout); |
455 |
|
|
456 |
|
|
457 |
|
|
458 |
|
|
457 | 459 |
jPanel.add(getJLabel(), null); |
458 | 460 |
jPanel.add(getJLabel1(), null); |
459 | 461 |
jPanel.add(getJLabel2(), null); |
... | ... | |
525 | 527 |
|
526 | 528 |
return jPanel3; |
527 | 529 |
} |
528 |
|
|
529 | 530 |
|
531 |
|
|
530 | 532 |
/** |
531 | 533 |
* This method initializes jLabel3 |
532 | 534 |
* |
... | ... | |
631 | 633 |
view.getMapContext().getViewPort().setMapUnits(cmbMapUnits.getSelectedIndex()); |
632 | 634 |
view.getMapContext().getViewPort().setDistanceUnits(cmbDistanceUnits.getSelectedIndex()); |
633 | 635 |
view.setBackColor(backColor); |
634 |
|
|
636 |
isAcceppted=true; |
|
635 | 637 |
PluginServices.getMDIManager().closeWindow(ViewProperties.this); |
636 | 638 |
} |
637 | 639 |
}; |
638 | 640 |
cancelAction = new java.awt.event.ActionListener() { |
641 |
|
|
639 | 642 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
643 |
isAcceppted=false; |
|
640 | 644 |
PluginServices.getMDIManager().closeWindow(ViewProperties.this); |
641 | 645 |
} |
642 | 646 |
}; |
... | ... | |
647 | 651 |
} |
648 | 652 |
return okCancelPanel; |
649 | 653 |
} |
650 |
|
|
654 |
|
|
651 | 655 |
private String[] getUnitsNames() { |
652 | 656 |
if (unitsNames == null) { |
653 | 657 |
unitsNames = new String[Attributes.NAMES.length]; |
... | ... | |
657 | 661 |
} |
658 | 662 |
return unitsNames; |
659 | 663 |
} |
664 |
|
|
665 |
public boolean isAcceppted() { |
|
666 |
return isAcceppted; |
|
667 |
} |
|
660 | 668 |
} |
Also available in: Unified diff