Package com.extjs.gxt.ui.client.util

Examples of com.extjs.gxt.ui.client.util.Theme


      if (!fileName.contains("gxt-all.css")) {
        CSS.addStyleSheet(themeId, fileName);
      }
      bodyEl.addStyleName("x-theme-" + themeId);

      Theme t = ThemeManager.findTheme(themeId);
      t.init();

      StateManager.get().set(GWT.getModuleBaseURL() + "theme", theme);
    }

    if (isStrict) { // add to the parent to allow for selectors like
View Full Code Here


  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    Listener<FieldEvent> l = new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent be) {
        Theme c = getValue();
        if (c != last) {
          last = c;
          GXT.switchTheme(c);
        }
      }
View Full Code Here

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    Listener<FieldEvent> l = new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent be) {
        Theme c = getValue();
        if (c != last) {
          last = c;
          GXT.switchTheme(c);
        }
      }
View Full Code Here

    if ((defaultTheme != null && forceTheme) || (theme == null && defaultTheme != null)) {
      theme = defaultTheme.asMap();
    }
    if (theme != null) {
      final String themeId = String.valueOf(theme.get("id"));
      Theme t = ThemeManager.findTheme(themeId);
      if (t != null) {
        t.init();
        String fileName = theme.get("file").toString();
        if (!fileName.contains("gxt-all.css")) {
          CSS.addStyleSheet(themeId, fileName);
        }
        bodyEl.addStyleName("x-theme-" + themeId);
View Full Code Here

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    Listener<FieldEvent> l = new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent be) {
        Theme c = getValue();
        if (c != last) {
          last = c;
          GXT.switchTheme(c);
        }
      }
View Full Code Here

      if (!fileName.contains("gxt-all.css")) {
        CSS.addStyleSheet(themeId, fileName);
      }
      bodyEl.addStyleName("x-theme-" + themeId);

      Theme t = ThemeManager.findTheme(themeId);
      t.init();

      StateManager.get().set(GWT.getModuleBaseURL() + "theme", theme);
    }

    if (isStrict) { // add to the parent to allow for selectors like
View Full Code Here

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    addListener(Events.Change, new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent be) {
        Theme t = (Theme) be.value;
        GXT.switchTheme(t);
      }
    });

  }
View Full Code Here

    if ((defaultTheme != null && forceTheme) || (theme == null && defaultTheme != null)) {
      theme = defaultTheme.asMap();
    }
    if (theme != null) {
      final String themeId = String.valueOf(theme.get("id"));
      Theme t = ThemeManager.findTheme(themeId);
      if (t != null) {
        t.init();
        String fileName = theme.get("file").toString();
        if (!fileName.contains("gxt-all.css")) {
          CSS.addStyleSheet(themeId, fileName);
        }
        bodyEl.addStyleName("x-theme-" + themeId);
View Full Code Here

  @Override
  protected void onRender(Element parent, int index) {
    super.onRender(parent, index);
    Listener<FieldEvent> l = new Listener<FieldEvent>() {
      public void handleEvent(FieldEvent be) {
        Theme c = getValue();
        if (c != last) {
          last = c;
          GXT.switchTheme(c);
        }
      }
View Full Code Here

      if (!fileName.contains("gxt-all.css")) {
        CSS.addStyleSheet(themeId, fileName);
      }
      bodyEl.addStyleName("x-theme-" + themeId);

      Theme t = ThemeManager.findTheme(themeId);
      t.init();

      StateManager.get().set(GWT.getModuleBaseURL() + "theme", theme);
    }

    if (isStrict) { // add to the parent to allow for selectors like
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.util.Theme

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.