com.github.gwtbootstrap.client.ui
Class Icon

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.github.gwtbootstrap.client.ui.Icon
All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasVisibility, IsWidget

public class Icon
extends Widget

Widget with a black or white icon.

The icons are provided by Glyphicons and Font Awesome.

UiBinder Usage:

 <b:Icon type="PLANE" />
 
 

Since:
2.0.4.0
Author:
Carlos Alexandro Becker, Dominik Mayer
See Also:
Bootstrap documentation, Font Awesome page

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
Icon()
          Creates a widget but doesn't set an icon yet.
Icon(IconType type)
          Creates a black icon of given type.
 
Method Summary
 IconType getIconType()
          Get the icon type
 void setIconSize(IconSize size)
          Sets the icon size.
 void setType(IconType type)
          Sets the icon type.
 
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, 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
 

Constructor Detail

Icon

public Icon()
Creates a widget but doesn't set an icon yet.

(This is probably not what you want to do most of the time.)


Icon

@UiConstructor
public Icon(IconType type)
Creates a black icon of given type.

Parameters:
type - the icon type
Method Detail

setType

public void setType(IconType type)
Sets the icon type.

Parameters:
type - the icon type

setIconSize

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

Parameters:
size - the icon size

getIconType

public IconType getIconType()
Get the icon type

Returns:
icon type.


Copyright © 2012 gwtbootstrap. All Rights Reserved.