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

(-)graph/lib/apichanges.xml (+14 lines)
Lines 299-304 Link Here
299
            <class package="org.netbeans.api.visual.layout" name="LayoutFactory" link="yes"/>
299
            <class package="org.netbeans.api.visual.layout" name="LayoutFactory" link="yes"/>
300
            <issue number="105390"/>
300
            <issue number="105390"/>
301
        </change>
301
        </change>
302
303
        <change>
304
            <api name="general"/>
305
            <summary>Widget.getDependencies method added</summary>
306
            <version major="2" minor="5"/>
307
            <date day="21" month="6" year="2007"/>
308
            <author login="dkaspar"/>
309
            <compatibility addition="yes"/>
310
            <description>
311
                Widget.getDependencies method is added
312
            </description>
313
            <class package="org.netbeans.api.visual.widget" name="Widget" link="yes"/>
314
            <issue number="107446"/>
315
        </change>
302
    </changes>
316
    </changes>
303
317
304
    <htmlcontents>
318
    <htmlcontents>
(-)graph/lib/manifest.mf (-1 / +1 lines)
Lines 1-4 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.api.visual
2
OpenIDE-Module: org.netbeans.api.visual
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visual/resources/Bundle.properties
3
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visual/resources/Bundle.properties
4
OpenIDE-Module-Specification-Version: 2.4
4
OpenIDE-Module-Specification-Version: 2.5
(-)graph/lib/src/org/netbeans/api/visual/widget/Widget.java (-3 / +10 lines)
Lines 30-38 Link Here
30
import javax.accessibility.AccessibleContext;
30
import javax.accessibility.AccessibleContext;
31
import java.awt.*;
31
import java.awt.*;
32
import java.awt.geom.AffineTransform;
32
import java.awt.geom.AffineTransform;
33
import java.util.ArrayList;
33
import java.util.*;
34
import java.util.Collections;
35
import java.util.HashMap;
36
import java.util.List;
34
import java.util.List;
37
35
38
/**
36
/**
Lines 462-467 Link Here
462
        if (dependencies == null)
460
        if (dependencies == null)
463
            return;
461
            return;
464
        dependencies.remove (dependency);
462
        dependencies.remove (dependency);
463
    }
464
465
    /**
466
     * Returns a collection of registered dependencies.
467
     * @return the unmodifiable collection of dependencies
468
     * @since 2.5
469
     */
470
    public final Collection<Dependency> getDependencies () {
471
        return dependencies != null ? Collections.unmodifiableCollection (dependencies) : Collections.<Dependency>emptyList ();
465
    }
472
    }
466
473
467
    /**
474
    /**
(-)graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html (-1 / +1 lines)
Lines 303-309 Link Here
303
<td>getLookup
303
<td>getLookup
304
<td>Returns lookup. Not used right now - it will be used later for extending the Widget functionality when the API is stable and incompatible API changes are forbidden.
304
<td>Returns lookup. Not used right now - it will be used later for extending the Widget functionality when the API is stable and incompatible API changes are forbidden.
305
<tr>
305
<tr>
306
<td>addDependency<br>removeDependency
306
<td>addDependency<br>removeDependency<br>getDependencies
307
<td>Allows to assigned a <code>Widget.Dependency</code> listener to the widget for notifying about widget location or boundary changes. Widely used by Anchors. See: <a href="#WidgetDependency">Widget Dependency</a> section.
307
<td>Allows to assigned a <code>Widget.Dependency</code> listener to the widget for notifying about widget location or boundary changes. Widely used by Anchors. See: <a href="#WidgetDependency">Widget Dependency</a> section.
308
<tr>
308
<tr>
309
<td>isVisible<br>setVisible
309
<td>isVisible<br>setVisible

Return to bug 107446