Knopflerfish OSGi 1.3.3

org.knopflerfish.service.desktop
Interface BundleSelectionModel

All Known Implementing Classes:
DefaultBundleSelectionModel

public interface BundleSelectionModel

Model describing which bundles are selected.

See Also:
SwingBundleDisplayer


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.
 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.
 

Method Detail

clearSelection

public void clearSelection()
Clear the entire selection and notify all listeners.


isSelected

public boolean isSelected(long bid)
Get selection status of a bundle Id.

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)
Set selection status of a bundle id and notify all listeners.

Parameters:
bid - Bundle Id to set selection status.
bSelected - new selection status of the bundle.

addBundleSelectionListener

public void addBundleSelectionListener(BundleSelectionListener l)
Add a BundleSelectionListener to the set of listeners that gets notified at bundle selection changes.

Parameters:
l - listener to add.

removeBundleSelectionListener

public void removeBundleSelectionListener(BundleSelectionListener l)
Remove a BundleSelectionListener from the set of listeners that gets notified at bundle selection changes.

Parameters:
l - listener to remove.

Knopflerfish OSGi 1.3.3