Package qa.swing

Class ClusterSelectPanel

java.lang.Object
qa.swing.ClusterSelectPanel

public class ClusterSelectPanel extends Object
Make a panel which allows you to select a load of clusters. May need to have multiple selection types ?
Author:
dg50
  • Constructor Details

    • ClusterSelectPanel

      public ClusterSelectPanel(QAControl qaControl, String[] colNames)
  • Method Details

    • getComponent

      public JPanel getComponent()
    • setSelection

      public void setSelection(QACluster qaCluster, int iColumn, boolean select)
      Set whether a particular cluster is selected or not.
      Parameters:
      qaCluster - cluster reference
      iColumn - column in table
      select - select or not
    • getSelection

      public boolean getSelection(QACluster qaCluster, int iColumn)
      Get whether a particular cluster is selected or not.
      Parameters:
      qaCluster - cluster reference
      iColumn - column in table
      Returns:
      whether or not selected
    • enableSelection

      public void enableSelection(QACluster qaCluster, int iColumn, boolean enable)
      Enable a Checkbox in the selection
      Parameters:
      qaCluster - cluster reference
      iColumn - column in table
      enable - enable the checkbox
    • setClusterList

      public void setClusterList(ArrayList<QACluster> clusterList)
    • addSelectionListener

      public void addSelectionListener(ClusterSelectionListener clusterSelectionListener)
      Add a selection listener which will receive notifications if any of the check boxes are changed.
      Parameters:
      clusterSelectionListener - selection listener
    • removeSelectionListener

      public boolean removeSelectionListener(ClusterSelectionListener clusterSelectionListener)
      Remove a selection listener which received notifications if any of the check boxes are changed.
      Parameters:
      clusterSelectionListener -
      Returns:
      true if it existed
    • getClusterPanel

      public JPanel getClusterPanel()
      Returns:
      the clusterPanel
    • getColNames

      public String[] getColNames()
      Returns:
      the colNames
    • getQaControl

      public QAControl getQaControl()
      Returns:
      the qaControl
    • getnColumns

      public int getnColumns()
      Returns:
      the nColumns
    • getCurrentClusterList

      public ArrayList<QACluster> getCurrentClusterList()
      Returns:
      the currentClusterList