Index: graph/lib/apichanges.xml =================================================================== RCS file: /cvs/graph/lib/apichanges.xml,v retrieving revision 1.21 diff -u -r1.21 apichanges.xml --- graph/lib/apichanges.xml 8 Jun 2007 08:45:00 -0000 1.21 +++ graph/lib/apichanges.xml 21 Jun 2007 12:53:10 -0000 @@ -299,6 +299,20 @@ + + + + Widget.getDependencies method added + + + + + + Widget.getDependencies method is added + + + + Index: graph/lib/manifest.mf =================================================================== RCS file: /cvs/graph/lib/manifest.mf,v retrieving revision 1.12 diff -u -r1.12 manifest.mf --- graph/lib/manifest.mf 8 Jun 2007 08:02:48 -0000 1.12 +++ graph/lib/manifest.mf 21 Jun 2007 12:53:10 -0000 @@ -1,4 +1,4 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.api.visual OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visual/resources/Bundle.properties -OpenIDE-Module-Specification-Version: 2.4 +OpenIDE-Module-Specification-Version: 2.5 Index: graph/lib/src/org/netbeans/api/visual/widget/Widget.java =================================================================== RCS file: /cvs/graph/lib/src/org/netbeans/api/visual/widget/Widget.java,v retrieving revision 1.58 diff -u -r1.58 Widget.java --- graph/lib/src/org/netbeans/api/visual/widget/Widget.java 21 Jun 2007 12:42:04 -0000 1.58 +++ graph/lib/src/org/netbeans/api/visual/widget/Widget.java 21 Jun 2007 12:53:10 -0000 @@ -30,9 +30,7 @@ import javax.accessibility.AccessibleContext; import java.awt.*; import java.awt.geom.AffineTransform; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; +import java.util.*; import java.util.List; /** @@ -462,6 +460,15 @@ if (dependencies == null) return; dependencies.remove (dependency); + } + + /** + * Returns a collection of registered dependencies. + * @return the unmodifiable collection of dependencies + * @since 2.5 + */ + public final Collection getDependencies () { + return dependencies != null ? Collections.unmodifiableCollection (dependencies) : Collections.emptyList (); } /** Index: graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html =================================================================== RCS file: /cvs/graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html,v retrieving revision 1.18 diff -u -r1.18 documentation.html --- graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html 18 Jun 2007 11:23:42 -0000 1.18 +++ graph/lib/src/org/netbeans/api/visual/widget/doc-files/documentation.html 21 Jun 2007 12:53:10 -0000 @@ -303,7 +303,7 @@ getLookup 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. -addDependency
removeDependency +addDependency
removeDependency
getDependencies Allows to assigned a Widget.Dependency listener to the widget for notifying about widget location or boundary changes. Widely used by Anchors. See: Widget Dependency section. isVisible
setVisible