public abstract class

CustomButton.Face

extends Object
implements HasSafeHtml HasHTML
java.lang.Object
   ↳ com.google.gwt.user.client.ui.CustomButton.Face

Class Overview

Represents a button's face. Each face is associated with its own style modifier and, optionally, its own contents html, text, or image.

Summary

Public Methods
String getHTML()
Gets the face's contents as html.
String getText()
Gets the face's contents as text.
void setHTML(SafeHtml html)
Set the face's contents as html.
void setHTML(String html)
Set the face's contents as html.
final void setImage(Image image)
Set the face's contents as an image.
final void setText(String text)
Sets the face's contents as text.
final String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.safehtml.client.HasSafeHtml
From interface com.google.gwt.user.client.ui.HasHTML
From interface com.google.gwt.user.client.ui.HasText

Public Methods

public String getHTML ()

Gets the face's contents as html.

Returns
  • face's contents as html

public String getText ()

Gets the face's contents as text.

Returns
  • face's contents as text

public void setHTML (SafeHtml html)

Set the face's contents as html.

Parameters
html html to set as face's contents html

public void setHTML (String html)

Set the face's contents as html.

Parameters
html html to set as face's contents html

public final void setImage (Image image)

Set the face's contents as an image.

Parameters
image image to set as face contents

public final void setText (String text)

Sets the face's contents as text.

Parameters
text text to set as face's contents

public final String toString ()