org.gwtbootstrap3.client.ui
Class InputGroupAddon

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 org.gwtbootstrap3.client.ui.base.ComplexWidget
                      extended by org.gwtbootstrap3.client.ui.base.AbstractInputGroupAddon
                          extended by org.gwtbootstrap3.client.ui.InputGroupAddon
All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasText, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasIcon, HasIconPosition, HasId, HasInlineStyle, HasPull, HasResponsiveness

public class InputGroupAddon
extends AbstractInputGroupAddon
implements HasText, HasIcon, HasIconPosition

Prepends or appends texts to input fields.

For prepending/appending Button see InputGroupButton. Needs to be encapsulated in an InputGroup.

UiBinder example

<b:InputGroup>
         <b:InputGroupAddon>Prepend something</b:InputGroupAddon>
         <b:TextBox/>
         <b:InputGroupAddon>Append something</b:InputGroupAddon>
     </b:InputGroup>
 

Also see Bootstrap documentation.

Author:
Sven Jacobs
See Also:
InputGroup, InputGroupButton

Nested Class Summary
 
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.IndexedPanel
IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
InputGroupAddon()
           
 
Method Summary
 IconType getIcon()
           
 IconFlip getIconFlip()
           
 IconPosition getIconPosition()
           
 IconRotate getIconRotate()
           
 IconSize getIconSize()
           
 String getText()
           
 boolean isIconBordered()
           
 boolean isIconFixedWidth()
           
 boolean isIconLight()
           
 boolean isIconMuted()
           
 boolean isIconSpin()
           
 void setIcon(IconType iconType)
           
 void setIconBordered(boolean iconBordered)
           
 void setIconFixedWidth(boolean iconFixedWidth)
           
 void setIconFlip(IconFlip iconFlip)
           
 void setIconLight(boolean iconLight)
           
 void setIconMuted(boolean iconMuted)
           
 void setIconPosition(IconPosition iconPosition)
           
 void setIconRotate(IconRotate iconRotate)
           
 void setIconSize(IconSize iconSize)
           
 void setIconSpin(boolean iconSpin)
           
 void setText(String text)
           
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
add, getId, getPull, insert, setColor, setHiddenOn, setId, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPull, setVisibleOn
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, 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, clear, 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, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputGroupAddon

public InputGroupAddon()
Method Detail

setText

public void setText(String text)
Specified by:
setText in interface HasText

getText

public String getText()
Specified by:
getText in interface HasText

setIcon

public void setIcon(IconType iconType)
Specified by:
setIcon in interface HasIcon

getIcon

public IconType getIcon()
Specified by:
getIcon in interface HasIcon

setIconPosition

public void setIconPosition(IconPosition iconPosition)
Specified by:
setIconPosition in interface HasIconPosition

getIconPosition

public IconPosition getIconPosition()
Specified by:
getIconPosition in interface HasIconPosition

setIconSize

public void setIconSize(IconSize iconSize)
Specified by:
setIconSize in interface HasIcon

getIconSize

public IconSize getIconSize()
Specified by:
getIconSize in interface HasIcon

setIconFlip

public void setIconFlip(IconFlip iconFlip)
Specified by:
setIconFlip in interface HasIcon

getIconFlip

public IconFlip getIconFlip()
Specified by:
getIconFlip in interface HasIcon

setIconRotate

public void setIconRotate(IconRotate iconRotate)
Specified by:
setIconRotate in interface HasIcon

getIconRotate

public IconRotate getIconRotate()
Specified by:
getIconRotate in interface HasIcon

setIconBordered

public void setIconBordered(boolean iconBordered)
Specified by:
setIconBordered in interface HasIcon

isIconBordered

public boolean isIconBordered()
Specified by:
isIconBordered in interface HasIcon

setIconMuted

public void setIconMuted(boolean iconMuted)
Specified by:
setIconMuted in interface HasIcon

isIconMuted

public boolean isIconMuted()
Specified by:
isIconMuted in interface HasIcon

setIconLight

public void setIconLight(boolean iconLight)
Specified by:
setIconLight in interface HasIcon

isIconLight

public boolean isIconLight()
Specified by:
isIconLight in interface HasIcon

setIconSpin

public void setIconSpin(boolean iconSpin)
Specified by:
setIconSpin in interface HasIcon

isIconSpin

public boolean isIconSpin()
Specified by:
isIconSpin in interface HasIcon

setIconFixedWidth

public void setIconFixedWidth(boolean iconFixedWidth)
Specified by:
setIconFixedWidth in interface HasIcon

isIconFixedWidth

public boolean isIconFixedWidth()
Specified by:
isIconFixedWidth in interface HasIcon


Copyright © 2015. All rights reserved.