public class ListBoxViewNull<T> extends Object implements ListBoxView<T>
| Constructor and Description |
|---|
ListBoxViewNull() |
| Modifier and Type | Method and Description |
|---|---|
void |
display(List<T> captions,
int focusElement,
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.
|
public void display(List<T> captions, int focusElement, List<Integer> selectionElements)
ListBoxViewdisplay in interface ListBoxView<T>public void updateTotalCount(int newCount)
ListBoxViewupdateTotalCount in interface ListBoxView<T>newCount - the new count to displaypublic void scrollTo(int newPosition)
ListBoxViewscrollTo in interface ListBoxView<T>newPosition - the new index to scroll topublic void publish(ListBoxSelectionChangedEvent<T> event)
ListBoxViewpublish in interface ListBoxView<T>event - the event to publishpublic void updateTotalWidth(int newWidth)
ListBoxViewupdateTotalWidth in interface ListBoxView<T>newWidth - new maximum width of all items in the ListBoxpublic int getWidth(T item)
ListBoxViewgetWidth in interface ListBoxView<T>item - the item to get the width forCopyright © 2013. All Rights Reserved.