Knopflerfish OSGi 1.3.3

org.knopflerfish.service.desktop
Class DefaultBundleSelectionModel

java.lang.Object
  extended byorg.knopflerfish.service.desktop.DefaultBundleSelectionModel
All Implemented Interfaces:
BundleSelectionModel

public class DefaultBundleSelectionModel
extends java.lang.Object
implements BundleSelectionModel

Default implementation of BundleSelectionModel.


Constructor Summary
DefaultBundleSelectionModel()
           
 
Method Summary
 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)
          Send a value changed event to all BundleSelectionListener
 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(long bid, boolean bSelected)
          Set selection status of a bundle id and notify all listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBundleSelectionModel

public DefaultBundleSelectionModel()
Method Detail

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
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
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
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
Parameters:
l - listener to remove.

fireChange

public void fireChange(long bid)
Send a value changed event to all BundleSelectionListener


Knopflerfish OSGi 1.3.3