Changeset 747 in josm for trunk/src/org
- Timestamp:
- 2008-08-06T08:26:40+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/QuadStateCheckBox.java
r679 r747 82 82 if (state == State.NOT_SELECTED) { 83 83 other.setArmed(false); 84 setPressed(false);85 setSelected(false);84 other.setPressed(false); 85 other.setSelected(false); 86 86 setToolTipText(tr("false: the property is explicitly switched off")); 87 87 } else if (state == State.SELECTED) { 88 88 other.setArmed(false); 89 setPressed(false);90 setSelected(true);89 other.setPressed(false); 90 other.setSelected(true); 91 91 setToolTipText(tr("true: the property is explicitly switched on")); 92 92 } else if (state == State.PARTIAL) { 93 93 other.setArmed(true); 94 setPressed(true);95 setSelected(true);94 other.setPressed(true); 95 other.setSelected(true); 96 96 setToolTipText(tr("partial: different selected objects have different values, do not change")); 97 97 } else { 98 98 other.setArmed(true); 99 setPressed(true);100 setSelected(false);99 other.setPressed(true); 100 other.setSelected(false); 101 101 setToolTipText(tr("unset: do not set this property on the selected objects")); 102 102 } … … 134 134 } 135 135 } 136 /** Filter: No one may change the armed status except us. */ 137 public void setArmed(boolean b) { 138 } 136 /** Filter: No one may change the armed/selected/pressed status except us. */ 137 public void setArmed(boolean b) { } 138 public void setSelected(boolean b) { } 139 public void setPressed(boolean b) { } 139 140 /** We disable focusing on the component when it is not 140 141 * enabled. */ … … 150 151 public boolean isPressed() { return other.isPressed(); } 151 152 public boolean isRollover() { return other.isRollover(); } 152 public void setSelected(boolean b) { other.setSelected(b); }153 public void setPressed(boolean b) { other.setPressed(b); }154 153 public void setRollover(boolean b) { other.setRollover(b); } 155 154 public void setMnemonic(int key) { other.setMnemonic(key); }
Note:
See TracChangeset
for help on using the changeset viewer.