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