Java Code Examples for org.openide.nodes.Children#Keys
The following examples show how to use
org.openide.nodes.Children#Keys .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArtifactNode.java From netbeans with Apache License 2.0 | 6 votes |
public ArtifactNode(final RepositoryInfo info,final NBArtifactInfo artifactInfo) { super(new Children.Keys<NBVersionInfo>() { @Override protected Node[] createNodes(NBVersionInfo arg0) { return new Node[]{new VersionNode(info,arg0,arg0.isJavadocExists(), arg0.isSourcesExists(), arg0.getGroupId() != null) }; } @Override protected void addNotify() { super.addNotify(); setKeys(artifactInfo.getVersionInfos()); } }); setName(artifactInfo.getName()); setDisplayName(artifactInfo.getName()); }
Example 2
Source File: UsagesUI.java From netbeans with Apache License 2.0 | 6 votes |
public GroupNode(final NBGroupInfo group) { super(new Children.Keys<NBArtifactInfo>() { @Override protected Node[] createNodes(NBArtifactInfo arg0) { return new Node[]{new ArtifactNode(arg0)}; } @Override protected void addNotify() { super.addNotify(); setKeys(group.getArtifactInfos()); } }); this.group = group; }
Example 3
Source File: UsagesUI.java From netbeans with Apache License 2.0 | 6 votes |
public ArtifactNode(final NBArtifactInfo artifact) { super(new Children.Keys<NBVersionInfo>() { @Override protected Node[] createNodes(NBVersionInfo arg0) { return new Node[]{new VersionNode(arg0)}; } @Override protected void addNotify() { super.addNotify(); setKeys(artifact.getVersionInfos()); } }); this.artifact = artifact; }