public class DivWidget extends FlowPanel implements HasStyle, IsResponsive, HasId
div
widget with support for child widgets.
<b:DivWidget>
<b:SomeChildWidget />
<b:AnotherChildWidget />
</b:DivWidget>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
InsertPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
DivWidget()
Creates an empty widget.
|
DivWidget(String styleName)
Creates a widget and sets the provided style name.
|
Modifier and Type | Method and Description |
---|---|
void |
addStyle(Style style)
Adds the provided style to the widget.
|
String |
getId()
Get ID
|
void |
pullRight(boolean pullRight)
Deprecated.
|
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 |
setId(String id)
Set ID
|
void |
setPullRight(boolean pullRight)
Pulls the widget to the right side.
|
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.
|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add
getWidgetIndex
getWidget, getWidgetCount, getWidgetIndex, remove
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
@Deprecated
public void pullRight(boolean pullRight)
Deprecated.
-
setPullRight
public void setPullRight(boolean pullRight)
Pulls the widget to the right side.
- Parameters:
pullRight
- true
if the widget should be aligned right.
-
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)
Copyright © 2012-2014 gwtbootstrap. All Rights Reserved.