public void tableChanged(TableModelEvent e) { StringBuffer buf = new StringBuffer(); buf.append("new java.lang.String[]{"); int cnt = p.getTable().getModel().getRowCount(); if(cnt>0) { for(int i=0; i<cnt; i++) { buf.append("\"").append(p.getTable().getModel().getValueAt(i, 0)).append("\""); if(i+1<cnt) buf.append(", "); } } else { buf.append("0"); } buf.append("}"); UnparsedExpression dur = new UnparsedExpression(MBpmnModel.PROPERTY_EVENT_RULE_EVENTTYPES, "java.lang.String[]", buf.toString(), null); ((MActivity)ECARuleEventPropertyPanel.this.event.getBpmnElement()).setPropertyValue(MBpmnModel.PROPERTY_EVENT_RULE_EVENTTYPES, dur); container.setDirty(true); } });
((MActivity) namedelem).setPropertyValue(propname, propval);
((MActivity) namedelem).setPropertyValue(propname, propval);
public void update(DocumentEvent e) { UnparsedExpression dur = new UnparsedExpression("condition", "java.lang.String", getText(e.getDocument()), null); ((MActivity)ECARuleEventPropertyPanel.this.event.getBpmnElement()).setPropertyValue("condition", dur); container.setDirty(true); } });
public void update(DocumentEvent e) { UnparsedExpression dur = new UnparsedExpression("duration", "java.lane.Number", getText(e.getDocument()), null); ((MActivity) TimerEventPropertyPanel.this.event.getBpmnElement()).setPropertyValue("duration", dur); modelcontainer.setDirty(true); } });
public void itemStateChanged(ItemEvent e) { String sel = (String)pa.getSelectedItem(); if(sel==null) { getBpmnTask().removeProperty(MSubProcess.MULTIINSTANCE_ITERATOR); } else { // getBpmnTask().setPropertyValue(MSubProcess.MULTIINSTANCE_ITERATOR, new UnparsedExpression(null, "\""+sel+"\"")); getBpmnTask().setPropertyValue(MSubProcess.MULTIINSTANCE_ITERATOR, new UnparsedExpression(null, sel)); } getModelContainer().setDirty(true); } });
act.setPropertyValue(propname, propval); act.setPropertyValue(name, exp); act.setPropertyValue(name, exp); act.setPropertyValue(name, exp); act.setPropertyValue(key, propval);
act.setPropertyValue(propname, propval); act.setPropertyValue(name, exp); act.setPropertyValue(name, exp); null, context.getClassLoader()); act.setPropertyValue(name, exp); act.setPropertyValue(key, propval);