This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 56878
Collapse All | Expand All

(-)api/doc/changes/apichanges.xml (+15 lines)
Lines 114-119 Link Here
114
114
115
<!-- ACTUAL CHANGES BEGIN HERE: -->
115
<!-- ACTUAL CHANGES BEGIN HERE: -->
116
<changes>
116
<changes>
117
     <change id="get-default-value-NotifyDescriptor">
118
       <api name="dialogs"/>
119
       <summary>Add method <code>NotifyDescriptor.getDefaultValue()</code> </summary>
120
       <version major="5" minor="8"/>
121
       <date day="28" month="3" year="2005"/>
122
       <author login="jrechtacek"/>
123
       <compatibility addition="yes" binary="compatible" semantic="compatible" source="compatible" />
124
       <description>
125
         The <code>NotifyDescriptor.getDefaultValue()</code> returns object which represents the default value.
126
         This default value is introduced in the constructor of <code>NotifyDescriptor</code>.
127
       </description>
128
       <class package="org.openide" name="NotifyDescriptor"/>
129
       <issue number="56878" />
130
     </change>
131
117
     <change id="item-separator-attribute-for-StringArrayPropertyEditor">
132
     <change id="item-separator-attribute-for-StringArrayPropertyEditor">
118
       <api name="explorer"/>
133
       <api name="explorer"/>
119
       <summary>One can specify separator for property editor for <code>String[]</code> </summary>
134
       <summary>One can specify separator for property editor for <code>String[]</code> </summary>
(-)src/org/openide/NotifyDescriptor.java (+13 lines)
Lines 84-89 Link Here
84
    private Object[] adOptions;
84
    private Object[] adOptions;
85
    /** The user's choice value object. */
85
    /** The user's choice value object. */
86
    private Object value;
86
    private Object value;
87
    /** The default initial value. */
88
    private Object defaultValue;
87
    /** The title string for the report. */
89
    /** The title string for the report. */
88
    private String title;
90
    private String title;
89
    /** Is OK button valid (enabled). */
91
    /** Is OK button valid (enabled). */
Lines 176-181 Link Here
176
        this.optionType  = optionType;
178
        this.optionType  = optionType;
177
        this.title       = title;
179
        this.title       = title;
178
        this.value       = initialValue;
180
        this.value       = initialValue;
181
        this.defaultValue = initialValue;
179
    }
182
    }
180
183
181
    /** Method that is called before a value is returned from any of
184
    /** Method that is called before a value is returned from any of
Lines 465-470 Link Here
465
    public Object getValue() {
468
    public Object getValue() {
466
        getterCalled ();
469
        getterCalled ();
467
        return value;
470
        return value;
471
    }
472
    
473
    /**
474
    * Get the default value of descriptor.
475
    *
476
    * @return an <code>Object</code> that represents the default value
477
    * @since 5.8
478
    */
479
    public Object getDefaultValue () {
480
        return defaultValue;
468
    }
481
    }
469
482
470
    /**
483
    /**

Return to bug 56878