Package qa.swing
Class ClusterSelectPanel
java.lang.Object
qa.swing.ClusterSelectPanel
Make a panel which allows you to select a load of clusters.
May need to have multiple selection types ?
- Author:
- dg50
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelectionListener
(ClusterSelectionListener clusterSelectionListener) Add a selection listener which will receive notifications if any of the check boxes are changed.void
enableSelection
(QACluster qaCluster, int iColumn, boolean enable) Enable a Checkbox in the selectionString[]
int
boolean
getSelection
(QACluster qaCluster, int iColumn) Get whether a particular cluster is selected or not.boolean
removeSelectionListener
(ClusterSelectionListener clusterSelectionListener) Remove a selection listener which received notifications if any of the check boxes are changed.void
setClusterList
(ArrayList<QACluster> clusterList) void
setSelection
(QACluster qaCluster, int iColumn, boolean select) Set whether a particular cluster is selected or not.
-
Constructor Details
-
ClusterSelectPanel
-
-
Method Details
-
getComponent
-
setSelection
Set whether a particular cluster is selected or not.- Parameters:
qaCluster
- cluster referenceiColumn
- column in tableselect
- select or not
-
getSelection
Get whether a particular cluster is selected or not.- Parameters:
qaCluster
- cluster referenceiColumn
- column in table- Returns:
- whether or not selected
-
enableSelection
Enable a Checkbox in the selection- Parameters:
qaCluster
- cluster referenceiColumn
- column in tableenable
- enable the checkbox
-
setClusterList
-
addSelectionListener
Add a selection listener which will receive notifications if any of the check boxes are changed.- Parameters:
clusterSelectionListener
- selection listener
-
removeSelectionListener
Remove a selection listener which received notifications if any of the check boxes are changed.- Parameters:
clusterSelectionListener
-- Returns:
- true if it existed
-
getClusterPanel
- Returns:
- the clusterPanel
-
getColNames
- Returns:
- the colNames
-
getQaControl
- Returns:
- the qaControl
-
getnColumns
public int getnColumns()- Returns:
- the nColumns
-
getCurrentClusterList
- Returns:
- the currentClusterList
-