T - The Item this class is a view for.ListBoxControl, TreeBoxControlpublic interface ListBoxView<T>
| Modifier and Type | Method | Description |
|---|---|---|
void |
display(java.util.List<T> captions,
int focusElementIndex,
java.util.List<java.lang.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(@Nonnull
java.util.List<T> captions,
int focusElementIndex,
@Nonnull
java.util.List<java.lang.Integer> selectionElements)
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(@Nonnull
ListBoxSelectionChangedEvent<T> event)
event - the event to publishint getWidth(T item)
item - the item to get the width forCopyright © 2018. All rights reserved.