T
- The Item this class is a view for.public interface ListBoxView<T>
Modifier and Type | Method and Description |
---|---|
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.
|
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 forCopyright © 2013. All Rights Reserved.