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 60966
Collapse All | Expand All

(-)manifest.mf (-1 / +1 lines)
Lines 2-6 Link Here
2
OpenIDE-Module: org.netbeans.api.progress/1
2
OpenIDE-Module: org.netbeans.api.progress/1
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/progress/module/resources/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/progress/module/resources/Bundle.properties
4
OpenIDE-Module-Layer: org/netbeans/progress/module/resources/layer.xml
4
OpenIDE-Module-Layer: org/netbeans/progress/module/resources/layer.xml
5
OpenIDE-Module-Specification-Version: 1.0
5
OpenIDE-Module-Specification-Version: 1.1
6
6
(-)api/doc/changes/apichanges.xml (+19 lines)
Lines 78-83 Link Here
78
  <changes>
78
  <changes>
79
    <change>
79
    <change>
80
        <api name="progress_api"/>
80
        <api name="progress_api"/>
81
        <summary>Adding <code>setInitialDelay(int)</code> method to <code>ProgressHandle</code> and <code>AggregateProgressHandle</code></summary>
82
        <version major="1" minor="1"/>
83
        <date day="12" month="9" year="2005"/>
84
        <author login="mkleint"/>
85
        <compatibility addition="yes"/>
86
        <description><p>
87
            The newly added methods allow to customize the amount of time that shall pass between the start of handle's progress 
88
            and it's appearance in the status bar. If the progress task finishes fast enough it won't appear in the UI at all.
89
            The default value is around 0.5s. </p>
90
            <p>
91
            For handles that are used in dialogs and elsewhere, this property has no effect and the handle's component is shown immediately.
92
            </p>
93
        </description>
94
        <class package="org.netbeans.api.progress" name="ProgressHandle"/>
95
        <class package="org.netbeans.api.progress.aggregate" name="AggregateProgressHandle"/>
96
        <issue number="60966"/>
97
    </change>      
98
    <change>
99
        <api name="progress_api"/>
81
        <summary>Initial version released</summary>
100
        <summary>Initial version released</summary>
82
        <version major="1" minor="0"/>
101
        <version major="1" minor="0"/>
83
        <date day="4" month="5" year="2005"/>
102
        <date day="4" month="5" year="2005"/>
(-)src/org/netbeans/api/progress/ProgressHandle.java (+13 lines)
Lines 125-130 Link Here
125
        internal.progress(message, workunit);
125
        internal.progress(message, workunit);
126
    }
126
    }
127
    
127
    
128
129
    /**
130
     * allows to set a custom initial delay for the progress task to appear in the
131
     * status bar. This delay marks the time between starting of the progress handle
132
     * and it's appearance in the status bar. If it finishes earlier, it's not shown at all.
133
     * There is a default < 1s value for this. If you want to to appear earlier or later, 
134
     * call this method with the value you prefer before starting the handle.
135
     * <p> Progress bars that are placed in custom dialogs do always appear right away without a delay.
136
     * @param millis amount of miliseconds that shall pass before the progress appears in status bar.
137
     */
138
    /*public*/ void setInitialDelay(int millis) {
139
       internal.setInitialDelay(millis); 
140
    }
128
    
141
    
129
    /**
142
    /**
130
     * have the component in custom location, don't include in the status bar.
143
     * have the component in custom location, don't include in the status bar.
(-)src/org/netbeans/api/progress/aggregate/AggregateProgressHandle.java (+13 lines)
Lines 80-85 Link Here
80
        }
80
        }
81
        finished = true;
81
        finished = true;
82
        handle.finish();
82
        handle.finish();
83
    }
84
    
85
    /**
86
     * allows to set a custom initial delay for the progress task to appear in the
87
     * status bar. This delay marks the time between starting of the progress handle
88
     * and it's appearance in the status bar. If it finishes earlier, it's not shown at all.
89
     * There is a default < 1s value for this. If you want to to appear earlier or later, 
90
     * call this method with the value you prefer before starting the handle.
91
     * <p> Progress bars that are placed in custom dialogs do always appear right away without a delay.
92
     * @param millis amount of miliseconds that shall pass before the progress appears in status bar.
93
     */
94
    /*public*/ void setInitialDelay(int millis) {
95
       //handle.setInitialDelay(millis); 
83
    }    
96
    }    
84
    
97
    
85
    /**
98
    /**

Return to bug 60966