public class FixedSizeScrollableListBox
extends com.google.gwt.user.client.ui.ScrollPanel
| Constructor and Description |
|---|
FixedSizeScrollableListBox()
Instantiates a new fixed size scrollable list box.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
Adds the click handler.
|
void |
addItem(java.lang.String item)
Adds the item.
|
java.lang.String |
getItemAtIndex(int index)
Gets the item at index.
|
int |
getItemCount()
Gets the item count.
|
int |
getSelectedIndex()
Gets the selected index.
|
java.lang.String |
getSelectedItem()
Gets the selected item.
|
java.util.List<java.lang.String> |
getSelectedItems()
Gets the selected items.
|
boolean |
isMultipleSelect()
Checks if is multiple select.
|
boolean |
isSelected(int index)
Checks if is selected.
|
void |
removeAllItems()
Removes the all items.
|
void |
selectAll()
Select all.
|
void |
setAllowsSelection(boolean allowsSelection)
Sets the allows selection.
|
void |
setMultipleSelect(boolean isMultipleSelect)
Sets the multiple select.
|
addScrollHandler, addScrollListener, ensureVisible, getHorizontalScrollPosition, getScrollPosition, onResize, removeScrollListener, scrollToBottom, scrollToLeft, scrollToRight, scrollToTop, setAlwaysShowScrollBars, setHeight, setHorizontalScrollPosition, setScrollPosition, setSize, setWidthadd, getWidget, iterator, remove, setWidget, setWidgetaddAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, toString, unsinkEventspublic FixedSizeScrollableListBox()
public com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
handler - the handlerpublic void addItem(java.lang.String item)
item - the itempublic java.lang.String getItemAtIndex(int index)
index - the indexpublic int getItemCount()
public int getSelectedIndex()
public java.lang.String getSelectedItem()
public java.util.List<java.lang.String> getSelectedItems()
public boolean isMultipleSelect()
public boolean isSelected(int index)
index - the indexpublic void removeAllItems()
public void selectAll()
public void setAllowsSelection(boolean allowsSelection)
allowsSelection - the new allows selectionpublic void setMultipleSelect(boolean isMultipleSelect)
isMultipleSelect - the new multiple select