|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
com.github.gwtbootstrap.client.ui.base.DivWidget
public class DivWidget
A simple div
widget with support for child widgets.
<b:DivWidget>
<b:SomeChildWidget />
<b:AnotherChildWidget />
</b:DivWidget>
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 | |
---|---|
DivWidget()
Creates an empty widget. |
|
DivWidget(String styleName)
Creates a widget and sets the provided style name. |
Method Summary | |
---|---|
void |
addStyle(Style style)
Adds the provided style to the widget. |
void |
pullRight(boolean pullRight)
Pulls the widget to the right side. |
void |
removeStyle(Style style)
Removes the provided style from the widget. |
void |
setHideOn(Device device)
Sets the kind of device, this widget is hidden on. |
void |
setShowOn(Device device)
Sets the kind of device, this widget is shown on. |
void |
setStyle(Style style)
Replaces the widet's style with the provided one. |
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 |
---|
public DivWidget()
public DivWidget(String styleName)
divs class
property with the
provided String.
- Parameters:
styleName
- the class to be added to the div
Method Detail
pullRight
public void pullRight(boolean pullRight)
- Pulls the widget to the right side.
- Parameters:
pullRight
- true
if the widget should be aligned right.
setStyle
public void setStyle(Style style)
- Replaces the widet's style with the provided one.
- Specified by:
setStyle
in interface HasStyle
- Parameters:
style
- the style to be applied to the Widget.
addStyle
public void addStyle(Style style)
- Adds the provided style to the widget.
- Specified by:
addStyle
in interface HasStyle
- Parameters:
style
- the style to be added to the Widget.
removeStyle
public void removeStyle(Style style)
- Removes the provided style from the widget.
- Specified by:
removeStyle
in interface HasStyle
- Parameters:
style
- the style to be removed from the Widget.
setShowOn
public void setShowOn(Device device)
- Sets the kind of device, this widget is shown on.
The widget is not shown on any other device.
Only works if responsive design is turned on!
- Specified by:
setShowOn
in interface IsResponsive
- See Also:
Configurator.hasResponsiveDesign()
,
IsResponsive.setHideOn(Device)
setHideOn
public void setHideOn(Device device)
- Sets the kind of device, this widget is hidden on.
The widget is not hidden on any other device.
Only works if responsive design is turned on!
- Specified by:
setHideOn
in interface IsResponsive
- See Also:
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2012 gwtbootstrap. All Rights Reserved.