/** * Returns the row count. * * @return The row count. */ public int getRowCount() { return paramcche.size(); }
/** * */ public int getRowCount() { return parametercache.size(); }
public boolean hasNext() { return i<size(); }
/** * Returns the property names. * * @return The property names. */ public String[] getPropertyNames() { return properties != null? properties.keySet().toArray(new String[properties.size()]) : SUtil.EMPTY_STRING_ARRAY; }
/** * Print out all collections with more than boundary elements. */ protected static void printCollectionInfo(Iterator it, int boundary) { while(it.hasNext()) { Object o = it.next(); assert o instanceof Map || o instanceof Collection || o instanceof IndexMap; if(o instanceof Map && ((Map)o).size()>boundary) System.out.println(o.hashCode()+": "+((Map)o).size()); else if(o instanceof Collection && ((Collection)o).size()>boundary) System.out.println(o.hashCode()+": "+((Collection)o).size()); else if(o instanceof IndexMap && ((IndexMap)o).size()>boundary) System.out.println(o.hashCode()+": "+((IndexMap)o).size()); } }
/** * Returns the row count. * * @return The row count. */ public int getRowCount() { return getMEvent().getProperties()!=null? getMEvent().getProperties().size(): 0; }
/** * Returns the row count. * * @return The row count. */ public int getRowCount() { int ret = getBpmnActivity().getParameters() != null? getBpmnActivity().getParameters().size() : 0; return ret; }
/** * Returns the row count. * * @return The row count. */ public int getRowCount() { return getBpmnSequenceEdge().getParameterMappings() != null? getBpmnSequenceEdge().getParameterMappings().size() : 0; }
if(mappings != null && mappings.size() > 0)
((ConfigurationTableModel) conftable.getModel()).fireTableRowsDeleted(ind[i], ind[i]); for (int j = 0; j < paramcche.size(); ++j)
/** * Removes parameters. * @param ind Indices of parameters. */ public void removeAllParameters() { if(getBpmnActivity()!=null && getBpmnActivity().getParameters()!=null) { int length = getBpmnActivity().getParameters().size(); Set<MParameter> params = new HashSet<MParameter>(); for(int i=0; i<length; i++) { MParameter param = getBpmnActivity().getParameters().remove(0); params.add(param); } activity.removedParameter(params); ((ParameterTableModel)getModel()).fireTableRowsDeleted(0, length-1); } }
if(getBpmnTask().getProperties()==null || getBpmnTask().getProperties().size()==0)
if(getBpmnTask().getProperties()==null || getBpmnTask().getProperties().size()==0)
DFComponentDescription[] descs = (DFComponentDescription[])components.toArray(new DFComponentDescription[components.size()]); for(int i=0; (con==null || con.getMaxResults()==-1 || ret.size()<con.getMaxResults()) && i<descs.length; i++)
DFComponentDescription[] descs = (DFComponentDescription[])components.toArray(new DFComponentDescription[components.size()]); for(int i=0; (con==null || con.getMaxResults()==-1 || ret.size()<con.getMaxResults()) && i<descs.length; i++)
DFComponentDescription[] descs = (DFComponentDescription[])components.toArray(new DFComponentDescription[components.size()]); for(int i=0; (con==null || con.getMaxResults()==-1 || ret.size()<con.getMaxResults()) && i<descs.length; i++)
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); } };