|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SourceListClickListener
An interface to hook into clicks on SourceListCategorys and
SourceListItems. This interface is similar to what
SourceListSelectionListener offers, but provides mouse clicks
including which mouse button was pressed the number of clicks that occured.
SourceListClickListener clickListener = new SourceListClickListener() {
public void sourceListItemClicked(SourceListItem item, Button button,
int clickCount) {
boolean isLeftButton = button == SourceListClickListener.Button.LEFT;
if (isLeftButton && clickCount == 2) {
// do something here.
}
}
public void sourceListCategoryClicked(SourceListCategory category,
Button button, int clickCount) {
// no implementation.
}
};
| Nested Class Summary | |
|---|---|
static class |
SourceListClickListener.Button
Corresponds to a button on a mouse. |
| Method Summary | |
|---|---|
void |
sourceListCategoryClicked(SourceListCategory category,
SourceListClickListener.Button button,
int clickCount)
Called when a SourceListCategory is clicked. |
void |
sourceListItemClicked(SourceListItem item,
SourceListClickListener.Button button,
int clickCount)
Called when a SourceListItem is clicked. |
| Method Detail |
|---|
void sourceListItemClicked(SourceListItem item,
SourceListClickListener.Button button,
int clickCount)
SourceListItem is clicked.
item - the SourceListItem that was clicked. Will not be null.button - the mouse button that was used to perform the click.clickCount - the number of times the mouse button was clicked.
void sourceListCategoryClicked(SourceListCategory category,
SourceListClickListener.Button button,
int clickCount)
SourceListCategory is clicked.
category - the SourceListCategory that was clicked. Will not
be null.button - the mouse button that was used to perform the click.clickCount - the number of times the mouse button was clicked.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||