public class NavFormBase extends Form implements HasAlignment, HasSize
Navbar.
Form.SubmitCompleteEvent, Form.SubmitCompleteHandler, Form.SubmitEvent, Form.SubmitHandler
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
NavFormBase()
Creates a new, left-aligned form.
|
NavFormBase(int size)
Creates a new, left aligned form of the given size.
|
Modifier and Type | Method and Description |
---|---|
TextBox |
getTextBox()
Returns the
TextBox used by the widget. |
void |
setAlignment(Alignment alignment)
Pulls the widget to the left or right.
|
void |
setPlaceholder(String placeholder)
Sets a placeholder in the the TextBox.
|
void |
setSize(int size)
Sets the widget's size.
|
addSubmitCompleteHandler, addSubmitHandler, getAction, getEncoding, getMethod, getTarget, onAttach, onDetach, onFormSubmit, onFrameLoad, reset, setAction, setAction, setEncoding, setMethod, setTarget, setType, submit
add, addStyle, insert, removeStyle, setHideOn, setShowOn, setStyle
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, iterator, remove
public NavFormBase()
public NavFormBase(int size)
size
- the size of the form in the Bootstrap grid systempublic void setAlignment(Alignment alignment)
setAlignment
in interface HasAlignment
alignment
- where the widget should end uppublic void setSize(int size)
setSize
in interface HasSize
size
- the size of the widget in the Bootstrap grid systempublic TextBox getTextBox()
TextBox
used by the widget.
Use it to append your own handlers or change its behavior.
public void setPlaceholder(String placeholder)
A placeholder is a piece of text in the TextBox that disappears when the TextBox receives focus.
placeholder
- the placeholder textCopyright © 2012-2014 gwtbootstrap. All Rights Reserved.