Examples of allowsNodeAddition()


Examples of org.openbp.jaspira.propertybrowser.nodes.CollectionNode.allowsNodeAddition()

    CollectionNode cdn = currentNode != null ? currentNode.getAssociatedCollectionNode() : null;

    // Enable/disable actions

    // Add enabled if the collection descriptor allows it
    actions [ACTION_INDEX_ADD].setEnabled(cdn != null && cdn.allowsNodeAddition());

    // Copy enabled if we have an object selected
    actions [ACTION_INDEX_COPY].setEnabled(currentNode instanceof ObjectNode);

    // Cut enabled if we have an object selected and we can remove elements
View Full Code Here

Examples of org.openbp.jaspira.propertybrowser.nodes.CollectionNode.allowsNodeAddition()

    actions [ACTION_INDEX_CUT].setEnabled(cdn != null && cdn.allowsNodeRemoval() && cdn.getChildCount() > 0 && currentNode instanceof ObjectNode);

    // Paste enabled if we have an object selected and the current clipboard content
    // is compatible to the object class we manage in the currently selected collection.
    boolean canPaste = false;
    if (cdn != null && cdn.allowsNodeAddition())
    {
      Transferable transferable = ClipboardMgr.getInstance().getCurrentEntry();
      if (transferable != null)
      {
        CollectionDescriptor cd = cdn.getCollectionDescriptor();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.