@Test public void testCreateParamsPanel() { System.out.println("getSettingsPanel"); MergeResultsGui instance = new MergeResultsGui(); JPanel result = instance.createParamsPanel(); assertNotNull(result); }
protected JPanel createParamsPanel() { JPanel panel = new JPanel(new BorderLayout(5, 5)); panel.setBorder(BorderFactory.createTitledBorder("Merge Options")); panel.setPreferredSize(new Dimension(200, 200)); JScrollPane scroll = new JScrollPane(createGrid()); scroll.setPreferredSize(scroll.getMinimumSize()); JPanel buttonsPanel = new JPanel(new GridLayout(1, 2)); addRowButton = new JButton("Add Row"); copyRowButton = new JButton("Copy Row"); deleteRowButton = new JButton("Delete Row"); addRowButton.addActionListener(this); addRowButton.setActionCommand(ACTION_ADD); copyRowButton.addActionListener(this); copyRowButton.setActionCommand(ACTION_COPY); deleteRowButton.addActionListener(this); deleteRowButton.setActionCommand(ACTION_DELETE); buttonsPanel.add(addRowButton); buttonsPanel.add(copyRowButton); buttonsPanel.add(deleteRowButton); panel.add(scroll, BorderLayout.CENTER); panel.add(buttonsPanel, BorderLayout.SOUTH); return panel; }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { protected JPanel createParamsPanel() { JPanel panel = new JPanel(new BorderLayout(5, 5)); panel.setBorder(BorderFactory.createTitledBorder("Merge Options")); panel.setPreferredSize(new Dimension(200, 200)); JScrollPane scroll = new JScrollPane(createGrid()); scroll.setPreferredSize(scroll.getMinimumSize()); JPanel buttonsPanel = new JPanel(new GridLayout(1, 2)); addRowButton = new JButton("Add Row"); copyRowButton = new JButton("Copy Row"); deleteRowButton = new JButton("Delete Row"); addRowButton.addActionListener(this); addRowButton.setActionCommand(ACTION_ADD); copyRowButton.addActionListener(this); copyRowButton.setActionCommand(ACTION_COPY); deleteRowButton.addActionListener(this); deleteRowButton.setActionCommand(ACTION_DELETE); buttonsPanel.add(addRowButton); buttonsPanel.add(copyRowButton); buttonsPanel.add(deleteRowButton); panel.add(scroll, BorderLayout.CENTER); panel.add(buttonsPanel, BorderLayout.SOUTH); return panel; } }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { protected JPanel createParamsPanel() { JPanel panel = new JPanel(new BorderLayout(5, 5)); panel.setBorder(BorderFactory.createTitledBorder("Merge Options")); panel.setPreferredSize(new Dimension(200, 200)); JScrollPane scroll = new JScrollPane(createGrid()); scroll.setPreferredSize(scroll.getMinimumSize()); JPanel buttonsPanel = new JPanel(new GridLayout(1, 2)); addRowButton = new JButton("Add Row"); copyRowButton = new JButton("Copy Row"); deleteRowButton = new JButton("Delete Row"); addRowButton.addActionListener(this); addRowButton.setActionCommand(ACTION_ADD); copyRowButton.addActionListener(this); copyRowButton.setActionCommand(ACTION_COPY); deleteRowButton.addActionListener(this); deleteRowButton.setActionCommand(ACTION_DELETE); buttonsPanel.add(addRowButton); buttonsPanel.add(copyRowButton); buttonsPanel.add(deleteRowButton); panel.add(scroll, BorderLayout.CENTER); panel.add(buttonsPanel, BorderLayout.SOUTH); return panel; } MergeResultsGui(); }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { protected JPanel createParamsPanel() { JPanel panel = new JPanel(new BorderLayout(5, 5)); panel.setBorder(BorderFactory.createTitledBorder("Merge Options")); panel.setPreferredSize(new Dimension(200, 200)); JScrollPane scroll = new JScrollPane(createGrid()); scroll.setPreferredSize(scroll.getMinimumSize()); JPanel buttonsPanel = new JPanel(new GridLayout(1, 2)); addRowButton = new JButton("Add Row"); copyRowButton = new JButton("Copy Row"); deleteRowButton = new JButton("Delete Row"); addRowButton.addActionListener(this); addRowButton.setActionCommand(ACTION_ADD); copyRowButton.addActionListener(this); copyRowButton.setActionCommand(ACTION_COPY); deleteRowButton.addActionListener(this); deleteRowButton.setActionCommand(ACTION_DELETE); buttonsPanel.add(addRowButton); buttonsPanel.add(copyRowButton); buttonsPanel.add(deleteRowButton); panel.add(scroll, BorderLayout.CENTER); panel.add(buttonsPanel, BorderLayout.SOUTH); return panel; } MergeResultsGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override Collection<String> getMenuCategories(); void setFile(String filename); String getFile(); String getWikiPage(); JTable getGrid(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void updateUI(); @Override void add(SampleResult res); @Override void setUpFiltering(CorrectedResultCollector rc); void actionPerformed(ActionEvent action); void checkDeleteButtonStatus(); void checkMergeButtonStatus(); void tableChanged(TableModelEvent e); void editingStopped(ChangeEvent e); void editingCanceled(ChangeEvent e); @Override void stateChanged(ChangeEvent e); @Override Dimension getPreferredSize(); @Override void clearGui(); @Override GraphPanelChart getGraphPanelChart(); }
MergeResultsGui extends AbstractGraphPanelVisualizer implements
        TableModelListener, CellEditorListener, ChangeListener, ActionListener { protected JPanel createParamsPanel() { JPanel panel = new JPanel(new BorderLayout(5, 5)); panel.setBorder(BorderFactory.createTitledBorder("Merge Options")); panel.setPreferredSize(new Dimension(200, 200)); JScrollPane scroll = new JScrollPane(createGrid()); scroll.setPreferredSize(scroll.getMinimumSize()); JPanel buttonsPanel = new JPanel(new GridLayout(1, 2)); addRowButton = new JButton("Add Row"); copyRowButton = new JButton("Copy Row"); deleteRowButton = new JButton("Delete Row"); addRowButton.addActionListener(this); addRowButton.setActionCommand(ACTION_ADD); copyRowButton.addActionListener(this); copyRowButton.setActionCommand(ACTION_COPY); deleteRowButton.addActionListener(this); deleteRowButton.setActionCommand(ACTION_DELETE); buttonsPanel.add(addRowButton); buttonsPanel.add(copyRowButton); buttonsPanel.add(deleteRowButton); panel.add(scroll, BorderLayout.CENTER); panel.add(buttonsPanel, BorderLayout.SOUTH); return panel; } MergeResultsGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override Collection<String> getMenuCategories(); void setFile(String filename); String getFile(); String getWikiPage(); JTable getGrid(); @Override void modifyTestElement(TestElement c); @Override void configure(TestElement el); @Override void updateUI(); @Override void add(SampleResult res); @Override void setUpFiltering(CorrectedResultCollector rc); void actionPerformed(ActionEvent action); void checkDeleteButtonStatus(); void checkMergeButtonStatus(); void tableChanged(TableModelEvent e); void editingStopped(ChangeEvent e); void editingCanceled(ChangeEvent e); @Override void stateChanged(ChangeEvent e); @Override Dimension getPreferredSize(); @Override void clearGui(); @Override GraphPanelChart getGraphPanelChart(); static final String WIKIPAGE; static final String[] columnIdentifiers; static final Class<?>[] columnClasses; static final Object[] defaultValues; static final String DEFAULT_FILENAME; static final String FILENAME; static final String DATA_PROPERTY; static final int INPUT_FILE_NAME; static final int PREFIX_LABEL; static final int OFFSET_START; static final int OFFSET_END; static final int INCLUDE_LABEL; static final int REGEX_INCLUDE; static final int EXCLUDE_LABEL; static final int REGEX_EXCLUDE; }