Examples of Theme


Examples of org.osforce.connect.entity.system.Theme

    updateSite(site);
  }

  public void updateSite(Site site) {
    if(site.getThemeId()!=null) {
      Theme theme = themeDao.get(site.getThemeId());
      site.setTheme(theme);
    }
    if(site.getId()==null) {
      siteDao.save(site);
    } else {
View Full Code Here

Examples of org.pagepress.themes.Theme

                    Element eElement = (Element) nNode;
                    String name = eElement.getElementsByTagName("title").item(0).getTextContent();
                    String templateFN = eElement.getElementsByTagName("template").item(0).getTextContent();
                    String author = eElement.getElementsByTagName("author").item(0).getTextContent();
                    File template = new File(templateFN);
                    importedThemes.add(new Theme(name, template, author));
                }
            }
        }
        System.out.println("Themes have been imported!");
    }
View Full Code Here

Examples of org.pentaho.chart.model.Theme

          return themeFiles;
        }
      };

      if ( !( chartModel.getPlot() instanceof DialPlot ) ) {
        Theme chartTheme = chartThemeFactory.getTheme( chartModel.getTheme() );
        if ( chartTheme != null ) {
          chartTheme.applyTo( chartModel );
        }
      }
    }

    // Make sure chart engine is loaded
View Full Code Here

Examples of org.pentaho.platform.api.ui.Theme

        String themeId = themeNode.getName();
        String themeName = StringUtils.defaultIfEmpty( themeNode.attributeValue( "display-name" ), themeId );
        if ( themeName.startsWith( "${" ) ) {
          themeName = resourceBundle.getString( themeName );
        }
        Theme theme =
            new Theme( themeId, themeName, "content/" + pluginId + "/" + rootThemeFolder + "/" + themeId + "/" );
        theme.setHidden( "true".equals( themeNode.attributeValue( "hidden" ) ) );

        if ( "true".equals( themeNode.attributeValue( "system" ) ) ) {
          moduleThemeInfo.getSystemThemes().add( theme );
        } else {
          moduleThemeInfo.getModuleThemes().add( theme );
        }

        List<Element> resourceList = themeNode.elements();
        for ( Element res : resourceList ) {
          theme.addResource( new ThemeResource( theme, res.getText() ) );
        }

      }
      moduleThemes.put( pluginId, moduleThemeInfo );
    } catch ( Exception e ) {
View Full Code Here

Examples of org.richfaces.skin.Theme

    return namespace;
  }


  public Theme getTheme(FacesContext context, UIPage page) {
    Theme theme = null;
    String themeName = page.getTheme();
    if(null != themeName && themeName.length()>0){
      theme = SkinFactory.getInstance().getTheme(context, themeName);
    }
    return theme;
View Full Code Here

Examples of org.richfaces.skin.Theme

    }
    return theme;
  }
 
  public void themeStyle(FacesContext context, UIPage component) throws IOException{
    Theme theme = getTheme(context, component);
    if(null != theme){
      String style = theme.getStyle();
      if(null != style){
        ResponseWriter writer = context.getResponseWriter();
        writer.startElement(HTML.LINK_ELEMENT, component);
        writer.writeAttribute(HTML.TYPE_ATTR, "text/css", null);
        writer.writeAttribute(HTML.REL_ATTR, "stylesheet", null);
View Full Code Here

Examples of org.richfaces.skin.Theme

    }
   
  }

  public void themeScript(FacesContext context, UIPage component) throws IOException{
    Theme theme = getTheme(context, component);
    if(null != theme){
      String script = theme.getScript();
      if(null != script){
        ResponseWriter writer = context.getResponseWriter();
        writer.startElement(HTML.SCRIPT_ELEM, component);
        writer.writeAttribute(HTML.TYPE_ATTR, "text/javascript", null);
        script = context.getApplication().getViewHandler().getResourceURL(context, script);
View Full Code Here

Examples of org.springframework.ui.context.Theme

  public Theme getTheme(String themeName) {
    if (themeName == null) {
      return null;
    }
    synchronized (this.themeCache) {
      Theme theme = (Theme) this.themeCache.get(themeName);
      if (theme == null) {
        String basename = this.basenamePrefix + themeName;
        MessageSource messageSource = createMessageSource(basename);
        theme = new SimpleTheme(themeName, messageSource);
        initParent(theme);
View Full Code Here

Examples of org.tomighty.ui.theme.Theme

  }

  @Override
  public void paint(Graphics g, JComponent component) {
    Canvas canvas = new Canvas(component.getSize());
    Theme theme = look.theme();
    theme.paint(canvas);
    canvas.drawBorder(look.colors().shadow());
    g.drawImage(canvas.image(), 0, 0, null);
  }
View Full Code Here

Examples of org.wso2.carbon.dashboard.mgt.theme.common.Theme

            Theme[] userThemes = new Theme[0];

            if (themeCol != null) {
                gsThemes = new Theme[themeCol.getChildCount()];
                for (int i = 0; i < themeCol.getChildCount(); i++) {
                    Theme theme = new Theme();
                    if (themeRegistry.resourceExists(themeCol.getChildren()[i]) && themeRegistry.resourceExists(themeCol.getChildren()[i] + ThemeConstants.THEME_CONF_PATH)) {
                        Resource themeConf = themeRegistry.get(themeCol.getChildren()[i] + ThemeConstants.THEME_CONF_PATH);
                        if (themeRegistry.resourceExists(themeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_CSS))) {
                            String cssPath = themeRegistry.get(themeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_CSS)).getPath();
                            theme.setCssUrl(cssPath);
                        }
                        if (themeRegistry.resourceExists(themeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_THUMB))) {
                            String thumbPath = themeRegistry.get(themeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_THUMB)).getPath();
                            theme.setThumbUrl(thumbPath);
                        }

                        theme.setThemeName(themeConf.getProperty(ThemeConstants.PROP_NAME));
                        theme.setThemeAuthor(themeConf.getProperty(ThemeConstants.PROP_AUTHOR));
                        theme.setThemeDesc(themeConf.getProperty(ThemeConstants.PROP_DESC));

                    }
                    gsThemes[i] = theme;
                }
            }
            if (userThemeCol != null) {
                userThemes = new Theme[userThemeCol.getChildCount()];
                for (int i = 0; i < userThemeCol.getChildCount(); i++) {
                    Theme theme = new Theme();
                    if (themeRegistry.resourceExists(userThemeCol.getChildren()[i]) && themeRegistry.resourceExists(userThemeCol.getChildren()[i] + ThemeConstants.THEME_CONF_PATH)) {
                        Resource themeConf = themeRegistry.get(userThemeCol.getChildren()[i] + ThemeConstants.THEME_CONF_PATH);
                        if (themeRegistry.resourceExists(userThemeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_CSS))) {
                            String cssPath = themeRegistry.get(userThemeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_CSS)).getPath();
                            theme.setCssUrl(cssPath);
                        }
                        if (themeRegistry.resourceExists(userThemeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_THUMB))) {
                            String thumbPath = themeRegistry.get(userThemeCol.getChildren()[i] + "/" + themeConf.getProperty(ThemeConstants.PROP_THUMB)).getPath();
                            theme.setThumbUrl(thumbPath);
                        }

                        theme.setThemeName(themeConf.getProperty(ThemeConstants.PROP_NAME));
                        theme.setThemeAuthor(themeConf.getProperty(ThemeConstants.PROP_AUTHOR));
                        theme.setThemeDesc(themeConf.getProperty(ThemeConstants.PROP_DESC));

                    }
                    userThemes[i] = theme;
                }
            }
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.