Package com.google.gwt.user.client.ui
Class CustomButton.Face
- java.lang.Object
-
- com.google.gwt.user.client.ui.CustomButton.Face
-
- All Implemented Interfaces:
HasSafeHtml,HasHTML,HasText
- Enclosing class:
- CustomButton
public abstract class CustomButton.Face extends java.lang.Object implements HasHTML, HasSafeHtml
Represents a button's face. Each face is associated with its own style modifier and, optionally, its own contents html, text, or image.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract intgetFaceID()Gets the ID associated with this face.java.lang.StringgetHTML()Gets the face's contents as html.(package private) abstract java.lang.StringgetName()Get the name of the face.java.lang.StringgetText()Gets the face's contents as text.voidsetHTML(SafeHtml html)Set the face's contents as html.voidsetHTML(java.lang.String html)Set the face's contents as html.voidsetImage(Image image)Set the face's contents as an image.voidsetText(java.lang.String text)Sets the face's contents as text.java.lang.StringtoString()
-
-
-
Method Detail
-
getHTML
public java.lang.String getHTML()
Gets the face's contents as html.
-
getText
public java.lang.String getText()
Gets the face's contents as text.
-
setHTML
public void setHTML(SafeHtml html)
Set the face's contents as html.- Specified by:
setHTMLin interfaceHasSafeHtml- Parameters:
html- html to set as face's contents html
-
setHTML
public void setHTML(java.lang.String html)
Set the face's contents as html.
-
setImage
public final void setImage(Image image)
Set the face's contents as an image.- Parameters:
image- image to set as face contents
-
setText
public final void setText(java.lang.String text)
Sets the face's contents as text.
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFaceID
abstract int getFaceID()
Gets the ID associated with this face. This will be a bitwise and of all of the attributes that comprise this face.
-
getName
abstract java.lang.String getName()
Get the name of the face. This property is also used as a modifier on theCustomButtonstyle. For instance, if theCustomButtonstyle is "gwt-PushButton" and the face name is "up", then the CSS class name will be "gwt-PushButton-up".- Returns:
- the face's name
-
-