|
||||||||||
| 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.github.gwtbootstrap.client.ui.SubmitButton
public class SubmitButton
A SubmitButton for Bootstrap form.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
SubmitButton()
Creates an submit button with no caption. |
protected |
SubmitButton(Element element)
This constructor may be used by subclasses to explicitly use an existing element. |
|
SubmitButton(SafeHtml html)
Creates a button with the given HTML caption. |
|
SubmitButton(SafeHtml html,
ClickHandler handler)
Creates a button with the given HTML caption and click listener. |
|
SubmitButton(String text)
Creates a button with the given Text caption. |
|
SubmitButton(String text,
ClickHandler handler)
Creates a button with the given Text caption and click listener. |
| Method Summary | |
|---|---|
HandlerRegistration |
addChangeHandler(ChangeHandler handler)
|
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<String> handler)
|
void |
click()
Programmatic equivalent of the user clicking the button. |
String |
getName()
|
String |
getText()
|
String |
getValue()
|
void |
setName(String name)
|
void |
setSize(ButtonSize size)
Sets the size of the Button. |
void |
setText(String text)
|
void |
setType(ButtonType type)
Sets the type of the Button. |
void |
setValue(String value)
|
void |
setValue(String value,
boolean fireEvents)
|
| 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, onBrowserEvent, onDetach, onLoad, 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.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public SubmitButton()
protected SubmitButton(Element element)
element - the element to be used
public SubmitButton(SafeHtml html,
ClickHandler handler)
html - the HTML captionhandler - the click handlerpublic SubmitButton(SafeHtml html)
html - the HTML caption
public SubmitButton(String text,
ClickHandler handler)
text - the Text captionhandler - the click handlerpublic SubmitButton(String text)
text - the Text caption| Method Detail |
|---|
public void click()
public void setType(ButtonType type)
Different types give the button a different look.
setType in interface HasType<ButtonType>type - the type of the Button.public void setSize(ButtonSize size)
size - the size of the Button.public HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler in interface HasChangeHandlerspublic HandlerRegistration addValueChangeHandler(ValueChangeHandler<String> handler)
addValueChangeHandler in interface HasValueChangeHandlers<String>HasValueChangeHandlers.addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler)public void setName(String name)
setName in interface HasNamepublic String getName()
getName in interface HasNamepublic String getText()
getText in interface HasTextpublic void setText(String text)
setText in interface HasTextpublic String getValue()
getValue in interface TakesValue<String>getValue in interface HasValue<String>public void setValue(String value)
setValue in interface TakesValue<String>setValue in interface HasValue<String>
public void setValue(String value,
boolean fireEvents)
setValue in interface HasValue<String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||