Examples of TOCItem


Examples of javax.help.TOCItem

      return SKIP_BODY;
  }
    }

    private void setNodeAttributes(DefaultMutableTreeNode node) {
  TOCItem item = (TOCItem) node.getUserObject();
  pageContext.setAttribute("name", item.getName());
  String helpID = "";
  if (item.getID() != null) {
      helpID = item.getID().id;
  }
  pageContext.setAttribute("helpID", helpID);
  pageContext.setAttribute("parent", Integer.toHexString(node.getParent().hashCode()));
  String id = getID(node.getParent());
  pageContext.setAttribute("parentID", id);
  pageContext.setAttribute("node", Integer.toHexString(node.hashCode()));
  id = getID(node);
  pageContext.setAttribute("nodeID", id);
  String content = getContentURL(item);
  pageContext.setAttribute("contentURL", content);
  String icon = getIconURL(node, item, true);
  pageContext.setAttribute("iconURL", icon);
  String iconOpen = getIconURL(node, item, false);
  pageContext.setAttribute("iconOpenURL", iconOpen);
  String expansionType = Integer.toString(item.getExpansionType());
  pageContext.setAttribute("expansionType", expansionType);
    }
View Full Code Here

Examples of javax.help.TOCItem

      }

      Iterator<TOCItem> i = sortedItems.iterator();

      while (i.hasNext()) {
        TOCItem item = i.next();
        DefaultMutableTreeNode newChild = new DefaultMutableTreeNode(
            item);
        node.add(newChild);
      }
View Full Code Here

Examples of javax.help.TOCItem

    try {
      imageMapID = ID.create(imageID, hs);
    } catch (BadIDException bex2) {
    }

    TOCItem item = new TOCItem(mapID, imageMapID, hs, Locale.getDefault());
    item.setName(title);
    item.setMergeType("javax.help.AppendMerge");
    item.setExpansionType(TreeItem.COLLAPSE);

    return item;
  }
View Full Code Here

Examples of javax.help.TOCItem

  /**
   * Creates a default TOCItem.
   */
  public TreeItem createItem() {
    return new TOCItem();
  }
View Full Code Here

Examples of org.glassfish.admingui.connector.TOCItem

      throw new IllegalArgumentException("Invalid node type for TOC: "
        + nodeObject.getClass().getName());
  }


  TOCItem item = (TOCItem) nodeObject;

  // Setup the properties...
  // NOTE: All supported options must be handled here,
  //    otherwise they'll be ignored.
  // NOTE: Options will be evaluated later, do not eval here.
  props.put("expanded", item.isExpand());
  props.put("text", item.getText());
  // Add leading "/resource/" to ensure it's treated as *context root* relative.
  props.put("url", "/resource/" + item.getTargetPath());
//  LayoutComponent desc = getLayoutComponent();
//  setProperty(props, "imageURL", desc.getOption("imageURL"));
//  setProperty(props, "target", desc.getOption("target"));
//  setProperty(props, "action", desc.getOption("action"));
// NOTE: Although actionListener is supported, LH currently
View Full Code Here

Examples of org.glassfish.admingui.connector.TOCItem

      // Not there yet, just add it...
      dest.add(item);
  } else {
      // Already there, insert children of item...
      TOCItem parent = dest.get(idx);
      for (TOCItem child : item.getTOCItems()) {
    insertTOCItem(parent.getTOCItems(), child, prefix);
      }
  }
    }
View Full Code Here

Examples of org.glassfish.admingui.plugin.TOCItem

      throw new IllegalArgumentException("Invalid node type for TOC: "
        + nodeObject.getClass().getName());
  }


  TOCItem item = (TOCItem) nodeObject;

  // Setup the properties...
  // NOTE: All supported options must be handled here,
  //    otherwise they'll be ignored.
  // NOTE: Options will be evaluated later, do not eval here.
  props.put("expanded", item.isExpand());
  props.put("text", item.getText());
  // Add leading "/resource/" to ensure it's treated as *context root* relative.
  props.put("url", "/resource/" + item.getTargetPath());
//  LayoutComponent desc = getLayoutComponent();
//  setProperty(props, "imageURL", desc.getOption("imageURL"));
//  setProperty(props, "target", desc.getOption("target"));
//  setProperty(props, "action", desc.getOption("action"));
// NOTE: Although actionListener is supported, LH currently
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.