public abstract class AbstractTextWidget extends com.google.gwt.user.client.ui.Widget implements HasId, com.google.gwt.user.client.ui.HasHTML, HasInlineStyle, com.google.gwt.editor.client.IsEditor<com.google.gwt.editor.client.LeafValueEditor<String>>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextWidget(com.google.gwt.dom.client.Element element) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.editor.client.LeafValueEditor<String> |
asEditor() |
String |
getBackgroundColor() |
String |
getFontSize() |
String |
getHTML() |
String |
getId() |
double |
getOpacity() |
String |
getText() |
String |
getTextColor() |
void |
setBackgroundColor(String bgColor)
Sets the background color of material components, for example:
|
void |
setDisplay(Display display) |
void |
setFontSize(double fontSize,
com.google.gwt.dom.client.Style.Unit unit) |
void |
setFontSize(String fontSize) |
void |
setHTML(String html) |
void |
setId(String id) |
void |
setMargin(double margin) |
void |
setMarginBottom(double margin) |
void |
setMarginLeft(double margin) |
void |
setMarginRight(double margin) |
void |
setMarginTop(double margin) |
void |
setOpacity(double opacity) |
void |
setPadding(double padding) |
void |
setPaddingBottom(double padding) |
void |
setPaddingLeft(double padding) |
void |
setPaddingRight(double padding) |
void |
setPaddingTop(double padding) |
void |
setText(String text) |
void |
setTextColor(String textColor)
Set the text color of material components, for example:
|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, 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, toStringprotected AbstractTextWidget(com.google.gwt.dom.client.Element element)
public void setText(String text)
setText in interface com.google.gwt.user.client.ui.HasTextpublic String getText()
getText in interface com.google.gwt.user.client.ui.HasTextpublic String getHTML()
getHTML in interface com.google.gwt.user.client.ui.HasHTMLpublic void setHTML(String html)
setHTML in interface com.google.gwt.user.client.ui.HasHTMLpublic void setMargin(double margin)
setMargin in interface HasInlineStylepublic 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 setPadding(double padding)
setPadding 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 setBackgroundColor(String bgColor)
HasColorspanel.setBackgroundColor("blue");setBackgroundColor in interface HasColorspublic String getBackgroundColor()
getBackgroundColor in interface HasColorspublic void setTextColor(String textColor)
HasColorspanel.setTextColor("blue darken-2");setTextColor in interface HasColorspublic String getTextColor()
getTextColor in interface HasColorspublic void setFontSize(String fontSize)
setFontSize in interface HasFontSizepublic String getFontSize()
getFontSize in interface HasFontSizepublic void setFontSize(double fontSize, com.google.gwt.dom.client.Style.Unit unit)
setFontSize in interface HasFontSizepublic void setOpacity(double opacity)
setOpacity in interface HasOpacitypublic double getOpacity()
getOpacity in interface HasOpacitypublic void setDisplay(Display display)
setDisplay in interface HasInlineStyleCopyright © 2016. All rights reserved.