com.github.gwtbootstrap.client.ui
Class Column

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.google.gwt.user.client.ui.FlowPanel
                      extended by com.github.gwtbootstrap.client.ui.base.DivWidget
                          extended by com.github.gwtbootstrap.client.ui.Column
All Implemented Interfaces:
HasSize, HasStyle, IsResponsive, HasAttachHandlers, HasHandlers, EventListener, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, InsertPanel, InsertPanel.ForIsWidget, IsWidget, Iterable<Widget>

public class Column
extends DivWidget
implements HasSize

Column of the Bootstrap grid system.

It has to be added to a Row or a FluidRow.

UiBinder Usage:

 <b:Column size="3">
     <b:Well />
 </b:Column>
 
Setting the size is mandatory.

Since:
2.0.4.0
Author:
Carlos Alexandro Becker, Dominik Mayer
See Also:
Bootstrap documentation, Configurator.hasResponsiveDesign()

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.InsertPanel
InsertPanel.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
Column(int size)
          Creates a new Column of given size.
Column(int size, int offset)
          Creates a new Column of given size and with given offset.
Column(int size, int offset, Widget... widgets)
          Creates a new Column of given size, with given offset and widgets
Column(int size, Widget... widgets)
          Creates a new Column of given size and with given widgets.
 
Method Summary
 void add(Widget... widgets)
          Adds the provided widgets to the Column.
 void setOffset(int offset)
          Sets the offset of the Column from the left side.
 void setSize(int size)
          Sets the size of the Column in the Bootstrap grid system.
 
Methods inherited from class com.github.gwtbootstrap.client.ui.base.DivWidget
addStyle, pullRight, removeStyle, setHideOn, setShowOn, setStyle
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insert
 
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, 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.InsertPanel.ForIsWidget
add
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Constructor Detail

Column

@UiConstructor
public Column(int size)
Creates a new Column of given size.

Parameters:
size - the size of the Column in the Bootstrap grid system

Column

public Column(int size,
              int offset)
Creates a new Column of given size and with given offset.

Parameters:
size - the size of the Column in the Bootstrap grid system
offset - the offset from the left side

Column

public Column(int size,
              int offset,
              Widget... widgets)
Creates a new Column of given size, with given offset and widgets

Parameters:
size - the size of the Column in the Bootstrap grid system
offset - the offset from the left side
widgets - the widgets to be added to the Column

Column

public Column(int size,
              Widget... widgets)
Creates a new Column of given size and with given widgets.

Parameters:
size - the size of the Column in the Bootstrap grid system
widgets - the widgets to be added to the Column
Method Detail

setSize

public void setSize(int size)
Sets the size of the Column in the Bootstrap grid system.

Specified by:
setSize in interface HasSize
Parameters:
size - the size of the Column

setOffset

public void setOffset(int offset)
Sets the offset of the Column from the left side.

Parameters:
offset - the offset in the Bootstrap grid system

add

public void add(Widget... widgets)
Adds the provided widgets to the Column.

Parameters:
widgets - the widgets to be added


Copyright © 2012 gwtbootstrap. All Rights Reserved.