Package library :: Package pyjamas :: Package ui :: Module CustomButton :: Class Face
[hide private]
[frames] | no frames]

Class Face

source code

Instance Methods [hide private]
 
__init__(self, button, delegateTo=None)
Constructor for Face.
source code
 
getName(self)
Returns with a known face's name
source code
 
getFaceID(self)
Returns with the face's id
source code
 
setName(self, name)
Sets the face's name
source code
 
setFaceID(self, face_id)
Sets the face's id
source code
 
getHTML(self)
Gets the face's contents as html.
source code
 
getText(self)
Gets the face's contents as text.
source code
 
setHTML(self, html)
Set the face's contents as html.
source code
 
setImage(self, image)
Set the face's contents as an image.
source code
 
setText(self, text)
Sets the face's contents as text.
source code
 
toString(self) source code
 
getFace(self)
Gets the contents associated with this face.
source code
Class Variables [hide private]
  STYLENAME_HTML_FACE = "html-face"
Method Details [hide private]

__init__(self, button, delegateTo=None)
(Constructor)

source code 

Constructor for Face. Creates a face that delegates to the supplied face.

Parameters:
  • delegateTo - default content provider

setImage(self, image)

source code 

Set the face's contents as an image.

Parameters:
  • image - image to set as face contents

setText(self, text)

source code 

Sets the face's contents as text.

Parameters:
  • text - text to set as face's contents