Package org.openqreg.util

Examples of org.openqreg.util.LanguageHandler


   * @return A string containing a html representation of this buttonvarible
   */
  @Override
  public String createHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    LanguageHandler lang = LanguageHandler.getInstance();
    String langID = elemParam.getLangId();

    String description = lang.getTranslation(langID, name + "_D");

    out.append("<input ");
    if (!"".equals(getStylesheet())) {
      out.append(" class=\"" + getStylesheet() + "\" ");
    }
View Full Code Here


   * @see se.ucr.element.StandardVariable#createJS(se.ucr.element.ElementParameter)
   */
  @Override
  public String createJS(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    LanguageHandler lang = LanguageHandler.getInstance();
    String langID = elemParam.getLangId();

    out.append("inputAttributes['");
    out.append(name);
    out.append("'] = new Input('");
    // id
    out.append(name);
    out.append("'");

    //dataId
    out.append(", '");
    out.append(dataId);
    out.append("'");
   
    // subType
    out.append(", 'button'");
    // mandatory
    out.append(", ");
    out.append(mandatory);
    // dado
    out.append(", ");
    out.append(disableOnDisableAll);
    // description
    out.append(", '");
    out.append(lang.getTranslation(langID, getDescriptionID()));
    // helptext
    out.append("', '");
    out.append(lang.getTranslation(langID, getHelpTextID()));
    // min
    out.append("', null");
    // max
    out.append(", null");
    // wMin
View Full Code Here

TOP

Related Classes of org.openqreg.util.LanguageHandler

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.