Changeset 1884 in josm for trunk/src/org
- Timestamp:
- 2009-08-02T19:13:42+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/relation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r1868 r1884 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.event.ActionEvent; … … 25 27 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener; 26 28 27 import static org.openstreetmap.josm.tools.I18n.tr;28 29 29 public class MemberTable extends JTable implements IMemberModelListener { 30 30 … … 39 39 /** 40 40 * constructor 41 * 41 * 42 42 * @param model 43 43 * @param columnModel … … 75 75 * adjusts the width of the columns for the tag name and the tag value to the width of the 76 76 * scroll panes viewport. 77 * 77 * 78 78 * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected 79 * 79 * 80 80 * @param scrollPaneWidth the width of the scroll panes viewport 81 81 */ … … 104 104 * <li>it jumps over cells in the first column</li> <li>it automatically add a new empty row 105 105 * when the user leaves the last cell in the table</li> <ul> 106 * 107 * 106 * 107 * 108 108 */ 109 109 class SelectNextColumnCellAction extends AbstractAction { … … 132 132 * Action to be run when the user navigates to the previous cell in the table, for instance by 133 133 * pressing Shift-TAB 134 * 134 * 135 135 */ 136 136 class SelectPreviousColumnCellAction extends AbstractAction { … … 143 143 } 144 144 145 if (col == 0 && row == 0) {145 if (col <= 0 && row <= 0) { 146 146 // change nothing 147 147 } else if (row > 0) { … … 166 166 /** 167 167 * Replies the popup menu for this table 168 * 168 * 169 169 * @return the popup menu 170 170 */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/TagTable.java
r1781 r1884 35 35 /** 36 36 * This is the tabular editor component for OSM tags. 37 * 37 * 38 38 */ 39 39 @SuppressWarnings("serial") … … 48 48 * The table has two columns. The first column is used for editing rendering and 49 49 * editing tag keys, the second for rendering and editing tag values. 50 * 50 * 51 51 */ 52 52 static class TagTableColumnModel extends DefaultTableColumnModel { … … 83 83 * last cell in the table</li> 84 84 * <ul> 85 * 85 * 86 86 * @author gubaer 87 87 * … … 132 132 133 133 134 if (col == 0 && row == 0) {134 if (col <= 0 && row <= 0) { 135 135 // change nothing 136 136 } else if (col == 1) { … … 147 147 * Action to be run when the user invokes a delete action on the table, for 148 148 * instance by pressing DEL. 149 * 149 * 150 150 * Depending on the shape on the current selection the action deletes individual 151 151 * values or entire tags from the model. 152 * 152 * 153 153 * If the current selection consists of cells in the second column only, the keys of 154 154 * the selected tags are set to the empty string. 155 * 155 * 156 156 * If the current selection consists of cell in the third column only, the values of the 157 157 * selected tags are set to the empty string. 158 * 158 * 159 159 * If the current selection consists of cells in the second and the third column, 160 160 * the selected tags are removed from the model. 161 * 161 * 162 162 * This action listens to the table selection. It becomes enabled when the selection 163 163 * is non-empty, otherwise it is disabled. 164 * 164 * 165 165 * 166 166 */ … … 248 248 /** 249 249 * Action to be run when the user adds a new tag. 250 * 250 * 251 251 * 252 252 */ … … 274 274 275 275 /** 276 * 276 * 277 277 * @return the delete action used by this table 278 278 */ … … 326 326 /** 327 327 * constructor 328 * 328 * 329 329 * @param model 330 330 * @param columnModel … … 340 340 * adjusts the width of the columns for the tag name and the tag value 341 341 * to the width of the scroll panes viewport. 342 * 342 * 343 343 * Note: {@see #getPreferredScrollableViewportSize()} did not work as expected 344 * 344 * 345 345 * @param scrollPaneWidth the width of the scroll panes viewport 346 346 */
Note:
See TracChangeset
for help on using the changeset viewer.