|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The Item this class is a view for.public interface ListBoxView<T>
The representation of a ListBoxView from the world of a ListBox.
Method Summary | |
---|---|
void |
display(List<T> captions,
int focusElementIndex,
List<Integer> selectionElements)
Display the given descriptions. |
int |
getWidth(T item)
Return the width of the given item. |
void |
publish(ListBoxSelectionChangedEvent<T> event)
Publish this event. |
void |
scrollTo(int newPosition)
Scroll the view to the given position. |
void |
updateTotalCount(int newCount)
Updates the view with the total count of elements currently in the ListBox. |
void |
updateTotalWidth(int newWidth)
Update the ListBox view with the given width. |
Method Detail |
---|
void display(List<T> captions, int focusElementIndex, List<Integer> selectionElements)
captions
- void updateTotalCount(int newCount)
newCount
- the new count to displayvoid updateTotalWidth(int newWidth)
newWidth
- new maximum width of all items in the ListBoxvoid scrollTo(int newPosition)
newPosition
- the new index to scroll tovoid publish(ListBoxSelectionChangedEvent<T> event)
event
- the event to publishint getWidth(T item)
item
- the item to get the width for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |