Changeset 12384 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-10T00:55:46+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/tagging
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellEditor.java
r9059 r12384 142 142 } 143 143 144 /** 145 * Sets the manager that helps with auto completion 146 * @param autocomplete The {@link AutoCompletionManager} 147 */ 144 148 public void setAutoCompletionManager(AutoCompletionManager autocomplete) { 145 149 this.autocomplete = autocomplete; 146 150 } 147 151 152 /** 153 * Selects an item from the auto completion list and fills this cell with the value 154 * @param item The text that was selected 155 */ 148 156 public void autoCompletionItemSelected(String item) { 149 157 editor.setText(item); … … 152 160 } 153 161 162 /** 163 * Gets the editor for this cell 164 * @return The editor text field 165 */ 154 166 public AutoCompletingTextField getEditor() { 155 167 return editor; -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r11747 r12384 35 35 */ 36 36 public class TagEditorModel extends AbstractTableModel { 37 /** 38 * The dirty property. It is set whenever this table was changed 39 */ 37 40 public static final String PROP_DIRTY = TagEditorModel.class.getName() + ".dirty"; 38 41 … … 257 260 } 258 261 262 /** 263 * Gets a tag row 264 * @param idx The index of the row 265 * @return The tag model for that row 266 */ 259 267 public TagModel get(int idx) { 260 268 return idx >= tags.size() ? null : tags.get(idx); -
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r10604 r12384 415 415 } 416 416 417 /** 418 * Sets the autocompletion manager that should be used for editing the cells 419 * @param autocomplete The {@link AutoCompletionManager} 420 */ 417 421 public void setAutoCompletionManager(AutoCompletionManager autocomplete) { 418 422 if (autocomplete == null) { … … 426 430 } 427 431 432 /** 433 * Gets the {@link AutoCompletionList} the cell editor is synchronized with 434 * @return The list 435 */ 428 436 public AutoCompletionList getAutoCompletionList() { 429 437 if (editor != null) … … 441 449 } 442 450 451 /** 452 * Gets the editor that is used for the table cells 453 * @return The editor that is used when the user wants to enter text into a cell 454 */ 443 455 public TagCellEditor getTableCellEditor() { 444 456 return editor; … … 457 469 } 458 470 471 /** 472 * Request the focus in a specific cell 473 * @param row The row index 474 * @param col The column index 475 */ 459 476 public void requestFocusInCell(final int row, final int col) { 460 477 changeSelection(row, col, false, false); … … 472 489 } 473 490 491 /** 492 * Marks a component that may be focused without stopping the cell editing 493 * @param component The component 494 */ 474 495 public void addComponentNotStoppingCellEditing(Component component) { 475 496 if (component == null) return; … … 477 498 } 478 499 500 /** 501 * Removes a component added with {@link #addComponentNotStoppingCellEditing(Component)} 502 * @param component The component 503 */ 479 504 public void removeComponentNotStoppingCellEditing(Component component) { 480 505 if (component == null) return;
Note:
See TracChangeset
for help on using the changeset viewer.