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 int
getFaceID()
Gets the ID associated with this face.java.lang.String
getHTML()
Gets the face's contents as html.(package private) abstract java.lang.String
getName()
Get the name of the face.java.lang.String
getText()
Gets the face's contents as text.void
setHTML(SafeHtml html)
Set the face's contents as html.void
setHTML(java.lang.String html)
Set the face's contents as html.void
setImage(Image image)
Set the face's contents as an image.void
setText(java.lang.String text)
Sets the face's contents as text.java.lang.String
toString()
-
-
-
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:
setHTML
in 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:
toString
in 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 theCustomButton
style. For instance, if theCustomButton
style is "gwt-PushButton" and the face name is "up", then the CSS class name will be "gwt-PushButton-up".- Returns:
- the face's name
-
-