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

public class Column
extends Div

A column of Bootstrap's fluid grid system.

Author:
Sven Jacobs, Joshua Godi, Pontus Enmark
See Also:
Row

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
Column(ColumnSize firstSize, ColumnSize... otherSizes)
          Creates column with one or more additional sizes.
Column(ColumnSize size, Widget firstWidget, Widget... otherWidgets)
          Creates a column with one size, and with one or more additional widgets added.
Column(String size)
          Convenience constructor for UiBinder to create a Column with one or more sizes.
 
Method Summary
 void addOffset(ColumnOffset... offsets)
           
 void addOffset(String offsets)
           
 void addPull(ColumnPull... pulls)
           
 void addPull(String pulls)
           
 void addPush(ColumnPush... pushes)
           
 void addPush(String pushes)
           
 void addSize(ColumnSize... sizes)
           
 void addSize(String sizes)
           
 void setOffset(ColumnOffset... offsets)
           
 void setOffset(String offsets)
           
 void setPull(ColumnPull... pulls)
           
 void setPull(String pulls)
           
 void setPush(ColumnPush... pushes)
           
 void setPush(String pushes)
           
 void setSize(ColumnSize firstSize, ColumnSize... otherSizes)
          Adds one or more additional column sizes.
 void setSize(String sizes)
           
 
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

Column

public Column(ColumnSize size,
              Widget firstWidget,
              Widget... otherWidgets)
Creates a column with one size, and with one or more additional widgets added.

Additional sizes can be added with addSize(ColumnSize...). Additional widgets can be added with ComplexWidget.add(Widget).

Parameters:
size - Size of column
firstWidget - Widget to add
otherWidgets - Other widgets to add

Column

public Column(ColumnSize firstSize,
              ColumnSize... otherSizes)
Creates column with one or more additional sizes.

Additional sizes can be added with addSize(ColumnSize...)

Parameters:
firstSize - Size of column
otherSizes - Other sizes of column
See Also:
addSize(ColumnSize...)

Column

@UiConstructor
public Column(String size)
Convenience constructor for UiBinder to create a Column with one or more sizes.

Size needs to be a space-separated String of ColumnSize enum names, e.g. "SM_3 LG_3"

Parameters:
size - Space-separated String of ColumnSize
See Also:
ColumnSize
Method Detail

setSize

public void setSize(ColumnSize firstSize,
                    ColumnSize... otherSizes)
Adds one or more additional column sizes.

Parameters:
firstSize - Column size
otherSizes - Additional column sizes

setSize

public void setSize(String sizes)

addSize

public void addSize(ColumnSize... sizes)

addSize

public void addSize(String sizes)

setPull

public void setPull(ColumnPull... pulls)

setPull

public void setPull(String pulls)

addPull

public void addPull(ColumnPull... pulls)

addPull

public void addPull(String pulls)

setPush

public void setPush(ColumnPush... pushes)

setPush

public void setPush(String pushes)

addPush

public void addPush(ColumnPush... pushes)

addPush

public void addPush(String pushes)

setOffset

public void setOffset(ColumnOffset... offsets)

setOffset

public void setOffset(String offsets)

addOffset

public void addOffset(ColumnOffset... offsets)

addOffset

public void addOffset(String offsets)


Copyright © 2015. All rights reserved.