Package org.beangle.struts2.convention.config

Examples of org.beangle.struts2.convention.config.SmartActionConfigBuilderTest$MyPackageConfig


    this.res = res;
  }

  public TextModel getText() {
    if (null == text) {
      text = new TextModel(stack, req, res);
    }
    return text;
  }
View Full Code Here


    }
    return false;
  }

  protected void mergeTemplate(Writer writer) throws Exception {
    TemplateEngine engine = getContainer().getInstance(TemplateEngine.class);
    engine.render(getTheme().getTemplatePath(getClass(), engine.getSuffix()), stack, writer, this);
  }
View Full Code Here

    }
    return false;
  }

  protected void mergeTemplate(Writer writer) throws Exception {
    TemplateEngine engine = getContainer().getInstance(TemplateEngine.class);
    engine.render(getTheme().getTemplatePath(getClass(), engine.getSuffix()), stack, writer, this);
  }
View Full Code Here

  final public boolean usesBody() {
    return true;
  }

  public final void setTheme(String newTheme) {
    this.theme = new Theme(newTheme);
    pushTheme(theme);
    useNewTheme = true;
  }
View Full Code Here

      return theme;
    }
  }

  public void setTheme(String theme) {
    this.theme = new Theme(theme);
  }
View Full Code Here

  final public boolean usesBody() {
    return true;
  }

  public void setTheme(String newTheme) {
    this.theme = new Theme(newTheme);
    this.innerTheme = this.theme;
    stack.getContext().put(Theme.INNER_THEME, innerTheme);
  }
View Full Code Here

      return theme;
    }
  }

  public void setTheme(String theme) {
    this.theme = new Theme(theme);
  }
View Full Code Here

    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

    }
    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

    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

Related Classes of org.beangle.struts2.convention.config.SmartActionConfigBuilderTest$MyPackageConfig

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.