Examples of appendProperty()


Examples of com.lassitercg.faces.components.util.VarBuilder.appendProperty()

    for (Column column : sheet.getColumns()) {
      if (!column.isRendered())
        continue;

      VarBuilder options = new VarBuilder(null, true);
      options.appendProperty("type", column.getColType(), true);
      Integer width = column.getColWidth();
      if (width != null)
        options.appendProperty("width", width.toString(), false);
      if (column.isReadonly())
        options.appendProperty("readOnly", "true", false);
View Full Code Here

Examples of com.lassitercg.faces.components.util.VarBuilder.appendProperty()

      VarBuilder options = new VarBuilder(null, true);
      options.appendProperty("type", column.getColType(), true);
      Integer width = column.getColWidth();
      if (width != null)
        options.appendProperty("width", width.toString(), false);
      if (column.isReadonly())
        options.appendProperty("readOnly", "true", false);
      vb.appendArrayValue(options.closeVar().toString(), false);
    }
    wb.nativeAttr("columns", vb.closeVar().toString());
View Full Code Here

Examples of com.lassitercg.faces.components.util.VarBuilder.appendProperty()

      options.appendProperty("type", column.getColType(), true);
      Integer width = column.getColWidth();
      if (width != null)
        options.appendProperty("width", width.toString(), false);
      if (column.isReadonly())
        options.appendProperty("readOnly", "true", false);
      vb.appendArrayValue(options.closeVar().toString(), false);
    }
    wb.nativeAttr("columns", vb.closeVar().toString());
  }
View Full Code Here

Examples of org.sonar.api.config.Settings.appendProperty()

  }

  @Test
  public void createNonEmptyRulesTest() {
    Settings settings = new Settings();
    settings.appendProperty(CxxExternalRuleRepository.RULES_KEY, profile);
    CxxExternalRuleRepository rulerep = new CxxExternalRuleRepository(
      new XMLRuleParser(), settings);
    assertThat(rulerep.createRules()).hasSize(3);
  }
View Full Code Here

Examples of org.sonar.api.config.Settings.appendProperty()

  }

  @Test
  public void createNullRulesTest() {
    Settings settings = new Settings();
    settings.appendProperty(CxxExternalRuleRepository.RULES_KEY, null);
    CxxExternalRuleRepository rulerep = new CxxExternalRuleRepository(
      new XMLRuleParser(), settings);
    assertThat(rulerep.createRules()).hasSize(1);
  }
}
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.