Revision 33622 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/tools/swing/serv/field/crs/JCRSDynFieldComponent.java

View differences:

JCRSDynFieldComponent.java
68 68

  
69 69
	private static Logger LOG = LoggerFactory.getLogger(JCRSDynFieldComponent.class);
70 70

  
71
//    private JTextField projectionField;
72 71
    private CRSSelectPanel panel;
73 72
    private JButton button;
74 73

  
......
76 75
     * @param proj
77 76
     */
78 77

  
79
    public JCRSDynFieldComponent(DynField dynField, ValueField value)
78
    public JCRSDynFieldComponent(ValueField value)
80 79
        throws ServiceException {
81
        super(dynField, value);
80
        super(value);
82 81
    }
83 82
    /*
84 83
     * (non-Javadoc)
......
111 110
     */
112 111
    public void setNullValue() {
113 112
        this.setCurProj(null);
114
//        getProjectionField().setText("");
115 113
    }
116 114

  
117 115
    public void setNonNullValue(Object value) {
118 116
        if (value instanceof IProjection) {
119 117
            setCurProj((IProjection) value);
120
            // this.projectionField.setText(this.getCurProj().getAbrev());
121 118
        } else {
122 119
            setNullValue();
123 120
        }
......
217 214
            panel.addActionListener(new java.awt.event.ActionListener() {
218 215
                public void actionPerformed(java.awt.event.ActionEvent e) {
219 216
                    if (panel.isOkPressed()) {
220
//                        if (!panel.getCurProj().isProjected()) {
221
////                          if (getCmbMapUnits().getItemCount()==MapContext.NAMES.length) {
222
////                              getCmbMapUnits().addItem(PluginServices.getText(this, Attributes.DEGREES));
223
////                          }
224
//                            getCmbMapUnits().setSelectedItem(PluginServices.getText(this, Attributes.DEGREES));
225
//                            getCmbMapUnits().setEnabled(false);
226
//                        }else {
227
//                            if (getCmbMapUnits().getSelectedItem().equals(PluginServices.getText(this, Attributes.DEGREES))) {
228
//                                getCmbMapUnits().setSelectedIndex(1);
229
//                            }
230
//                            getCmbMapUnits().setEnabled(true);
231
////                          if (!(getCmbMapUnits().getItemCount()==MapContext.NAMES.length)) {
232
////                              getCmbMapUnits().removeItem(PluginServices.getText(this, Attributes.DEGREES));
233
////                          }
234
//                        }
235
//                        view.setProjection(panel.getCurProj());
236 217
                    }
237 218
                }
238 219
            });
239

  
240
//          panel.add(jLblProjName, null);
241
//          panel.add(jLblProj, null);
242
//          panel.add(getJBtnChangeProj(), null);
243 220
        }
244 221
        return panel;
245 222
    }

Also available in: Unified diff