Package org.glassfish.admingui.connector

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


      // 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

TOP

Related Classes of org.glassfish.admingui.connector.TOCItem

Copyright © 2018 www.massapicom. 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.