Ignore:
Timestamp:
2016-07-11T22:48:15+02:00 (10 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/indoorhelper/src/views/PresetButton.java

    r32122 r32637  
    2020
    2121import javax.swing.JButton;
     22
    2223import model.TagCatalog.IndoorObject;
    2324
     
    3031@SuppressWarnings("serial")
    3132class PresetButton extends JButton {
    32        
    33         private IndoorObject indoorObject;
    34        
    35         public PresetButton(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    }
    4849
    4950}
Note: See TracChangeset for help on using the changeset viewer.