List of usage examples for java.util Vector add
public synchronized boolean add(E e)
From source file:de.unibayreuth.bayeos.goat.table.MassenTableModel.java
public boolean addRow(ObjektNode objektNode, Vector values) { boolean bol = false; try {//from w w w .jav a 2s.c o m // Update display values java.util.Date von = (java.util.Date) values.elementAt(0); Double wert = (Double) values.elementAt(1); Integer status = (Integer) values.elementAt(2); Vector params = new Vector(); params.add(objektNode.getId()); params.add(von); params.add(wert); params.add(status); bol = ((Boolean) xmlClient.execute("MassenTableHandler.addRow", params)).booleanValue(); vonList.add((int) (von.getTime() / 1000)); wertList.add(wert.doubleValue()); statusList.add(status.byteValue()); fireTableDataChanged(); } catch (XmlRpcException x) { MsgBox.error(x.getMessage()); return false; } return bol; }
From source file:edu.ku.brc.specify.tasks.RecordSetTask.java
/** * Displays UI that asks the user to select a predefined label. * @param tableId the table id/* www .jav a2 s. c o m*/ * @param additionalRS additional RecordSets to be added to the list * @return returns the selected RecordSet or null */ public static RecordSetIFace askForRecordSet(final int tableId, final Vector<RecordSetIFace> additionalRS) { Vector<Integer> id = new Vector<Integer>(1); id.add(tableId); return askForRecordSet(id, additionalRS, false); }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getSrcNodeVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataSrcNode()); return v;/* w ww . j av a 2 s . c o m*/ }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getDstNodeVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataDstNode()); return v;// w ww .j a v a 2 s . c o m }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getHostMatrixVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataHostMatrix()); return v;/*from w ww. ja v a 2s . co m*/ }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getSrcInterfaceVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataSrcInterface()); return v;/* w w w. java 2 s . c o m*/ }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getDstInterfaceVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataDstInterface()); return v;//from ww w.j av a 2s. co m }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getInterfaceMatrixVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataInterfaceMatrix()); return v;// ww w . j a va 2 s . co m }
From source file:cai.flow.packets.V1_Packet.java
@SuppressWarnings("unchecked") public Vector getProtocolVector() { Vector v = new Vector((int) count, (int) count); for (Enumeration flowenum = flows.elements(); flowenum.hasMoreElements();) v.add(((V1_Flow) flowenum.nextElement()).getDataProtocol()); return v;/*from w w w. j ava2 s. co m*/ }
From source file:com.bluexml.xforms.controller.alfresco.agents.SystemAgent.java
/** * /*from ww w. ja va 2s.c o m*/ * @param userName * @return */ @SuppressWarnings("unchecked") public Set<String> getContainingGroups(AlfrescoTransaction transaction, String userName) { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("serviceName", "AuthorityDAO"); parameters.put("methodName", "getContainingAuthorities"); Vector<Object> paramList = new Vector<Object>(); // add parameters to the method in paramList paramList.add(AuthorityType.GROUP); paramList.add(userName); paramList.add(false); parameters.put("methodParams", xstream.toXML(paramList)); Set<String> result; try { String resultStr = controller.requestString(transaction, parameters, MsgId.INT_WEBSCRIPT_OPCODE_SERVICE); result = (Set<String>) xstream.fromXML(resultStr); } catch (ServletException e) { e.printStackTrace(); return null; } return result; }