throw new IllegalArgumentException("Invalid node type for Index: "
+ nodeObject.getClass().getName());
}
IndexItem item = (IndexItem) nodeObject;
String htmlFile = null;
// 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("text", item.getText());
if (null != (htmlFile = item.getHtmlFileForTarget())) {
// Add leading "/resource/" to ensure it's treated as *context root* relative.
props.put("url", "/resource/" + htmlFile);
}
// LayoutComponent desc = getLayoutComponent();
// setProperty(props, "imageURL", desc.getOption("imageURL"));