public class Select
extends org.gwtbootstrap3.client.ui.base.ComplexWidget
implements com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasEnabled
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Constructor and Description |
---|
Select() |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler) |
void |
clearHeader() |
void |
clearSelectedTextFormat() |
void |
clearStyle() |
void |
clearVisibleSize() |
void |
deselectAll() |
List<String> |
getAllSelectedValues() |
String |
getHeader() |
int |
getItemCount()
Gets the number of items present in the list box.
|
String |
getSelectedTextFormat() |
protected com.google.gwt.dom.client.SelectElement |
getSelectElement() |
boolean |
getShowMenuArrow() |
boolean |
getShowSubtext() |
boolean |
getShowTick() |
String |
getStyle() |
int |
getTabIndex() |
String |
getValue() |
String |
getValue(int index) |
String |
getVisibleSize() |
String |
getWidth() |
void |
hide() |
boolean |
isEnabled() |
boolean |
isItemSelected(int index) |
boolean |
isLiveSearch() |
boolean |
isMultiple() |
protected void |
onLoad() |
void |
refresh()
WHEN CHANGING ANY SETTINGS CALL REFRESH AFTER!!
|
void |
render() |
void |
selectAll() |
void |
setAccessKey(char c) |
void |
setEnabled(boolean enabled) |
void |
setFocus(boolean b) |
void |
setHeader(String header) |
void |
setLiveSearch(boolean liveSearch) |
void |
setMultiple(boolean multiple) |
void |
setSelectedTextFormat(String format)
Supported Values:
(1) values - default, comma delimited list
(2) count - If one item is selected, then the value is shown, if more than one is selected then the number of selected items is displayed, eg 2 of 6 selected
(3) count greater than x - Where X is the number of items selected when the display format changes from values to count
|
void |
setShowMenuArrow(boolean showMenuArrow) |
void |
setShowSubtext(boolean showSubtext) |
void |
setShowTick(boolean showTick) |
void |
setStyle(org.gwtbootstrap3.client.ui.constants.ButtonType style) |
void |
setTabIndex(int i) |
void |
setValue(Option opt) |
void |
setValue(String value) |
void |
setValues(Option... opts) |
void |
setValues(String... values) |
void |
setVisibleSize(String size)
Sets the number of lines to show before scrolling
Values:
(1) auto - (default) shows them all
(2) x - shows x number of entries before scrolling
|
void |
setWidth(String width)
Sets the width of the select
!! use 'auto' to automatically adjust the width of the select to its widest option, or just use
specific values (50px, 50%, etc...)
|
void |
show() |
add, getId, getPull, insert, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
public com.google.gwt.event.shared.HandlerRegistration addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
public void setHeader(String header)
public String getHeader()
public void clearHeader()
public void setShowSubtext(boolean showSubtext)
public boolean getShowSubtext()
public void setEnabled(boolean enabled)
setEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
public boolean isEnabled()
isEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
public void setVisibleSize(String size)
size
- String visible sizepublic String getVisibleSize()
public void clearVisibleSize()
public void setWidth(String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public String getWidth()
public void setShowMenuArrow(boolean showMenuArrow)
public boolean getShowMenuArrow()
public void setShowTick(boolean showTick)
public boolean getShowTick()
public void setSelectedTextFormat(String format)
format
- selected text formatpublic String getSelectedTextFormat()
public void clearSelectedTextFormat()
public void setMultiple(boolean multiple)
public boolean isMultiple()
public void setLiveSearch(boolean liveSearch)
public boolean isLiveSearch()
public void setStyle(org.gwtbootstrap3.client.ui.constants.ButtonType style)
public void clearStyle()
public String getStyle()
public void setValue(String value)
public void setValues(String... values)
public void setValue(Option opt)
public void setValues(Option... opts)
public String getValue()
isItemSelected(int)
and getValue(int)
for getting all the values selected or getAllSelectedValues()
public boolean isItemSelected(int index)
public String getValue(int index)
public void selectAll()
public void deselectAll()
public void render()
public void refresh()
public void hide()
public void show()
protected com.google.gwt.dom.client.SelectElement getSelectElement()
public int getTabIndex()
getTabIndex
in interface com.google.gwt.user.client.ui.Focusable
public void setAccessKey(char c)
setAccessKey
in interface com.google.gwt.user.client.ui.Focusable
public void setFocus(boolean b)
setFocus
in interface com.google.gwt.user.client.ui.Focusable
public void setTabIndex(int i)
setTabIndex
in interface com.google.gwt.user.client.ui.Focusable
public int getItemCount()
Copyright © 2015. All rights reserved.