Examples of ThemeStack


Examples of org.beangle.struts2.view.template.ThemeStack

    pushTheme(theme);
    useNewTheme = true;
  }

  private void pushTheme(Theme theme) {
    ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
    if (null == themestack) {
      themestack = new ThemeStack();
      stack.getContext().put(Theme.THEME_STACK, themestack);
    }
    themestack.push(theme);
  }
View Full Code Here

Examples of org.beangle.struts2.view.template.ThemeStack

    }
    themestack.push(theme);
  }

  private void popTheme() {
    ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
    themestack.pop();
    if (themestack.isEmpty()) stack.getContext().remove(Theme.THEME_STACK);
  }
View Full Code Here

Examples of org.beangle.struts2.view.template.ThemeStack

    this.id = id;
  }

  protected Theme getTheme() {
    if (null == theme) {
      ThemeStack themestack = (ThemeStack) stack.getContext().get(Theme.THEME_STACK);
      if (null != themestack) {
        theme = themestack.peek();
      }
      if (null == theme) {
        theme = (Theme) stack.getContext().get(Theme.THEME);
      }
      return 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.