Changeset 17649 in josm
- Timestamp:
- 2021-03-23T23:31:52+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r16913 r17649 50 50 public void mousePressed(MouseEvent e) { 51 51 if (SwingUtilities.isLeftMouseButton(e)) { 52 grabFocus(); 53 cbModel.nextState(); 52 nextState(); 54 53 } 55 54 } … … 73 72 @Override 74 73 public void actionPerformed(ActionEvent e) { 75 grabFocus(); 76 cbModel.nextState(); 74 nextState(); 77 75 } 78 76 }); … … 132 130 public State getState() { 133 131 return cbModel.getState(); 132 } 133 134 /** 135 * Rotate to the next allowed state. 136 */ 137 public void nextState() { 138 grabFocus(); 139 cbModel.nextState(); 134 140 } 135 141
Note:
See TracChangeset
for help on using the changeset viewer.