Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public WOComponent cloneRule() {
   currentRule = currentRule.cloneRule();
   group.insertObjectAtIndex(currentRule, 0);
   setSelectedRule(currentRule);
   return null;
 }