Changeset 9231 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2016-01-01T02:35:34+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/SearchBasedRowFilter.java
r8985 r9231 14 14 /** 15 15 * A {@link RowFilter} implementation which matches tags w.r.t. the specified filter's 16 * {@link SearchCompiler.Match#match(org.openstreetmap.josm.data.osm.Tagged)} method.16 * {@link org.openstreetmap.josm.actions.search.SearchCompiler.Match#match(org.openstreetmap.josm.data.osm.Tagged)} method. 17 17 * 18 18 * <p>An {@link javax.swing.RowFilter.Entry}'s column 0 is considered as key, and column 1 is considered as value.</p> -
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r8958 r9231 408 408 /** 409 409 * allows to check whether a projection is supported or not 410 * @param proj projection 410 411 * 411 412 * @return True if projection is supported for this layer -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceSetting.java
r8958 r9231 10 10 * Add the GUI elements to the dialog. The elements should be initialized after 11 11 * the current preferences. 12 * @param gui the preferences tab pane 12 13 */ 13 14 void addGui(PreferenceTabbedPane gui); -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r9224 r9231 808 808 /** 809 809 * Constructs a new {@code OffsetBookmarksPanel}. 810 * @param gui the preferences tab pane 810 811 */ 811 812 OffsetBookmarksPanel(final PreferenceTabbedPane gui) { -
trunk/src/org/openstreetmap/josm/gui/preferences/map/MapPaintPreference.java
r9059 r9231 168 168 } 169 169 170 /** 171 * Returns title from a source entry. 172 * @param entry source entry 173 * @return title 174 * @see MapCSSStyleSource#title 175 */ 170 176 public static String getTitleFromSourceEntry(SourceEntry entry) { 171 177 try { … … 233 239 * the new entries to the user-configured list. Remember the known URLs, 234 240 * so an item that was deleted explicitly is not added again. 241 * @param list new defaults 242 * @return {@code true} if a change occurred 235 243 */ 236 244 private boolean insertNewDefaults(List<SourceEntry> list) { -
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r9078 r9231 108 108 /** 109 109 * Constructs a new {@code PleaseWaitProgressMonitor}. 110 * @param windowTitle window title 110 111 */ 111 112 public PleaseWaitProgressMonitor(String windowTitle) { … … 116 117 /** 117 118 * Constructs a new {@code PleaseWaitProgressMonitor}. 119 * @param dialogParent component to get parent frame from 118 120 */ 119 121 public PleaseWaitProgressMonitor(Component dialogParent) { … … 129 131 /** 130 132 * Constructs a new {@code PleaseWaitProgressMonitor}. 133 * @param dialogParent component to get parent frame from 134 * @param windowTitle window title 131 135 */ 132 136 public PleaseWaitProgressMonitor(Component dialogParent, String windowTitle) { -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r9078 r9231 413 413 /** 414 414 * applies the current state of the tag editor model to a map of tags 415 * @param keepEmpty {@code true} to keep empty tags 415 416 * 416 417 * @return the map of key/value pairs -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r8863 r9231 59 59 } 60 60 61 /** 62 * Sets the next component to request focus after navigation (with tab or enter). 63 * @param nextFocusComponent next component to request focus after navigation (with tab or enter) 64 * @see TagTable#setNextFocusComponent 65 */ 61 66 public void setNextFocusComponent(Component nextFocusComponent) { 62 67 tagTable.setNextFocusComponent(nextFocusComponent); … … 91 96 } 92 97 98 /** 99 * Returns the paste action. 100 * @return the paste action 101 */ 93 102 public AbstractAction getPasteAction() { 94 103 return tagTable.getPasteAction(); … … 141 150 * Creates a new tag editor panel. The editor model is created 142 151 * internally and can be retrieved with {@link #getModel()}. 152 * @param presetHandler tagging preset handler 143 153 */ 144 154 public TagEditorPanel(TaggingPresetHandler presetHandler) { … … 147 157 148 158 /** 149 * Creates a new tag editor panel with a supplied model. If 150 * {@code model} is null, a new model is created. 159 * Creates a new tag editor panel with a supplied model. If {@code model} is null, a new model is created. 151 160 * 152 161 * @param model the tag editor model 162 * @param presetHandler tagging preset handler 153 163 * @param maxCharacters maximum number of characters allowed, 0 for unlimited 154 164 */ -
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r9078 r9231 504 504 } 505 505 506 /** 507 * Sets the next component to request focus after navigation (with tab or enter). 508 * @param nextFocusComponent next component to request focus after navigation (with tab or enter) 509 */ 506 510 public void setNextFocusComponent(Component nextFocusComponent) { 507 511 this.nextFocusComponent = nextFocusComponent; … … 512 516 } 513 517 514 public void 518 public void addOKAccelatorListener(KeyListener l) { 515 519 addKeyListener(l); 516 520 if (editor != null) { -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionItemPriority.java
r8958 r9231 106 106 * Merges two priorities. 107 107 * The resulting priority is always >= the original ones. 108 * @param other other priority 108 109 * @return the merged priority 109 110 */ -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r8959 r9231 204 204 /** 205 205 * Called from the XML parser to set the types this preset affects. 206 * @param types comma-separated primitive types ("node", "way", "relation" or "closedway") 206 207 * @throws SAXException if any SAX error occurs 208 * @see TaggingPresetType#fromString 207 209 */ 208 210 public void setType(String types) throws SAXException { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetMenu.java
r8870 r9231 108 108 /** 109 109 * Sorts the menu items using the translated item text 110 * @param menu menu to sort 110 111 */ 111 112 public static void sortMenu(JMenu menu) { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSelector.java
r8870 r9231 215 215 /** 216 216 * Constructs a new {@code TaggingPresetSelector}. 217 * @param displayOnlyApplicable if {@code true} display "Show only applicable to selection" checkbox 218 * @param displaySearchInTags if {@code true} display "Search in tags" checkbox 217 219 */ 218 220 public TaggingPresetSelector(boolean displayOnlyApplicable, boolean displaySearchInTags) { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/ComboMultiSelect.java
r9044 r9231 258 258 * must be escaped within one entry 259 259 * @param s the string 260 * @return splitted items 260 261 */ 261 262 public static String[] splitEscaped(char delimiter, String s) { -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Roles.java
r8863 r9231 68 68 /** 69 69 * Return either argument, the highest possible value or the lowest allowed value 70 * @param c count 71 * @return the highest possible value or the lowest allowed value 72 * @see #required 70 73 */ 71 74 public long getValidCount(long c) { -
trunk/src/org/openstreetmap/josm/gui/util/AdjustmentSynchronizer.java
r8509 r9231 72 72 73 73 /** 74 * Sets whether adjustableparticipates in adjustment synchronization or not74 * Sets whether {@code adjustable} participates in adjustment synchronization or not 75 75 * 76 76 * @param adjustable the adjustable 77 * @param isParticipating {@code true} if {@code adjustable} participates in adjustment synchronization 77 78 */ 78 79 protected void setParticipatingInSynchronizedScrolling(Adjustable adjustable, boolean isParticipating) { -
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r9223 r9231 62 62 /** 63 63 * disable / enable a component and all its child components 64 * @param root component 65 * @param enabled enabled state 64 66 */ 65 67 public static void setEnabledRec(Container root, boolean enabled) { -
trunk/src/org/openstreetmap/josm/gui/util/TableHelper.java
r8510 r9231 20 20 * adjust the preferred width of column col to the maximum preferred width of the cells 21 21 * requires JTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); 22 * @param tbl table 23 * @param col column index 24 * @param maxColumnWidth maximum column width 22 25 */ 23 26 public static void adjustColumnWidth(JTable tbl, int col, int maxColumnWidth) { -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java
r9059 r9231 92 92 * Alternative constructor that allows to turn off the actionListener. 93 93 * This can be useful if the enter key stroke needs to be forwarded to the default button in a dialog. 94 * @param tc text component 95 * @param addActionListener {@code true} to add the action listener 94 96 */ 95 97 public AbstractTextComponentValidator(JTextComponent tc, boolean addActionListener) { … … 97 99 } 98 100 101 /** 102 * Constructs a new {@code AbstractTextComponentValidator}. 103 * @param tc text component 104 * @param addFocusListener {@code true} to add the focus listener 105 * @param addDocumentListener {@code true} to add the document listener 106 * @param addActionListener {@code true} to add the action listener 107 */ 99 108 public AbstractTextComponentValidator(JTextComponent tc, boolean addFocusListener, boolean addDocumentListener, boolean addActionListener) { 100 109 CheckParameterUtil.ensureParameterNotNull(tc, "tc"); -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r9074 r9231 94 94 * 95 95 * #see setModel 96 * @param model model 96 97 */ 97 98 public MultiSplitLayout(Node model) { … … 196 197 * Split and Leaf nodes. Typically this property is set to false 197 198 * after the (MultiSplitPane) user has dragged a Divider. 199 * @param floatingDividers boolean value 198 200 * 199 201 * @see #getFloatingDividers … … 690 692 private final transient Node node; 691 693 694 /** 695 * Constructs a new {@code InvalidLayoutException}. 696 * @param msg the detail message. The detail message is saved for later retrieval by the {@link #getMessage()} method. 697 * @param node node 698 */ 692 699 public InvalidLayoutException(String msg, Node node) { 693 700 super(msg); … … 1234 1241 1235 1242 /** 1236 * A convenience method that converts a string to a 1237 * MultiSplitLayout model (a tree of Nodes) using a 1238 * a simple syntax. Nodes are represented by 1239 * parenthetical expressions whose first token 1240 * is one of ROW/COLUMN/LEAF. ROW and COLUMN specify 1241 * horizontal and vertical Split nodes respectively, 1242 * LEAF specifies a Leaf node. A Leaf's name and 1243 * weight can be specified with attributes, 1243 * A convenience method that converts a string to a MultiSplitLayout model (a tree of Nodes) using a 1244 * a simple syntax. Nodes are represented by parenthetical expressions whose first token 1245 * is one of ROW/COLUMN/LEAF. ROW and COLUMN specify horizontal and vertical Split nodes respectively, 1246 * LEAF specifies a Leaf node. A Leaf's name and weight can be specified with attributes, 1244 1247 * name=<i>myLeafName</i> weight=<i>myLeafWeight</i>. 1245 * Similarly, a Split's weight can be specified with 1246 * weight=<i>mySplitWeight</i>. 1247 * 1248 * <p> For example, the following expression generates 1249 * a horizontal Split node with three children: 1250 * the Leafs named left and right, and a Divider in 1251 * between: 1248 * Similarly, a Split's weight can be specified with weight=<i>mySplitWeight</i>. 1249 * 1250 * <p> For example, the following expression generates a horizontal Split node with three children: 1251 * the Leafs named left and right, and a Divider in between: 1252 1252 * <pre> 1253 1253 * (ROW (LEAF name=left) (LEAF name=right weight=1.0)) 1254 1254 * </pre> 1255 1255 * 1256 * <p> Dividers should not be included in the string, 1257 * they're added automatcially as needed. Because 1258 * Leaf nodes often only need to specify a name, one 1259 * can specify a Leaf by just providing the name. 1256 * <p> Dividers should not be included in the string, they're added automatcially as needed. Because 1257 * Leaf nodes often only need to specify a name, one can specify a Leaf by just providing the name. 1260 1258 * The previous example can be written like this: 1261 1259 * <pre> … … 1263 1261 * </pre> 1264 1262 * 1265 * <p>Here's a more complex example. One row with 1266 * three elements, the first and last of which are columns 1263 * <p>Here's a more complex example. One row with three elements, the first and last of which are columns 1267 1264 * with two leaves each: 1268 1265 * <pre> … … 1272 1269 * </pre> 1273 1270 * 1274 * 1275 * <p> This syntax is not intended for archiving or 1276 * configuration files . It's just a convenience for 1271 * <p> This syntax is not intended for archiving or configuration files . It's just a convenience for 1277 1272 * examples and tests. 1273 * @param s model as string 1278 1274 * 1279 1275 * @return the Node root of a tree based on s. -
trunk/src/org/openstreetmap/josm/gui/widgets/TextContextualPopupMenu.java
r8840 r9231 81 81 * A menu can only be attached to a single component. 82 82 * @param component The text component that will display the menu and handle its actions. 83 * @param undoRedo {@code true} if undo/redo must be supported 83 84 * @return {@code this} 84 85 * @see #detach()
Note:
See TracChangeset
for help on using the changeset viewer.