public V next() { return get(i++); }
/** * Gets the value. * * @param rowIndex The row. * @param columnIndex The column. * @return The value. */ public Object getValueAt(int rowIndex, int columnIndex) { Object ret = null; if(columnIndex == 0) { ret = getBpmnSequenceEdge().getParameterMappings().getKey(rowIndex); } else { ret = ((Tuple2<UnparsedExpression, UnparsedExpression>) getBpmnSequenceEdge().getParameterMappings().get(rowIndex)).getFirstEntity().getValue(); } return ret; }
public V previous() { return get(--i); }
/** * Get a property value from the model. * @param name The name. */ public UnparsedExpression getPropertyValue(String name) { UnparsedExpression ret = null; if(properties!=null) { MProperty mprop = properties.get(name); ret = mprop != null? mprop.getInitialValue() : null; } return ret; }
/** * Create a new index map. */ public IndexMap(IndexMap<K, V> imap) { this(); for(K key: imap.keySet()) { put(key, imap.get(key)); } }
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) { terminateEditing(); int[] ind = paramtable.getSelectedRows(); Arrays.sort(ind); for (int i = ind.length - 1; i >= 0; --i) { CachedParameter param = (CachedParameter) paramcche.get(ind[i]); removeParameter(param.name); modelcontainer.setDirty(true); ((ParameterTableModel) paramtable.getModel()).fireTableRowsDeleted(ind[i], ind[i]); } } };
/** * Adds a parameter to the internal parameter set. * * @param paramname The parameter name. */ public void addInternalParameter(String paramname) { MActivity mact = (MActivity) getBpmnElement(); MParameter param = mact.getParameters().get(paramname); if (param != null) { internalparameters.add(paramname); refreshParameter(param); } }
/** * Removes a parameter from the internal parameter set. * * @param paramname The parameter name. */ public void removeInternalParameter(String paramname) { MActivity mact = (MActivity) getBpmnElement(); MParameter param = mact.getParameters().get(paramname); if (param != null) { internalparameters.remove(paramname); refreshParameter(param); } }
/** * Gets the value. * * @param rowIndex The row. * @param columnIndex The column. * @return The value. */ public Object getValueAt(int rowIndex, int columnIndex) { CachedParameter param = (CachedParameter)paramcche.get(rowIndex); switch(columnIndex) { case 0: default: return param.name; case 1: return param.arg; case 2: return param.res; case 3: return param.desc; case 4: return new ClassInfo(param.type); case 5: String confname = (String) confmodel.getSelectedItem(); Object ret = param.inivals.get(confname); return ret != null? ret: ""; } }
/** * Returns whether a cell is editable. * * @param rowIndex The row being queried. * @param columnIndex The column being queried. * @return If a cell is editable. */ public boolean isCellEditable(int rowIndex, int columnIndex) { boolean ret = true; if (columnIndex == 4) { MParameter param = (MParameter)getBpmnActivity().getParameters().get(rowIndex); String inival = (String) getValueAt(rowIndex, 3); if (MParameter.DIRECTION_OUT.equals(param.getDirection()) || inival == null || inival.length() == 0) { ret = false; } } return ret; }
/** * */ public Object getValueAt(int rowIndex, int columnIndex) { MProperty prop = parametercache.get(rowIndex); switch(columnIndex) { case 1: { return prop.getInitialValueString() != null? prop.getInitialValueString() : ""; } case 0: default: { return prop.getName(); } } }
MProperty mprop = task.getProperties().get(PROPERTY_SERVICE); UnparsedExpression uexp = new UnparsedExpression(null, String.class, "\""+reqname+"\"", null);
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); } } });
CachedParameter param = (CachedParameter) paramcche.get(j); if (param.inivals.containsKey(conf.getName()))
/** * 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; }
/** * Gets the value. * * @param rowIndex The row. * @param columnIndex The column. * @return The value. */ public Object getValueAt(int rowIndex, int columnIndex) { MParameter param = (MParameter)getBpmnActivity().getParameters().get(rowIndex); switch (columnIndex) { case 0: return param.getDirection(); case 1: default: return param.getName(); case 2: return param.getClazz(); case 3: return param.getInitialValue() != null? param.getInitialValue().getValue() : ""; case 4: return activity.isInternalParameters(param.getName()); } }
MProperty prop = getMEvent().getProperties().get(rowIndex); switch (columnIndex)