Examples of ResourceGalleryManager


Examples of org.jboss.dashboard.workspace.ResourceGalleryManager

    public void service(HttpServletRequest request, HttpServletResponse response) throws FormatterException {
        String numCols = (String) getParameter("numCols");
        numCols = numCols == null ? "3" : numCols;
        int cols = Integer.parseInt(numCols);
        Section currentSection = getNavigationManager().getCurrentSection();
        ResourceGalleryManager resourceGalleryManager = UIServices.lookup().getResourceGalleryManager();
        GraphicElement[] galleries =
                currentSection != null ?
                        resourceGalleryManager.getAvailableElements(currentSection.getWorkspace().getId(), currentSection.getId(), null) :
                        resourceGalleryManager.getAvailableElements();

        if (galleries.length > 0) {
            renderFragment("outputStart");
            for (int i = 0; i < galleries.length; i++) {
                GraphicElement gallery = galleries[i];
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.