List of usage examples for java.util Vector Vector
public Vector()
From source file:com.kappaware.logtrawler.output.flow.AbstractJsonOutputFlow.java
@Override public void output(OutputItem item) { if (this.outputArray) { List<OutputItem> l = new Vector<OutputItem>(); l.add(item);/* w w w . j av a 2 s . c om*/ this.doOutput(l); } else { this.doOutput(item); } }
From source file:com.fusesource.forge.jmstest.threading.ReleaseManager.java
private ReleaseManager() { releaseables = new Vector<Releaseable>(); }
From source file:com.iucosoft.eavertizare.gui.models.ClientiTableModel.java
public void refreshModel() { clearModel();/* www .j av a 2 s .co m*/ List<Firma> listaFirme = firmaDao.findAll(); List<Client> listaClienti; SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy"); int nr = 1; // rowAllClients(); for (Firma firma : listaFirme) { listaClienti = clientsDao.findAllClientsForFirmaLocal(firma); for (Client client : listaClienti) { Vector rowData = new Vector(); rowData.addElement(nr++); rowData.addElement(client.getNume()); rowData.addElement(client.getPrenume()); rowData.addElement(client.getNrTelefon()); rowData.addElement(client.getEmail()); rowData.addElement(sdf.format(client.getDateExpirare())); rowData.addElement(client.getFirma().getNumeFirma()); // rowData.addElement(new Boolean(true)); rowData.addElement(client.isTrimis()); super.addRow(rowData); } } }
From source file:org.openmrs.module.sync.web.controller.UpgradeFormController.java
@SuppressWarnings("unchecked") @RequestMapping(value = "/module/sync/upgrade", method = RequestMethod.GET) public void showThePage(ModelMap modelMap) throws Exception { List<String> fromOptions = new Vector<String>(); // only make 1.5.* an option if running at least 1.6.0 if (ModuleUtil.compareVersion(OpenmrsConstants.OPENMRS_VERSION_SHORT, "1.6.0") >= 0) { fromOptions.add("1.5.*"); }/*from w w w .j a va 2 s .co m*/ modelMap.put("fromOptions", fromOptions); }
From source file:com.nineteendrops.tracdrops.client.core.Utils.java
public static Vector fillVectorFromArrayList(ArrayList<String> arrayList) { Vector vector = new Vector(); if (arrayList != null) { for (String s : arrayList) { vector.add(s);//w w w .j a v a 2 s.c om } } return vector; }
From source file:genepi.db.GroupedListHandler.java
public Map<Object, List<Object>> toBeanList(ResultSet rs) throws SQLException { Map<Object, List<Object>> result = new HashMap<Object, List<Object>>(); int row = 0;//from w ww. j av a 2 s . c o m while (rs.next()) { Object key = mapper.getRowKey(rs, row); Object value = mapper.getRowValue(rs, row); if (value != null) { List<Object> list = result.get(key); if (list == null) { list = new Vector<Object>(); result.put(key, list); } list.add(value); } row++; } return result; }
From source file:AppletJDBCDrop.java
private void loadTables() { Vector v = new Vector(); try {/*from w w w .ja va2s . co m*/ Statement statement = connection.createStatement(); ResultSet rs = statement.executeQuery("SHOW TABLES"); while (rs.next()) { v.addElement(rs.getString(1)); } rs.close(); } catch (SQLException e) { } v.addElement("acc_acc"); v.addElement("acc_add"); v.addElement("junk"); tableList.setListData(v); }
From source file:de.ep3.ftpc.model.CrawlerDirectories.java
public CrawlerDirectories(FTPClient ftpClient, String includePaths, String excludePaths) { this.ftpClient = ftpClient; if (includePaths == null || includePaths.length() == 0) { includePaths = "/"; }/*from w w w . j av a2 s . c o m*/ if (excludePaths == null || excludePaths.length() == 0) { excludePaths = null; } this.includePaths = new Vector<>(); for (String includePath : includePaths.split("\n")) { this.includePaths.add(includePath.trim()); } this.excludePaths = new Vector<>(); if (excludePaths != null) { for (String excludePath : excludePaths.split("\n")) { this.excludePaths.add(excludePath.trim()); } } directoryStack = new Stack<>(); }
From source file:controller.OrderProductController.java
@RequestMapping(method = RequestMethod.GET) public String orderProduct(Authentication authen, ModelMap mm) { Distributor dis = disModel.find(authen.getName(), "username", false).get(0); List<Product> listProduct = proModel.find(dis, "distributor", false); Vector data = new Vector(); Vector column = new Vector(); column.add("Product Name"); column.add("Customer Name"); column.add("Serial"); column.add("Price"); for (Product p : listProduct) { List<Requirement> listReq = rqModel.find(p, "product", false); for (Requirement requirement : listReq) { if (requirement != null) { Vector tmp = new Vector(); tmp.add(requirement.getProduct().getProductName()); tmp.add("id://" + requirement.getId().getProductId() + ":" + requirement.getId().getCustomerId() + ":" + requirement.getId().getSerial()); tmp.add(requirement.getCustomer().getCusName()); tmp.add(requirement.getId().getSerial()); tmp.add(nformat.format(requirement.getPrice())); data.add(tmp);/* w w w . ja v a 2s .c o m*/ } } } mm.put("column", column); mm.put("data", data); mm.put("title", "Order Product Manager"); return "orderProduct"; }
From source file:it.eng.spagobi.engines.chart.bo.charttypes.dialcharts.BulletGraph.java
public BulletGraph() { super(); intervals = new Vector(); }