public class ComplexWidget extends ComplexPanel implements HasId, HasResponsiveness, HasInlineStyle, HasPull
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledIndexedPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
ComplexWidget() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Widget child) |
String |
getId()
Gets the ID of the widget
|
Pull |
getPull() |
protected void |
insert(Widget child,
Element container,
int beforeIndex,
boolean domInsert)
Deprecated.
|
void |
insert(Widget child,
int beforeIndex)
Inserts a widget at a specific index
|
boolean |
remove(Widget w)
Overrides the remove(Widget) method to avoid potential NPE when
removing a
Text node which is not supposed to be a
"widget" in GWT. |
void |
setColor(String color) |
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 |
setPull(Pull pull) |
void |
setVisibleOn(DeviceSize deviceSize)
Sets the devices that the element is visible on
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ComplexWidget()
public void add(Widget child)
add in interface HasWidgetsadd in class Panelpublic void insert(Widget child, int beforeIndex)
child - - widget to be insertedbeforeIndex - - index for the widget@Deprecated protected void insert(Widget child, Element container, int beforeIndex, boolean domInsert)
insert in class ComplexPanelpublic boolean remove(Widget w)
Overrides the remove(Widget) method to avoid potential NPE when
removing a Text node which is not supposed to be a
"widget" in GWT.
remove in interface HasWidgetsremove in class ComplexPanelpublic void setVisibleOn(DeviceSize deviceSize)
setVisibleOn in interface HasResponsivenessdeviceSize - device sizeDeviceSizepublic void setHiddenOn(DeviceSize deviceSize)
setHiddenOn in interface HasResponsivenessdeviceSize - device sizesDeviceSizepublic void setMarginTop(double margin)
setMarginTop in interface HasInlineStylepublic void setMarginLeft(double margin)
setMarginLeft in interface HasInlineStylepublic void setMarginRight(double margin)
setMarginRight in interface HasInlineStylepublic void setMarginBottom(double margin)
setMarginBottom in interface HasInlineStylepublic void setPaddingTop(double padding)
setPaddingTop in interface HasInlineStylepublic void setPaddingLeft(double padding)
setPaddingLeft in interface HasInlineStylepublic void setPaddingRight(double padding)
setPaddingRight in interface HasInlineStylepublic void setPaddingBottom(double padding)
setPaddingBottom in interface HasInlineStylepublic void setColor(String color)
setColor in interface HasInlineStyleCopyright © 2017. All rights reserved.