Changeset 32637 in osm for applications/editors/josm/plugins/indoorhelper/src/views/PresetButton.java
- Timestamp:
- 2016-07-11T22:48:15+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/views/PresetButton.java
r32122 r32637 20 20 21 21 import javax.swing.JButton; 22 22 23 import model.TagCatalog.IndoorObject; 23 24 … … 30 31 @SuppressWarnings("serial") 31 32 class PresetButton extends JButton { 32 33 private IndoorObject indoorObject;34 35 publicPresetButton(IndoorObject object){36 this.setIndoorObject(object);37 }38 39 public IndoorObject getIndoorObject(){40 return this.indoorObject;41 }42 43 public void setIndoorObject(IndoorObject object){44 this.indoorObject = object;45 this.setText(indoorObject.toString());46 this.setToolTipText(indoorObject.toString());47 }33 34 private IndoorObject indoorObject; 35 36 PresetButton(IndoorObject object) { 37 this.setIndoorObject(object); 38 } 39 40 public IndoorObject getIndoorObject() { 41 return this.indoorObject; 42 } 43 44 public void setIndoorObject(IndoorObject object) { 45 this.indoorObject = object; 46 this.setText(indoorObject.toString()); 47 this.setToolTipText(indoorObject.toString()); 48 } 48 49 49 50 }
Note:
See TracChangeset
for help on using the changeset viewer.
