/** 解析布局管理器表达式. */ 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); } }
private boolean isROWSPAN(String str) { return MatcherUtil.isAllMatch(str, "^[R|r]-?\\d+$"); }
private boolean isCELLSPAN(String str) { return MatcherUtil.isAllMatch(str, "^[C|c]-?\\d+$"); }