Skip to Content
1
Former Member
Dec 06, 2011 at 10:37 AM

Get pictogram of PCD roles/workset/iviews from INavigationNode object

32 Views

Hi,

I am trying to develop a sitemap wherein I would like to display the pictogram of the object. The information I have is just the INavigationNode object (from which the UR/short URL/Launch URL can be retrieved)

        String pictogramURLstr,pictogramLink;
	NavigationNodes rootNodes = getrootnodes();
	for(Iterator it = rootNodes.iterator(); it.hasNext();)
		{
		INavigationNode rootNode = (INavigationNode)it.next();
		String title =  rootNode.getTitle(request.getLocale());
		Tree tree = new Tree(title, "");
		tree.setRootNodeIsVisible(true);
		GridLayoutCell cell = new GridLayoutCell(rootNode.getName());
                pictogramURLstr="<img src=\""+pictogramLink+"\" style=\"BORDER:NONE; VALIGN:MIDDLE; PADDING-LEFT:3px;\"></img>";
		String text = pictogramURLstr+ "<a href=\"" + "/irj/portal?NavigationTarget=" + rootNode.getName() + "\" target=\"_blank\"; style=\"FONT-WEIGHT: normal; FONT-SIZE: 1.25em; CURSOR: hand; COLOR: #FFF; WHITE-SPACE: nowrap; TEXT-ALIGN: center; TEXT-DECORATION:none; \" >"  +title + "</a>";
                TreeNode root = new TreeNode(rootNode.getName(), text);
                ....
                ....
                }