@Override protected Void doInBackground() throws Exception { try { DefaultListModel dimListModel = new DefaultListModel(); List<Dimension> dims = SdmxClientHandler.getDimensions(QueryPanel.selectedProvider, QueryPanel.selectedDataflow); int i = 0; for (Iterator<Dimension> iterator = dims.iterator(); iterator.hasNext(); ) { Dimension dim = iterator.next(); dimListModel.add(i++, dim.getId()); } JList dimList = new JList(dimListModel); dimList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); dimList.addListSelectionListener(new DimensionSelectionListener(parent)); QueryPanel.dimensionsPane.getViewport().add(dimList); String query = QueryPanel.getSDMXQuery(); QueryPanel.sdmxQuery.setText(query); // initSelections(QueryPanel.selectedDataflow,dims); } catch (Exception ex) { logger.severe( "Exception. Class: " + ex.getClass().getName() + " .Message: " + ex.getMessage()); logger.log(Level.FINER, "", ex); } finally { progress.setVisible(false); } return null; }
public static void main(String[] args) throws SdmxException { // System.err.println(SdmxClientHandler.getCodes("EUROSTAT", "aact_ali01", "FREQ")); // System.err.println(SdmxClientHandler.getDataFlowStructure("EUROSTAT", "DS-008573")); // System.err.println(SdmxClientHandler.getTimeSeries("EUROSTAT","prc_hicp_midx/..CP00.EU", // null, null)); // System.err.println(SdmxClientHandler.getDimensions("EUROSTAT", "DS-016890")); System.err.println( SdmxClientHandler.getTimeSeries( "EUROSTAT", "DS-016890/.DE.FR.87019039.2.VALUE_IN_EUROS.", null, null)); // System.err.println(SdmxClientHandler.getFlows("EUROSTAT", null)); }