Changeset 4414


Ignore:
Timestamp:
2003-05-30T12:01:49+12:00 (21 years ago)
Author:
kjdon
Message:

added in the other constructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/ModalDialog.java

    r4412 r4414  
    4141
    4242    /** Constructor.
     43     */
     44    public ModalDialog() {
     45    super((Frame)null, "", false);
     46   
     47    }
     48    /** Constructor.
    4349     * @param parent the Dialog which is the owener of this dialog.
     50    */
     51    public ModalDialog(Dialog parent) {
     52    super(parent, "", false);
     53    }
     54    /** Constructor.
     55     * @param parent the Dialog which is the owener of this dialog.
     56     * @param modal true if this dialog should be modal, ie block user actions to its owner window, false otherwise.
     57     */
     58    public ModalDialog(Dialog parent, boolean modal) {
     59    super(parent, "", false);
     60    this.modal = modal;
     61         
     62    }
     63   
     64    /** Constructor.
     65     * @param parent the Dialog which is the owner of this dialog.
    4466     * @param title the String to use as the title for this dialog.
    4567     */
     
    5981    }
    6082
     83   /** Constructor.
     84     * @param parent the Frame which is the owener of this dialog.
     85     */
     86    public ModalDialog(Frame parent) {
     87    super(parent, "", false);
     88    }
     89    /** Constructor.
     90     * @param parent the Frame which is the owener of this dialog.
     91     * @param title the String to use as the title for this dialog.
     92     */
     93    public ModalDialog(Frame parent, boolean modal) {
     94    super(parent, "", false);
     95    this.modal = modal;
     96         
     97    }
     98   
     99    /** Constructor.
     100     * @param parent the Frame which is the owner of this dialog.
     101     * @param title the String to use as the title for this dialog.
     102     */
     103    public ModalDialog(Frame parent, String title) {
     104    super (parent, title, false);
     105    }
    61106    /** Constructor.
    62107     * @param parent the Frame which is the owener of this dialog.
Note: See TracChangeset for help on using the changeset viewer.