Ignore:
Timestamp:
09.09.2009 00:46:01 (3 years ago)
Author:
Gubaer
Message:

Removed deprecated constructors in ExtendedDialog
Turned most of the fields in the OSM data classes into private fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java

    r2037 r2083  
    8888 
    8989    /** 
    90      * Sets up the dialog. The first button is always the default. 
    91      * @param parent The parent element that will be used for position and maximum size 
    92      * @param title The text that will be shown in the window titlebar 
    93      * @param content Any component that should be show above the buttons (e.g. JLabel) 
    94      * @param buttonTexts The labels that will be displayed on the buttons 
    95      * @param buttonIcons The path to the icons that will be displayed on the buttons. Path is relative to JOSM's image directory. File extensions need to be included. If a button should not have an icon pass null. 
    96      */ 
    97     @Deprecated public ExtendedDialog(Component parent, String title, Component content, 
    98             String[] buttonTexts, String[] buttonIcons) { 
    99         super(JOptionPane.getFrameForComponent(parent), title, true /* modal */); 
    100         this.parent = parent; 
    101         bTexts = buttonTexts; 
    102         this.content = content; 
    103         this.bIcons = buttonIcons; 
    104         setupDialog(); 
    105         setVisible(true); 
    106     } 
    107  
    108     @Deprecated public ExtendedDialog(Component parent, String title, Component content, 
    109             String[] buttonTexts) { 
    110         this(parent, title, content, buttonTexts, null); 
    111     } 
    112  
    113     /** 
    114      * Sets up the dialog and displays the given message in a breakable label 
    115      */ 
    116     @Deprecated public ExtendedDialog(Component parent, String title, String message, 
    117             String[] buttonTexts, String[] buttonIcons) { 
    118         this(parent, title, string2label(message), buttonTexts, buttonIcons); 
    119     } 
    120  
    121     @Deprecated public ExtendedDialog(Component parent, String title, String message, 
    122             String[] buttonTexts) { 
    123         this(parent, title, message, buttonTexts, null); 
    124     } 
    125  
    126     /** 
    12790     * Allows decorating the buttons with icons. Expects an String[] with paths 
    12891     * to images relative to JOSM/images. 
Note: See TracChangeset for help on using the changeset viewer.