Changeset 7509 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
- Timestamp:
- 2014-09-07T16:33:52+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r6890 r7509 79 79 setState(initial); 80 80 } 81 81 82 82 /** 83 83 * Constructs a new {@code QuadStateCheckBox}. … … 93 93 @Override 94 94 public void addMouseListener(MouseListener l) { } 95 95 96 96 /** 97 97 * Set the new state. … … 101 101 model.setState(state); 102 102 } 103 104 /** 105 * Return the current state, which is determined by the selection status of the model. 106 * @return The current state 103 104 /** 105 * Return the current state, which is determined by the selection status of the model. 106 * @return The current state 107 107 */ 108 108 public State getState() { 109 109 return model.getState(); 110 110 } 111 111 112 112 @Override 113 113 public void setSelected(boolean b) { … … 121 121 private final class QuadStateDecorator implements ButtonModel { 122 122 private final ButtonModel other; 123 123 124 124 private QuadStateDecorator(ButtonModel other) { 125 125 this.other = other; 126 126 } 127 127 128 128 private void setState(State state) { 129 129 if (state == State.NOT_SELECTED) { … … 149 149 } 150 150 } 151 151 152 152 /** 153 153 * The current state is embedded in the selection / armed
Note:
See TracChangeset
for help on using the changeset viewer.