Changeset 8760 in josm for trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.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/TagEditorPanel.java
r8510 r8760 36 36 private TagEditorModel model; 37 37 /** the tag table */ 38 private TagTable tagTable;38 private final TagTable tagTable; 39 39 40 40 private PresetListPanel presetListPanel; … … 48 48 protected JPanel buildTagTableEditorPanel() { 49 49 JPanel pnl = new JPanel(); 50 tagTable = new TagTable(model);51 50 pnl.setLayout(new BorderLayout()); 52 51 pnl.add(new JScrollPane(tagTable), BorderLayout.CENTER); … … 142 141 */ 143 142 public TagEditorPanel(PresetHandler presetHandler) { 144 this(null, presetHandler );143 this(null, presetHandler, 0); 145 144 } 146 145 … … 150 149 * 151 150 * @param model the tag editor model 152 */ 153 public TagEditorPanel(TagEditorModel model, PresetHandler presetHandler) { 151 * @param maxCharacters maximum number of characters allowed, 0 for unlimited 152 */ 153 public TagEditorPanel(TagEditorModel model, PresetHandler presetHandler, final int maxCharacters) { 154 154 this.model = model; 155 155 this.presetHandler = presetHandler; … … 157 157 this.model = new TagEditorModel(); 158 158 } 159 this.tagTable = new TagTable(this.model, maxCharacters); 159 160 build(); 160 161 }
Note:
See TracChangeset
for help on using the changeset viewer.