com.github.gwtbootstrap.client.ui.base
Class NavFormBase

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.github.gwtbootstrap.client.ui.base.ComplexWidget
                      extended by com.github.gwtbootstrap.client.ui.Form
                          extended by com.github.gwtbootstrap.client.ui.base.NavFormBase
All Implemented Interfaces:
HasAlignment, HasSize, HasStyle, IsResponsive, HasAttachHandlers, HasHandlers, EventListener, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.impl.FormPanelImplHost, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>
Direct Known Subclasses:
NavForm, NavSearch

public class NavFormBase
extends Form
implements HasAlignment, HasSize

Base class for forms inside a Navbar.

Since:
2.0.4.0
Author:
Dominik Mayer
See Also:
Bootstrap documentation

Nested Class Summary
 
Nested classes/interfaces inherited from class com.github.gwtbootstrap.client.ui.Form
Form.SubmitCompleteEvent, Form.SubmitCompleteHandler, Form.SubmitEvent, Form.SubmitHandler
 
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.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
IndexedPanel.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
NavFormBase()
          Creates a new, left-aligned form.
NavFormBase(int size)
          Creates a new, left aligned form of the given size.
 
Method Summary
 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.
 
Methods inherited from class com.github.gwtbootstrap.client.ui.Form
addSubmitCompleteHandler, addSubmitHandler, getAction, getEncoding, getMethod, getTarget, onAttach, onDetach, onFormSubmit, onFrameLoad, reset, setAction, setAction, setEncoding, setMethod, setTarget, setType, submit
 
Methods inherited from class com.github.gwtbootstrap.client.ui.base.ComplexWidget
add, addStyle, insert, removeStyle, setHideOn, setShowOn, setStyle
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, 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.user.client.ui.HasWidgets
clear, iterator, remove
 

Constructor Detail

NavFormBase

public NavFormBase()
Creates a new, left-aligned form.


NavFormBase

public NavFormBase(int size)
Creates a new, left aligned form of the given size.

Parameters:
size - the size of the form in the Bootstrap grid system
Method Detail

setAlignment

public void setAlignment(Alignment alignment)
Pulls the widget to the left or right.

Specified by:
setAlignment in interface HasAlignment
Parameters:
alignment - where the widget should end up

setSize

public void setSize(int size)
Sets the widget's size.

Specified by:
setSize in interface HasSize
Parameters:
size - the size of the widget in the Bootstrap grid system

getTextBox

public TextBox getTextBox()
Returns the TextBox used by the widget.

Use it to append your own handlers or change its behavior.

Returns:
the TextBox

setPlaceholder

public void setPlaceholder(String placeholder)
Sets a placeholder in the the TextBox.

A placeholder is a piece of text in the TextBox that disappears when the TextBox receives focus.

Parameters:
placeholder - the placeholder text


Copyright © 2012 gwtbootstrap. All Rights Reserved.