public class ComplexWidget extends ComplexPanel implements HasId, HasResponsiveness, HasInlineStyle, HasPull
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
IndexedPanel.ForIsWidget
HasWidgets.ForIsWidget
DEBUG_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, 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 ComplexWidget()
public void add(Widget child)
add
in interface HasWidgets
add
in class Panel
public 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 ComplexPanel
public 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 HasWidgets
remove
in class ComplexPanel
public void setVisibleOn(DeviceSize deviceSize)
setVisibleOn
in interface HasResponsiveness
deviceSize
- device sizeDeviceSize
public void setHiddenOn(DeviceSize deviceSize)
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
Copyright © 2017. All rights reserved.