Package org.jboss.dashboard.ui.resources

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


                // Empty envelope attribute to give the possibility for no envelope selection.
                setAttribute("envelopeDescription", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
                setAttribute("envelopeId", "");
                renderFragment("outputSelectedEnvelope");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    setAttribute("envelopeDescription", envelope.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("envelopeId", envelope.getId());
                    renderFragment("outputEnvelope");
                }
            } else {
                // Empty envelope attribute to give the possibility for no envelope selection.
                setAttribute("envelopeDescription", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
                setAttribute("envelopeId", "");
                renderFragment("outputEnvelope");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    boolean currentEnvelope = envelope.getId().equals(getSectionPropertiesHandler().getEnvelope());
                    setAttribute("envelopeDescription", envelope.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("envelopeId", envelope.getId());
                    renderFragment(currentEnvelope ? "outputSelectedEnvelope" : "outputEnvelope");
                }
            }
            renderFragment("envelopesEnd");
View Full Code Here


                GraphicElement[] envelopes = UIServices.lookup().getEnvelopesManager().getAvailableElements();
                setAttribute("envelopeId", "");
                setAttribute("envelopeTitle", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
                renderFragment("outputEnvelope");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    if (getSectionsPropertiesHandler().getEnvelope() != null) {
                        if (envelope.getId().equals(getSectionsPropertiesHandler().getEnvelope()))
                            setAttribute("selected", "selected");
                        else
                            setAttribute("selected", "");
                    }
                    setAttribute("envelopeId", envelope.getId());
                    setAttribute("envelopeTitle", LocaleManager.lookup().localize(envelope.getDescription()));
                    renderFragment("outputEnvelope");
                }
                renderFragment("outputEnvelopesEnd");

                renderFragment("outputLayoutsStart");
View Full Code Here

                GraphicElement[] envelopes = UIServices.lookup().getEnvelopesManager().getAvailableElements();
                setAttribute("envelopeId", "");
                setAttribute("envelopeTitle", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
                renderFragment("outputEnvelope");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    if (getSectionsPropertiesHandler().getEnvelope() != null) {
                        if (envelope.getId().equals(getSectionsPropertiesHandler().getEnvelope()))
                            setAttribute("selected", "selected");
                        else
                            setAttribute("selected", "");
                    }
                    setAttribute("envelopeId", envelope.getId());
                    setAttribute("envelopeTitle", LocaleManager.lookup().localize(envelope.getDescription()));
                    renderFragment("outputEnvelope");
                }
                renderFragment("outputEnvelopesEnd");

                renderFragment("outputLayoutsStart");
View Full Code Here

                renderFragment("outputCreateWorkspaceSkinsEnd");

                GraphicElement[] envelopes = UIServices.lookup().getEnvelopesManager().getAvailableElements();
                renderFragment("outputCreateWorkspaceEmvelopesStart");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    setAttribute("envelopeId", envelope.getId());
                    setAttribute("envelopeTitle", envelope.getDescription().get(SessionManager.getLang()));
                    if (envelope.getId().equals(UIServices.lookup().getEnvelopesManager().getDefaultElement().getId()))
                        setAttribute("selected", "selected");
                    else
                        setAttribute("selected", "");
                    renderFragment("outputCreateWorkspaceEmvelopes");
                }
View Full Code Here

    }

    public Envelope getEnvelope() {
        String envelopeId = envelope;
        envelopeId = (envelopeId == null) ? UIServices.lookup().getEnvelopesManager().getDefaultElement().getId() : envelopeId;
        Envelope envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(envelopeId, getId(), null, null);
        if (envelopeToReturn == null) //Try with a global envelope
            envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(envelopeId, null, null, null);
        if (envelopeToReturn == null) //Try with default envelope
            envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getDefaultElement();
        return envelopeToReturn;
View Full Code Here

        return getWorkspace().getSkin();
    }

    public Envelope getEnvelope() {
        if (getEnvelopeId() != null) {
            Envelope envelopeToReturn = null;
            if (getWorkspace() != null)
                envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(getEnvelopeId(), getWorkspace().getId(), getId(), null);
            if (getWorkspace() != null && envelopeToReturn == null) {  //Try with a workspace
                envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(getEnvelopeId(), getWorkspace().getId(), null, null);
            }
View Full Code Here

            setAttribute("error", getWorkspacePropertiesHandler().hasError("envelope"));
            renderFragment("envelopesStart");
            GraphicElement[] envelopes = UIServices.lookup().getEnvelopesManager().getAvailableElements(getWorkspacePropertiesHandler().getWorkspace().getId(), null, null);
            for (int i = 0; i < envelopes.length; i++) {
                Envelope envelope = (Envelope) envelopes[i];
                boolean currentEnvelope = envelope.getId().equals(getWorkspacePropertiesHandler().getEnvelope());
                setAttribute("envelopeDescription", envelope.getDescription());
                setAttribute("envelopeId", envelope.getId());
                renderFragment(currentEnvelope ? "outputSelectedEnvelope" : "outputEnvelope");
            }
            renderFragment("envelopesEnd");

View Full Code Here

                // Empty envelope attribute to give the possibility for no envelope selection.
                setAttribute("envelopeDescription", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
                setAttribute("envelopeId", "");
                renderFragment("outputSelectedEnvelope");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    setAttribute("envelopeDescription", envelope.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("envelopeId", envelope.getId());
                    renderFragment("outputEnvelope");
                }
            } else {
                // Empty envelope attribute to give the possibility for no envelope selection.
                setAttribute("envelopeDescription", bundle.getString("ui.admin.configuration.envelope.sameGraphicElement"));
                setAttribute("envelopeId", "");
                renderFragment("outputEnvelope");
                for (int i = 0; i < envelopes.length; i++) {
                    Envelope envelope = (Envelope) envelopes[i];
                    boolean currentEnvelope = envelope.getId().equals(getSectionPropertiesHandler().getEnvelope());
                    setAttribute("envelopeDescription", envelope.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("envelopeId", envelope.getId());
                    renderFragment(currentEnvelope ? "outputSelectedEnvelope" : "outputEnvelope");
                }
            }
            renderFragment("envelopesEnd");
View Full Code Here

    }

    public Envelope getEnvelope() {
        String envelopeId = envelope;
        envelopeId = (envelopeId == null) ? UIServices.lookup().getEnvelopesManager().getDefaultElement().getId() : envelopeId;
        Envelope envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(envelopeId, getId(), null, null);
        if (envelopeToReturn == null) //Try with a global envelope
            envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(envelopeId, null, null, null);
        if (envelopeToReturn == null) //Try with default envelope
            envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getDefaultElement();
        return envelopeToReturn;
View Full Code Here

        return getWorkspace().getSkin();
    }

    public Envelope getEnvelope() {
        if (getEnvelopeId() != null) {
            Envelope envelopeToReturn = null;
            if (getWorkspace() != null)
                envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(getEnvelopeId(), getWorkspace().getId(), getId(), null);
            if (getWorkspace() != null && envelopeToReturn == null) {  //Try with a workspace
                envelopeToReturn = (Envelope) UIServices.lookup().getEnvelopesManager().getElement(getEnvelopeId(), getWorkspace().getId(), null, null);
            }
View Full Code Here

TOP

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

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.