|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ValueBoxBase<T>
com.github.gwtbootstrap.client.ui.base.ValueBoxBase<T>
T - the value typepublic class ValueBoxBase<T>
A ValueBoxBase extending for Bootstarp style.
It is GWT's ValueBoxBase extending for Bootstrap style.
ValueBoxBase| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
ValueBoxBase.TextAlignment |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection |
|---|
HasDirection.Direction |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
protected |
ValueBoxBase(Element elem,
Renderer<T> renderer,
Parser<T> parser)
Creates a value box that wraps the given browser element handle. |
| Method Summary | |
|---|---|
void |
addStyle(Style style)
Adds the provided style to the widget. |
String |
getId()
Get ID |
String |
getPlaceholder()
Get a placeholder attribute (HTML5). |
boolean |
isSearchQuery()
is the element search-query style? |
void |
removeStyle(Style style)
Removes the provided style from the widget. |
void |
setAlternateSize(AlternateSize size)
|
void |
setEnabled(boolean enabled)
|
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on. |
void |
setId(String id)
Set ID |
void |
setPlaceholder(String placeholder)
Set a placeholder attribute (HTML5). |
void |
setSearchQuery(boolean searchQuery)
Set search-query style to the element. |
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on. |
void |
setSize(int size)
Sets the widget's size. |
void |
setStyle(Style style)
Replaces the widet's style with the provided one. |
| Methods inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValue, getValueOrThrow, isReadOnly, onBrowserEvent, onLoad, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue, setValue |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
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, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.dom.client.HasKeyUpHandlers |
|---|
addKeyUpHandler |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
protected ValueBoxBase(Element elem,
Renderer<T> renderer,
Parser<T> parser)
elem - the browser element to wrap| Method Detail |
|---|
public void setPlaceholder(String placeholder)
setPlaceholder in interface HasPlaceholderplaceholder - the String to show. Use a empty string or null to remove the attribute.public String getPlaceholder()
getPlaceholder in interface HasPlaceholderpublic void setSearchQuery(boolean searchQuery)
setSearchQuery in interface IsSearchQuerysearchQuery - true:add search-query css-class/false:remove search-query css-classpublic boolean isSearchQuery()
isSearchQuery in interface IsSearchQuerypublic void setAlternateSize(AlternateSize size)
setAlternateSize in interface HasAlternateSizepublic void setSize(int size)
setSize in interface HasSizesize - the size of the widget in the Bootstrap grid systempublic String getId()
getId in interface HasIdpublic void setId(String id)
setId in interface HasIdid - set idpublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledsetEnabled in class FocusWidgetpublic void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setHideOn(Device)public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn in interface IsResponsiveConfigurator.hasResponsiveDesign(),
IsResponsive.setShowOn(Device)public void setStyle(Style style)
setStyle in interface HasStylestyle - the style to be applied to the Widget.public void addStyle(Style style)
addStyle in interface HasStylestyle - the style to be added to the Widget.public void removeStyle(Style style)
removeStyle in interface HasStylestyle - the style to be removed from the Widget.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||