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

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.base.AddOn
All Implemented Interfaces:
HasIcon, HasStyle, IsResponsive, HasAttachHandlers, HasHandlers, EventListener, HasText, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>

public class AddOn
extends ComplexWidget
implements HasText, HasIcon

Input add-on.

AddOn can set text or icon.

UiBinder Usage:

 <!-- text addon -->
 <b:AddOn text="@"/>
 
 <!-- text addon another usage -->
 <b:AddOn>@</b:AddOn>
 
 <!-- icon addon -->
 <b:AddOn icon="STAR"/>
 
 <!-- widget addon -->
 <b:Addon><b:widget><b:CheckBox/></b:widget></b:AddOn>
 
 

Since:
2.0.4.0
Author:
ohashi keisuke
See Also:
InputAddOn, IconType, Bootstrap Docs

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.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
AddOn()
          Creates an empty widget.
 
Method Summary
 void addWidget(IsWidget w)
          Add widget.
 String getText()
          
 void setIcon(IconType iconType)
          Sets the Type of the Icon.
 void setIconSize(IconSize size)
          Sets the size of the icon.
 void setText(String text)
          
 
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, onAttach, 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.user.client.ui.HasWidgets
clear, iterator, remove
 

Constructor Detail

AddOn

public AddOn()
Creates an empty widget.

Method Detail

getText

public String getText()

Specified by:
getText in interface HasText

setText

public void setText(String text)

Specified by:
setText in interface HasText

setIcon

public void setIcon(IconType iconType)
Sets the Type of the Icon.

Specified by:
setIcon in interface HasIcon

setIconSize

public void setIconSize(IconSize size)
Sets the size of the icon.

Default is DEFAULT.

Specified by:
setIconSize in interface HasIcon
Parameters:
size - the new size.

addWidget

@UiChild(tagname="widget",
         limit=1)
public void addWidget(IsWidget w)
Add widget. Its method is for uibinder syntax.

Parameters:
w - added widget


Copyright © 2012 gwtbootstrap. All Rights Reserved.