예제 #1
0
  /** 解析布局管理器表达式. */
  public void interpret() {
    if (StringUtils.isEmpty(getLayoutStr())) return;

    String[] layoutSplit = StringUtils.split(getLayoutStr(), EXPRESSION_SPLIT);
    if (StringUtils.isEmpty(layoutSplit)) return;

    interpertColumns(layoutSplit[0]);
    for (String str : layoutSplit) {
      if (StringUtils.isEmpty(str) || MatcherUtil.isNumber(str)) continue;

      interpertFormCell(str);
    }
  }
예제 #2
0
 private boolean isROWSPAN(String str) {
   return MatcherUtil.isAllMatch(str, "^[R|r]-?\\d+$");
 }
예제 #3
0
 private boolean isCELLSPAN(String str) {
   return MatcherUtil.isAllMatch(str, "^[C|c]-?\\d+$");
 }