Package org.jboss.dashboard.ui.resources

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


                // Empty skin attribute to give the possibility for no skin selection.
                setAttribute("skinDescription", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
                setAttribute("skinId", "");
                renderFragment("outputSelectedSkin");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    setAttribute("skinDescription", skin.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("skinId", skin.getId());
                    renderFragment("outputSkin");
                }
            } else {
                // Empty skin attribute to give the possibility for no skin selection.
                setAttribute("skinDescription", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
                setAttribute("skinId", "");
                renderFragment("outputSkin");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    boolean currentSkin = skin.getId().equals(getSectionPropertiesHandler().getSkin());
                    setAttribute("skinDescription", skin.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("skinId", skin.getId());
                    renderFragment(currentSkin ? "outputSelectedSkin" : "outputSkin");
                }
            }
            renderFragment("skinsEnd");
View Full Code Here


                setAttribute("skinTitle", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
                setAttribute("skinId", "");
                renderFragment("outputSkin");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    if (getSectionsPropertiesHandler().getSkin() != null) {
                        if (skin.getId().equals(getSectionsPropertiesHandler().getSkin()))
                            setAttribute("selected", "selected");
                        else
                            setAttribute("selected", "");
                    }
                    setAttribute("skinTitle", LocaleManager.lookup().localize(skin.getDescription()));
                    setAttribute("skinId", skin.getId());
                    renderFragment("outputSkin");
                }
                renderFragment("outputSkinsEnd");

                renderFragment("outputEnvelopesStart");
View Full Code Here

                setAttribute("skinTitle", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
                setAttribute("skinId", "");
                renderFragment("outputSkin");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    if (getSectionsPropertiesHandler().getSkin() != null) {
                        if (skin.getId().equals(getSectionsPropertiesHandler().getSkin()))
                            setAttribute("selected", "selected");
                        else
                            setAttribute("selected", "");
                    }
                    setAttribute("skinTitle", LocaleManager.lookup().localize(skin.getDescription()));
                    setAttribute("skinId", skin.getId());
                    renderFragment("outputSkin");
                }
                renderFragment("outputSkinsEnd");

                renderFragment("outputEnvelopesStart");
View Full Code Here

                renderI18nInputs("title", 1000, getWorkspacesPropertiesHandler().getTitle());
                renderFragment("outputEndLine");
                GraphicElement[] skins = UIServices.lookup().getSkinsManager().getAvailableElements();
                renderFragment("outputCreateWorkspaceSkinsStart");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    setAttribute("skinId", skin.getId());
                    setAttribute("skinTitle", skin.getDescription().get(SessionManager.getLang()));
                    if (skin.getId().equals(UIServices.lookup().getSkinsManager().getDefaultElement().getId()))
                        setAttribute("selected", "selected");
                    else
                        setAttribute("selected", "");
                    renderFragment("outputCreateWorkspaceSkins");
                }
View Full Code Here

    }

    public Skin getSkin() {
        String skinId = skin;
        skinId = (skinId == null) ? UIServices.lookup().getSkinsManager().getDefaultElement().getId() : skinId;
        Skin skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(skinId, getId(), null, null);
        if (skinToReturn == null//Try with a global skin
            skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(skinId, null, null, null);
        if (skinToReturn == null//Return default skin
            skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getDefaultElement();
        return skinToReturn;
View Full Code Here

        this.envelopeId = envelopeId;
    }

    public Skin getSkin() {
        if (getSkinId() != null) {
            Skin skinToReturn = null;
            if (getWorkspace() != null)
                skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(getSkinId(), getWorkspace().getId(), getId(), null);
            if (getWorkspace() != null && skinToReturn == null) {  //Try with a workspace
                skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(getSkinId(), getWorkspace().getId(), null, null);
            }
View Full Code Here

            setAttribute("error", getWorkspacePropertiesHandler().hasError("skin"));
            renderFragment("skinsStart");
            SkinsManager skinsManager = UIServices.lookup().getSkinsManager();
            GraphicElement[] skins = skinsManager.getAvailableElements(getWorkspacePropertiesHandler().getWorkspace().getId(), null, null);
            for (int i = 0; i < skins.length; i++) {
                Skin skin = (Skin) skins[i];
                boolean currentSkin = skin.getId().equals(getWorkspacePropertiesHandler().getSkin());
                setAttribute("skinDescription", skin.getDescription());
                setAttribute("skinId", skin.getId());
                renderFragment(currentSkin ? "outputSelectedSkin" : "outputSkin");
            }
            renderFragment("skinsEnd");

View Full Code Here

                // Empty skin attribute to give the possibility for no skin selection.
                setAttribute("skinDescription", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
                setAttribute("skinId", "");
                renderFragment("outputSelectedSkin");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    setAttribute("skinDescription", skin.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("skinId", skin.getId());
                    renderFragment("outputSkin");
                }
            } else {
                // Empty skin attribute to give the possibility for no skin selection.
                setAttribute("skinDescription", bundle.getString("ui.admin.configuration.skin.sameGraphicElement"));
                setAttribute("skinId", "");
                renderFragment("outputSkin");
                for (int i = 0; i < skins.length; i++) {
                    Skin skin = (Skin) skins[i];
                    boolean currentSkin = skin.getId().equals(getSectionPropertiesHandler().getSkin());
                    setAttribute("skinDescription", skin.getDescription().get(SessionManager.getCurrentLocale().getLanguage()));
                    setAttribute("skinId", skin.getId());
                    renderFragment(currentSkin ? "outputSelectedSkin" : "outputSkin");
                }
            }
            renderFragment("skinsEnd");
View Full Code Here

    }

    public Skin getSkin() {
        String skinId = skin;
        skinId = (skinId == null) ? UIServices.lookup().getSkinsManager().getDefaultElement().getId() : skinId;
        Skin skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(skinId, getId(), null, null);
        if (skinToReturn == null//Try with a global skin
            skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(skinId, null, null, null);
        if (skinToReturn == null//Return default skin
            skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getDefaultElement();
        return skinToReturn;
View Full Code Here

        this.envelopeId = envelopeId;
    }

    public Skin getSkin() {
        if (getSkinId() != null) {
            Skin skinToReturn = null;
            if (getWorkspace() != null)
                skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(getSkinId(), getWorkspace().getId(), getId(), null);
            if (getWorkspace() != null && skinToReturn == null) {  //Try with a workspace
                skinToReturn = (Skin) UIServices.lookup().getSkinsManager().getElement(getSkinId(), getWorkspace().getId(), null, null);
            }
View Full Code Here

TOP

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

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.