Changeset 8760 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
- Timestamp:
- 2015-09-14T22:44:28+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r8540 r8760 393 393 /** 394 394 * initialize the table 395 */ 396 protected final void init() { 395 * @param maxCharacters maximum number of characters allowed for keys and values, 0 for unlimited 396 */ 397 protected final void init(final int maxCharacters) { 397 398 setAutoResizeMode(JTable.AUTO_RESIZE_OFF); 398 399 setRowSelectionAllowed(true); … … 426 427 // create the table cell editor and set it to key and value columns 427 428 // 428 TagCellEditor tmpEditor = new TagCellEditor( );429 TagCellEditor tmpEditor = new TagCellEditor(maxCharacters); 429 430 setRowHeight(tmpEditor.getEditor().getPreferredSize().height); 430 431 setTagCellEditor(tmpEditor); … … 435 436 * 436 437 * @param model the tag editor model 437 */ 438 public TagTable(TagEditorModel model) { 438 * @param maxCharacters maximum number of characters allowed for keys and values, 0 for unlimited 439 */ 440 public TagTable(TagEditorModel model, final int maxCharacters) { 439 441 super(model, new TagTableColumnModel(model.getColumnSelectionModel()), model.getRowSelectionModel()); 440 442 this.model = model; 441 init( );443 init(maxCharacters); 442 444 } 443 445
Note:
See TracChangeset
for help on using the changeset viewer.