Package org.jboss.dashboard.ui.resources

Examples of org.jboss.dashboard.ui.resources.Layout


            setAttribute("error", getSectionPropertiesHandler().hasError("layout"));
            renderFragment("layoutsStart");
            GraphicElement[] layouts = UIServices.lookup().getLayoutsManager().getAvailableElements(getSectionPropertiesHandler().getWorkspace().getId(), null, null);
            for (int i = 0; i < layouts.length; i++) {
                Layout layout = (Layout) layouts[i];
                boolean currentLayout = layout.getId().equals(getSectionPropertiesHandler().getLayout());
                setAttribute("layoutDescription", layout.getDescription());
                setAttribute("layoutId", layout.getId());
                renderFragment(currentLayout ? "outputSelectedLayout" : "outputLayout");
            }
            renderFragment("layoutsEnd");

            //layout preview
View Full Code Here


     * Returns the layout this section has, or null if not found
     */
    public Layout getLayout() {
        String lId = layoutId;
        lId = (lId == null) ? UIServices.lookup().getLayoutsManager().getDefaultElement().getId() : lId;
        Layout layoutToReturn = null;
        if (getWorkspace() != null)
            layoutToReturn = (Layout) UIServices.lookup().getLayoutsManager().getElement(lId, getWorkspace().getId(), getId(), null);
        if (getWorkspace() != null && layoutToReturn == null) {  //Try with a workspace layout
            layoutToReturn = (Layout) UIServices.lookup().getLayoutsManager().getElement(lId, getWorkspace().getId(), null, null);
        }
View Full Code Here

                renderFragment("outputEnvelopesEnd");

                renderFragment("outputLayoutsStart");
                GraphicElement[] layouts = UIServices.lookup().getLayoutsManager().getAvailableElements();
                for (int i = 0; i < layouts.length; i++) {
                    Layout layout = (Layout) layouts[i];
                    setAttribute("layoutDescription", LocaleManager.lookup().localize(layout.getDescription()));
                    setAttribute("layoutId", layout.getId());
                    if (layout.getId().equals(getSectionsPropertiesHandler().getLayout()))
                        setAttribute("selected", "selected");
                    else
                        setAttribute("selected", "");
                    renderFragment("outputLayout");
                }
View Full Code Here

     */
    public LayoutRegion getRegion() {
        if (layoutRegionId == null) {
            return null;
        } else {
            Layout layout = section.getLayout();
            if (layout != null) {
                return layout.getRegion(layoutRegionId);
            } else {
                return null;
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.ui.resources.Layout

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.