public class HTMLPanel extends HTMLPanel implements HasId, HasDataSpy, HasDataTarget, HasResponsiveness, HasInlineStyle, HasContextualBackground
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
IndexedPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_ID_PREFIX
Constructor and Description |
---|
HTMLPanel(SafeHtml safeHtml) |
HTMLPanel(String html) |
HTMLPanel(String tag,
String html) |
Modifier and Type | Method and Description |
---|---|
ContextualBackground |
getContextualBackground()
Get the object's contextual background.
|
Spy |
getDataSpy()
Gets the data spy attribute for the widget
|
String |
getDataTarget()
Gets the data target of the widget
|
String |
getId()
Gets the ID of the widget
|
void |
setColor(String color) |
void |
setContextualBackground(ContextualBackground contextualBackground)
Sets the object's contextual background.
|
void |
setDataSpy(Spy spy)
Set the data spy attribute on the widget
|
void |
setDataTarget(String dataTarget)
Sets the data target for the widget
|
void |
setDataTargetWidget(Widget widget) |
void |
setDataTargetWidgets(List<Widget> widgets) |
void |
setHiddenOn(DeviceSize deviceSize)
Sets the devices that the element is hidden on
|
void |
setId(String id)
Sets the ID on the widget
|
void |
setMarginBottom(double margin) |
void |
setMarginLeft(double margin) |
void |
setMarginRight(double margin) |
void |
setMarginTop(double margin) |
void |
setPaddingBottom(double padding) |
void |
setPaddingLeft(double padding) |
void |
setPaddingRight(double padding) |
void |
setPaddingTop(double padding) |
void |
setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on
|
add, add, add, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, createUniqueId, getElementById, wrap
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, clear, 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, unsinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public void setId(String id)
HasId
public void setDataSpy(Spy spy)
HasDataSpy
setDataSpy
in interface HasDataSpy
spy
- data spy attribute for the widgetpublic Spy getDataSpy()
HasDataSpy
getDataSpy
in interface HasDataSpy
public void setDataTargetWidgets(List<Widget> widgets)
setDataTargetWidgets
in interface HasDataTarget
public void setDataTargetWidget(Widget widget)
setDataTargetWidget
in interface HasDataTarget
public void setDataTarget(String dataTarget)
HasDataTarget
setDataTarget
in interface HasDataTarget
dataTarget
- data target stringpublic String getDataTarget()
HasDataTarget
getDataTarget
in interface HasDataTarget
public void setVisibleOn(DeviceSize deviceSize)
HasResponsiveness
setVisibleOn
in interface HasResponsiveness
deviceSize
- device sizeDeviceSize
public void setHiddenOn(DeviceSize deviceSize)
HasResponsiveness
setHiddenOn
in interface HasResponsiveness
deviceSize
- device sizesDeviceSize
public void setMarginTop(double margin)
setMarginTop
in interface HasInlineStyle
public void setMarginLeft(double margin)
setMarginLeft
in interface HasInlineStyle
public void setMarginRight(double margin)
setMarginRight
in interface HasInlineStyle
public void setMarginBottom(double margin)
setMarginBottom
in interface HasInlineStyle
public void setPaddingTop(double padding)
setPaddingTop
in interface HasInlineStyle
public void setPaddingLeft(double padding)
setPaddingLeft
in interface HasInlineStyle
public void setPaddingRight(double padding)
setPaddingRight
in interface HasInlineStyle
public void setPaddingBottom(double padding)
setPaddingBottom
in interface HasInlineStyle
public void setColor(String color)
setColor
in interface HasInlineStyle
public void setContextualBackground(ContextualBackground contextualBackground)
setContextualBackground
in interface HasContextualBackground
contextualBackground
- the object's new contextual backgroundpublic ContextualBackground getContextualBackground()
getContextualBackground
in interface HasContextualBackground
Copyright © 2017. All rights reserved.