|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.listbox.ListBoxViewNull<T>
public class ListBoxViewNull<T>
A Null implementation of ListBoxView that does nothing.
| Constructor Summary | |
|---|---|
ListBoxViewNull()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListBoxViewNull()
| Method Detail |
|---|
public void display(List<T> captions,
int focusElement,
List<Integer> selectionElements)
ListBoxView
display in interface ListBoxView<T>public void updateTotalCount(int newCount)
ListBoxView
updateTotalCount in interface ListBoxView<T>newCount - the new count to displaypublic void scrollTo(int newPosition)
ListBoxView
scrollTo in interface ListBoxView<T>newPosition - the new index to scroll topublic void publish(ListBoxSelectionChangedEvent<T> event)
ListBoxView
publish in interface ListBoxView<T>event - the event to publishpublic void updateTotalWidth(int newWidth)
ListBoxView
updateTotalWidth in interface ListBoxView<T>newWidth - new maximum width of all items in the ListBoxpublic int getWidth(T item)
ListBoxView
getWidth in interface ListBoxView<T>item - the item to get the width for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||