org.knopflerfish.service.desktop
Class DefaultBundleSelectionModel
java.lang.Object
|
+--org.knopflerfish.service.desktop.DefaultBundleSelectionModel
- All Implemented Interfaces:
- BundleSelectionModel
- public class DefaultBundleSelectionModel
- extends java.lang.Object
- implements BundleSelectionModel
Default implementation of BundleSelectionModel.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBundleSelectionModel
public DefaultBundleSelectionModel()
clearSelection
public void clearSelection()
- Description copied from interface:
BundleSelectionModel
- Clear the entire selection and notify all listeners.
- Specified by:
clearSelection in interface BundleSelectionModel
isSelected
public boolean isSelected(long bid)
- Description copied from interface:
BundleSelectionModel
- Get selection status of a bundle Id.
- Specified by:
isSelected in interface BundleSelectionModel
- Following copied from interface:
org.knopflerfish.service.desktop.BundleSelectionModel
- Parameters:
bid - Bundle Id to check.- Returns:
- true if bid is selected by the
model, false otherwise.
setSelected
public void setSelected(long bid,
boolean bSelected)
- Description copied from interface:
BundleSelectionModel
- Set selection status of a bundle id and notify all listeners.
- Specified by:
setSelected in interface BundleSelectionModel
- Following copied from interface:
org.knopflerfish.service.desktop.BundleSelectionModel
- Parameters:
bid - Bundle Id to set selection status.bSelected - new selection status of the bundle.
addBundleSelectionListener
public void addBundleSelectionListener(BundleSelectionListener l)
- Description copied from interface:
BundleSelectionModel
- Add a BundleSelectionListener to the set of listeners
that gets notified at bundle selection changes.
- Specified by:
addBundleSelectionListener in interface BundleSelectionModel
- Following copied from interface:
org.knopflerfish.service.desktop.BundleSelectionModel
- Parameters:
l - listener to add.
removeBundleSelectionListener
public void removeBundleSelectionListener(BundleSelectionListener l)
- Description copied from interface:
BundleSelectionModel
- Remove a BundleSelectionListener from the set of listeners
that gets notified at bundle selection changes.
- Specified by:
removeBundleSelectionListener in interface BundleSelectionModel
- Following copied from interface:
org.knopflerfish.service.desktop.BundleSelectionModel
- Parameters:
l - listener to remove.
fireChange
public void fireChange(long bid)
- Send a value changed event to all BundleSelectionListener