예제 #1
0
  public static String deleteWidget(OpalForm<?> argOF, String argSize) {
    Validate.notNull(argOF);
    Validate.notEmpty(argSize);

    return "<div class=\"switch "
        + argSize
        + "\">"
        + argOF.delete()
        + argOF.label("Delete", "")
        + "</div>";
  }
예제 #2
0
  public static String switchWidget(OpalForm<?> argOF, String argFieldName, String argSize) {
    Validate.notNull(argOF);
    Validate.notEmpty(argFieldName);
    Validate.notEmpty(argSize);

    return "<div class=\"switch "
        + argSize
        + "\">"
        + argOF.checkbox(argFieldName)
        + "<label for=\""
        + argOF.id(argFieldName)
        + "\"></label></div>";
  }