org.knopflerfish.service.desktop
public class DefaultBundleSelectionModel extends java.lang.Object implements BundleSelectionModel
| Constructor and Description |
|---|
DefaultBundleSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBundleSelectionListener(BundleSelectionListener l)
Add a BundleSelectionListener to the set of listeners
that gets notified at bundle selection changes.
|
void |
clearSelection()
Clear the entire selection and notify all listeners.
|
void |
fireChange(long bid) |
long |
getSelected()
Get selected bundle.
|
int |
getSelectionCount()
Get the number of selected bundles.
|
boolean |
isSelected(long bid)
Get selection status of a bundle Id.
|
void |
removeBundleSelectionListener(BundleSelectionListener l)
Remove a BundleSelectionListener from the set of listeners
that gets notified at bundle selection changes.
|
void |
setSelected(java.util.List<java.lang.Long> bids,
boolean bSelected)
Set selection status of all bundle id in the given list and
notify all listeners.
|
void |
setSelected(long bid,
boolean bSelected)
Set selection status of a bundle id and notify all listeners.
|
public void clearSelection()
BundleSelectionModelclearSelection in interface BundleSelectionModelpublic int getSelectionCount()
BundleSelectionModelgetSelectionCount in interface BundleSelectionModelpublic long getSelected()
BundleSelectionModelgetSelected in interface BundleSelectionModelpublic boolean isSelected(long bid)
BundleSelectionModelisSelected in interface BundleSelectionModelbid - Bundle Id to check.public void setSelected(long bid,
boolean bSelected)
BundleSelectionModelsetSelected in interface BundleSelectionModelbid - Bundle Id to set selection status.bSelected - new selection status of the bundle.public void setSelected(java.util.List<java.lang.Long> bids,
boolean bSelected)
BundleSelectionModelsetSelected in interface BundleSelectionModelbids - List of bundle ids to set selection status for.bSelected - new selection status of the bundles in the list.public void addBundleSelectionListener(BundleSelectionListener l)
BundleSelectionModeladdBundleSelectionListener in interface BundleSelectionModell - listener to add.public void removeBundleSelectionListener(BundleSelectionListener l)
BundleSelectionModelremoveBundleSelectionListener in interface BundleSelectionModell - listener to remove.public void fireChange(long bid)