public class SubsetStack extends Object
Constructor and Description |
---|
SubsetStack(ListModel<RowSubset> baseModel,
SubsetConfigManager subManager)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener to be notified when the selection list changes
content or sequence.
|
JComponent |
getComponent()
Returns the graphical component for this stack.
|
RowSubset[] |
getSelectedSubsets()
Return an array of the subsets which are currently active.
|
void |
removeActionListener(ActionListener listener)
Removes a listener previously added.
|
void |
setSelected(RowSubset rset,
boolean isSel)
Sets the active status of a given subset.
|
void |
setSelectedSubsets(RowSubset[] rsets)
Sets the list of active subsets.
|
public SubsetStack(ListModel<RowSubset> baseModel, SubsetConfigManager subManager)
baseModel
- list model containing RowSubset objectssubManager
- provides per-subset configuration componentspublic RowSubset[] getSelectedSubsets()
public void setSelectedSubsets(RowSubset[] rsets)
rsets
- subsets in list for which checkboxes should be checkedpublic void setSelected(RowSubset rset, boolean isSel)
rset
- row subsetisSel
- true for selected, false for unselectedpublic JComponent getComponent()
public void addActionListener(ActionListener listener)
listener
- listener to addpublic void removeActionListener(ActionListener listener)
listener
- listener to removeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.