/** * Returns the row count. * * @return The row count. */ public int getRowCount() { return getMEvent().getProperties()!=null? getMEvent().getProperties().size(): 0; }
/** * Gets the semantic message event properties. * * @return The event properties. */ protected IndexMap<String, MProperty> getMEventProperties() { return getMEvent().getProperties() != null? getMEvent().getProperties() : new IndexMap<String, MProperty>(); }
public void actionPerformed(ActionEvent e) { Method method = (Method)cbmethodname.getSelectedItem(); // System.out.println("setting: "+method); MProperty mprop = task.getProperties().get(PROPERTY_METHOD); UnparsedExpression uexp = new UnparsedExpression(null, String.class, method!=null? "\""+method.toString()+"\"": "null", null); mprop.setInitialValue(uexp); } });
public void actionPerformed(ActionEvent e) { Method method = (Method)cbmethodname.getSelectedItem(); // System.out.println("setting: "+method); MProperty mprop = task.getProperties().get(PROPERTY_METHOD); UnparsedExpression uexp = new UnparsedExpression(null, String.class, method!=null? "\""+method.toString()+"\"": "null", null); mprop.setInitialValue(uexp); } });
public void actionPerformed(ActionEvent e) { if(proptable.isEditing()) proptable.getCellEditor().stopCellEditing(); int[] ind = proptable.getSelectedRows(); if(ind.length>0) { Arrays.sort(ind); IndexMap<String, MProperty> props = getMEvent().getProperties(); for(int i = ind.length - 1; i >= 0; --i) { props.remove(ind[i]); ((PropertyTableModel)proptable.getModel()).fireTableRowsDeleted(ind[i], ind[i]); modelcontainer.setDirty(true); } } } };
public void actionPerformed(ActionEvent e) { if(proptable.isEditing()) proptable.getCellEditor().stopCellEditing(); int row = getMEvent().getProperties()!=null? getMEvent().getProperties().size(): 0; MProperty prop = new MProperty(); prop.setName(createFreeName("name", new CollectionContains(getMEvent().getProperties()!=null? getMEvent().getProperties().keySet(): Collections.EMPTY_LIST))); prop.setInitialValue("null"); getMEvent().addProperty(prop); ((PropertyTableModel)proptable.getModel()).fireTableRowsInserted(row, row); modelcontainer.setDirty(true); } };
MProperty mprop = task.getProperties().get(PROPERTY_SERVICE); UnparsedExpression uexp = new UnparsedExpression(null, String.class, "\""+reqname+"\"", null);
public void actionPerformed(ActionEvent e) { ClassInfo ci = (ClassInfo)cbranking.getSelectedItem(); if(ci!=null) { // System.out.println("setting: "+method); MProperty mprop = task.getProperties().get(PROPERTY_RANKING); UnparsedExpression uexp = new UnparsedExpression(null, String.class, "\""+ci.toString()+"\"", null); mprop.setInitialValue(uexp); } } });
MProperty mprop = task.getProperties().get(PROPERTY_SERVICE); UnparsedExpression uexp = new UnparsedExpression(null, String.class, "\""+reqname+"\"", null);
Map<String, MProperty> ps = getBpmnTask().getProperties().getAsMap(); List<ParameterMetaInfo> params = (List<ParameterMetaInfo>)m.invoke(null, new Object[]{ps, modelcontainer, modelcontainer.getProjectClassLoader()}); pis.addAll(params);
MProperty mprop = vact.getMActivity().getProperties()!=null? vact.getMActivity().getProperties().get(MActivity.IFACE): null; if(mprop!=null) ibox.setSelectedItem(new ClassInfo(iface.getName())); mprop = vact.getMActivity().getProperties()!=null? vact.getMActivity().getProperties().get("method"): null; if(mprop!=null)
Map<String, MProperty> ps = getBpmnTask().getProperties().getAsMap(); List<ParameterMetaInfo> params = (List<ParameterMetaInfo>)m.invoke(null, new Object[]{ps, modelcontainer, modelcontainer.getProjectClassLoader()}); pis.addAll(params);
/** * Gets the value. * * @param rowIndex The row. * @param columnIndex The column. * @return The value. */ public Object getValueAt(int rowIndex, int columnIndex) { Object ret = null; MProperty prop = getMEvent().getProperties().get(rowIndex); switch (columnIndex) { case 0: default: ret = prop.getName(); break; case 1: ret = prop.getClazz(); break; case 2: ret = prop.getInitialValueString(); } return ret; }
cbsername.addActionListener(al); MProperty mprop = task.getProperties().get(PROPERTY_SERVICE); if(mprop.getInitialValue()!=null) mprop = task.getProperties().get(PROPERTY_METHOD); if(mprop.getInitialValue()!=null)
MProperty prop = getMEvent().getProperties().get(rowIndex); switch (columnIndex) if(!value.equals(getValueAt(rowIndex, columnIndex))) getMEvent().getProperties().removeKey(prop.getName()); prop.setName(createFreeName((String)value, new CollectionContains(getMEvent().getProperties().keySet()))); getMEvent().addProperty(prop);
cbsername.addActionListener(al); if(task.getProperties()!=null) MProperty mprop = task.getProperties().get(PROPERTY_SERVICE); if(mprop.getInitialValue()!=null) mprop = task.getProperties().get(PROPERTY_METHOD); if(mprop.getInitialValue()!=null) mprop = task.getProperties().get(PROPERTY_RANKING); if(mprop!=null && mprop.getInitialValue()!=null)
if(getBpmnTask().getProperties()==null || getBpmnTask().getProperties().size()==0)
if(getBpmnTask().getProperties()==null || getBpmnTask().getProperties().size()==0)
IndexMap<String, MProperty> mprops = getBpmnTask().getProperties(); for(final PropertyMetaInfo pmi: props)
IndexMap<String, MProperty> props = getBpmnTask().getProperties(); if(props!=null) props.clear();