Tabnine Logo
org.openide.nodes
Code IndexAdd Tabnine to your IDE (free)

How to use org.openide.nodes

Best Java code snippets using org.openide.nodes (Showing top 20 results out of 1,287)

origin: stackoverflow.com

 public static void main(String... args) throws IOException {

  Document document = Jsoup.parse("<div>"
      + "<a href=\"#\"> I don't want this text </a>"
      + "**I want to retrieve this text**" + "</div>");

  Element a = document.select("a").first();

  Node node = a.nextSibling();
  System.out.println(node.toString());
}
origin: org.netbeans.api/org-openide-nodes

private void addNotifyImpl() {
  // add itself to reflect to changes children of original node
  nodeL = new ChildrenAdapter(this);
  original.addNodeListener(nodeL);
  filterSupport().update();
}
origin: org.netbeans.api/org-openide-nodes

public Node[] callGetNodes(boolean optimalResult) {
  Node[] hold = null;
  if (optimalResult) {
    hold = original.getChildren().getNodes(true);
  }
  hold = Children.this.getNodes();
  return hold;
}
origin: org.netbeans.api/org-openide-nodes

/** Convenience method to create new sheet set named {@link #PROPERTIES}.
*
* @return a new properties sheet set
*/
public static Sheet.Set createPropertiesSet() {
  Sheet.Set ps = new Sheet.Set();
  ps.setName(PROPERTIES);
  ps.setDisplayName(Node.getString("Properties"));
  ps.setShortDescription(Node.getString("HINT_Properties"));
  return ps;
}
origin: org.netbeans.api/org-openide-nodes

@Override
public String getDisplayName() {
  if (delegating(DELEGATE_GET_DISPLAY_NAME)) {
    return original.getDisplayName();
  } else {
    return super.getDisplayName();
  }
}
origin: org.netbeans.api/org-openide-nodes

@Override
public void setDisplayName(String s) {
  if (delegating(DELEGATE_SET_DISPLAY_NAME)) {
    original.setDisplayName(s);
  } else {
    super.setDisplayName(s);
  }
}
origin: org.netbeans.api/org-openide-nodes

/** Called on first use.
*/
@Override
final void callAddNotify() {
  entrySupport().setEntries(createEntries(getMap()), true);
  super.callAddNotify();
}
origin: org.netbeans.api/org-openide-nodes

/** Get a list of property sets.
*
* @return the property sets for this node
* @see #getSheet
*/
public PropertySet[] getPropertySets() {
  Sheet s = getSheet();
  return s.toArray();
}
origin: org.netbeans.api/org-openide-nodes

private synchronized void setSheetImpl(Sheet s) {
  if (sheetCookieL == null) {
    sheetCookieL = new SheetAndCookieListener();
  }
  if (sheet != null) {
    sheet.removePropertyChangeListener(sheetCookieL);
  }
  s.addPropertyChangeListener(sheetCookieL);
  sheet = s;
}
origin: org.netbeans.api/org-openide-nodes

@Override
public void destroy() throws java.io.IOException {
  if (delegating(DELEGATE_DESTROY)) {
    original.destroy();
  } else {
    super.destroy();
  }
}
origin: org.netbeans.api/org-openide-nodes

/** Fires a change event for {@link #PROP_COOKIE}.
* The old and new values are set to null.
*/
protected final void fireCookieChange() {
  Lookup l = findDelegatingLookup();
  if (l instanceof NodeLookup) {
    ((NodeLookup) l).updateLookupAsCookiesAreChanged(null);
  }
  fireOwnPropertyChange(PROP_COOKIE, null, null);
}
origin: org.netbeans.api/org-openide-nodes

public void useNodes(Collection<Node> nodes) {
  // forces creation of the array
  ChildrenArray arr = getArray(null);
  arr.useNodes(this, nodes);
  // assign all there nodes the new children
  for (Node n : nodes) {
    n.assignTo(EntrySupportDefault.this.children, -1);
    n.fireParentNodeChange(null, children.parent);
  }
}
origin: org.netbeans.api/org-openide-nodes

/** Allows subclasses that directly modifies the
* map with nodes to synchronize the state of the children.
* This method should be called under
* MUTEX.writeAccess.
*
* @param key the key that should be refreshed
*/
final void refreshKeyImpl(T key) {
  entrySupport().refreshEntry(new ME(key, null));
}
origin: org.netbeans.api/org-openide-nodes

/** Can be overridden in subclasses (probably in FilterNode) to check
 * whether children are of the right subclass
 */
void updateChildren() {
  Children ch = hierarchy;
  if (ch instanceof Children.LazyChildren) {
    // Replace the children with the ones provided lazily:
    ch = ((Children.LazyChildren) ch).getOriginal();
    setChildren(ch);
  }
}
origin: org.netbeans.api/org-openide-nodes

/** Get the number of nodes in the list.
* @return the count
*/
public final int getNodesCount() {
  checkSupport();
  return entrySupport().getNodesCount(false);
}
origin: org.netbeans.api/org-openide-nodes

/** @return either nodes associated with this children or null if
 * they are not created
 */
private Node[] testNodes() {
  return getEntrySupport() == null ? null : entrySupport().testNodes();
}
origin: org.netbeans.api/org-openide-nodes

/** Method that can be used to test whether the children content has
* ever been used or it is still not initalized.
* @return true if children has been used before
* @see #addNotify
*/
protected final boolean isInitialized() {
  return entrySupport().isInitialized();
}
origin: org.netbeans.api/org-openide-nodes

@Override
public int getNodesCount(boolean optimalResult) {
  node.switchToOriginal();
  return super.getNodesCount(optimalResult);
}
origin: org.netbeans.api/org-openide-nodes

/**
 * extract current node (if was already created)
 */
Node currentNode() {
  synchronized (lock()) {
    return refNode == null ? null : refNode.get();
  }
}
origin: org.netbeans.api/org-openide-nodes

public Node[] callGetNodes(boolean optimalResult) {
  Node[] hold = null;
  if (optimalResult) {
    hold = original.getChildren().getNodes(true);
  }
  hold = Children.this.getNodes();
  return hold;
}
org.openide.nodes

Most used classes

  • Node
    A node represents one element in a hierarchy of objects (beans). It provides all methods that are ne
  • Children
    Container for array of nodes. Can be Node#Node with a node and then all children in the array have t
  • AbstractNode
    A basic implementation of a node.It simplifies creation of the display name, based on a message form
  • FilterNode
    A proxy for another node. Unless otherwise mentioned, all methods of the original node are delegated
  • Sheet$Set
    A list of bean properties. While there can only be one property of a given name, insertion order is
  • Children$Keys,
  • FilterNode$Children,
  • CookieSet,
  • Node$Property,
  • NodeOp,
  • Children$Array,
  • NodeTransfer,
  • PropertySupport$Reflection,
  • Node$PropertySet,
  • NodeNotFoundException,
  • BeanNode,
  • PropertySupport,
  • Children$Map,
  • Index
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now