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
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
Modifier and TypeMethodDescription(package private) abstract int
Gets the ID associated with this face.getHTML()
Gets the face's contents as html.(package private) abstract String
getName()
Get the name of the face.getText()
Gets the face's contents as text.void
Set the face's contents as html.void
Set the face's contents as html.final void
Set the face's contents as an image.final void
Sets the face's contents as text.final String
toString()
-
Method Details
-
getHTML
Gets the face's contents as html. -
getText
Gets the face's contents as text. -
setHTML
Set the face's contents as html. -
setImage
Set the face's contents as an image.- Parameters:
image
- image to set as face contents
-
setText
Sets the face's contents as text. -
toString
-
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
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
-