SimpleFace class
class SimpleFace extends Face { String name; int faceID; SimpleFace(CustomButton customButton, Face delegateTo, this.name, this.faceID) : super(customButton, delegateTo); String getName() { return name; } int getFaceID() { return faceID; } }
Extends
Face > SimpleFace
Constructors
new SimpleFace(CustomButton customButton, Face delegateTo, String name, int faceID) #
Constructor for <code>Face</code>. Creates a new face that delegates to the supplied face.
@param delegateTo default content provider
SimpleFace(CustomButton customButton, Face delegateTo, this.name, this.faceID) : super(customButton, delegateTo);
Properties
int faceID #
int faceID
String get html #
Gets the face's contents as html.
@return face's contents as html
String get html => getFace().innerHtml;
void set html(String value) #
Set the face's contents as html.
@param html html to set as face's contents html
void set html(String value) { face = new dart_html.DivElement(); UiObject.manageElementStyleName(face, STYLENAME_HTML_FACE, true); face.innerHtml = value; updateButtonFace(); }
String name #
String name
Methods
Element getFace() #
Gets the contents associated with this face.
dart_html.Element getFace() { if (face == null) { if (delegateTo == null) { // provide a default face as none was supplied. face = new dart_html.DivElement(); return face; } else { return delegateTo.getFace(); } } else { return face; } }
int getFaceID() #
Gets the ID associated with this face. This will be a bitwise and of all of the attributes that comprise this face.
int getFaceID() { return faceID; }
String getName() #
Get the name of the face. This property is also used as a modifier on the <code>CustomButton</code> style. <p/> For instance, if the <code>CustomButton</code> style is "gwt-PushButton" and the face name is "up", then the CSS class name will be "gwt-PushButton-up".
@return the face's name
String getName() { return name; }
void setImage(Image image) #
Set the face's contents as an image.
@param image image to set as face contents
void setImage(Image image) { face = image.getElement(); updateButtonFace(); }