示例#1
0
 public WOComponent addRule() {
   ERD2WExtendedRule rule = new ERD2WExtendedRule();
   rule.setAuthor(50);
   rule.setRhs(new Assignment("test", null));
   group.insertObjectAtIndex(rule, 0);
   setSelectedRule(rule);
   return null;
 }
示例#2
0
 public WOComponent cloneRule() {
   currentRule = currentRule.cloneRule();
   group.insertObjectAtIndex(currentRule, 0);
   setSelectedRule(currentRule);
   return null;
 }