|
Knopflerfish OSGi 2.4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knopflerfish.service.desktop.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(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 BundleSelectionModel
public int getSelectionCount()
BundleSelectionModel
getSelectionCount
in interface BundleSelectionModel
public long getSelected()
BundleSelectionModel
getSelected
in interface BundleSelectionModel
public boolean isSelected(long bid)
BundleSelectionModel
isSelected
in interface BundleSelectionModel
bid
- Bundle Id to check.
public void setSelected(long bid, boolean bSelected)
BundleSelectionModel
setSelected
in interface BundleSelectionModel
bid
- Bundle Id to set selection status.bSelected
- new selection status of the bundle.public void addBundleSelectionListener(BundleSelectionListener l)
BundleSelectionModel
addBundleSelectionListener
in interface BundleSelectionModel
l
- listener to add.public void removeBundleSelectionListener(BundleSelectionListener l)
BundleSelectionModel
removeBundleSelectionListener
in interface BundleSelectionModel
l
- listener to remove.public void fireChange(long bid)
|
Knopflerfish OSGi 2.4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |