|
Knopflerfish OSGi bundle Desktop 5.0.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.knopflerfish.service.desktop.DefaultBundleSelectionModel
public class DefaultBundleSelectionModel
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)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBundleSelectionModel()
| Method Detail |
|---|
public void clearSelection()
BundleSelectionModel
clearSelection in interface BundleSelectionModelpublic int getSelectionCount()
BundleSelectionModel
getSelectionCount in interface BundleSelectionModelpublic long getSelected()
BundleSelectionModel
getSelected in interface BundleSelectionModelpublic boolean isSelected(long bid)
BundleSelectionModel
isSelected in interface BundleSelectionModelbid - Bundle Id to check.
public void setSelected(long bid,
boolean bSelected)
BundleSelectionModel
setSelected 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)
BundleSelectionModel
setSelected 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)
BundleSelectionModel
addBundleSelectionListener in interface BundleSelectionModell - listener to add.public void removeBundleSelectionListener(BundleSelectionListener l)
BundleSelectionModel
removeBundleSelectionListener in interface BundleSelectionModell - listener to remove.public void fireChange(long bid)
|
Knopflerfish OSGi ${version} | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||