Changeset 6084 in josm for trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
- Timestamp:
- 2013-07-26T13:38:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r5886 r6084 76 76 77 77 /** renderer used while not editing the file path **/ 78 @Override 78 79 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, 79 80 boolean hasFocus, int row, int column) { … … 93 94 94 95 /** renderer used while the file path is being edited **/ 96 @Override 95 97 public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, 96 98 int row, int column) { … … 178 180 } 179 181 182 @Override 180 183 public void addCellEditorListener(CellEditorListener l) { 181 184 if (l != null) { … … 196 199 } 197 200 201 @Override 198 202 public void cancelCellEditing() { 199 203 fireEditingCanceled(); 200 204 } 201 205 206 @Override 202 207 public Object getCellEditorValue() { 203 208 return value; 204 209 } 205 210 211 @Override 206 212 public boolean isCellEditable(EventObject anEvent) { 207 213 return true; 208 214 } 209 215 216 @Override 210 217 public void removeCellEditorListener(CellEditorListener l) { 211 218 listeners.remove(l); 212 219 } 213 220 221 @Override 214 222 public boolean shouldSelectCell(EventObject anEvent) { 215 223 return true; 216 224 } 217 225 226 @Override 218 227 public boolean stopCellEditing() { 219 228 if (tfFilename.getText() == null || tfFilename.getText().trim().equals("")) { … … 232 241 } 233 242 243 @Override 234 244 public void actionPerformed(ActionEvent e) { 235 245 File f = SaveActionBase.createAndOpenSaveFileChooser(tr("Select filename"), "osm");
Note:
See TracChangeset
for help on using the changeset viewer.