Represents a button's face. Each face is associated with its own style
modifier and, optionally, its own contents html, text, or image.
|
__init__(self,
upImageText=None,
downImageText=None,
listener=None,
**kwargs)
Constructor for CustomButton. |
source code
|
|
|
|
|
getDownDisabledFace(self)
Gets the downDisabled face of the button. |
source code
|
|
|
getDownFace(self)
Gets the down face of the button. |
source code
|
|
|
getDownHoveringFace(self)
Gets the downHovering face of the button. |
source code
|
|
|
|
|
|
|
|
|
getUpDisabledFace(self)
Gets the upDisabled face of the button. |
source code
|
|
|
getUpFace(self)
Gets the up face of the button. |
source code
|
|
|
getUpHoveringFace(self)
Gets the upHovering face of the button. |
source code
|
|
|
onBrowserEvent(self,
event)
Listen to events raised by the browser and call the appropriate
method of the listener (widget, ..) object. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onAttach(self)
Overridden on attach to ensure that a button face has been chosen
before the button is displayed. |
source code
|
|
|
onClick(self,
sender=None)
Called when the user finishes clicking on this button. |
source code
|
|
|
onClickCancel(self)
Called when the user aborts a click in progress; for example, by
dragging the mouse outside of the button before releasing the mouse
button. |
source code
|
|
|
|
|
onDetach(self)
Called when this widget is being removed from the DOM tree of the
document. |
source code
|
|
|
setDown(self,
down)
Sets whether this button is down. |
source code
|
|
|
finishSetup(self)
Common setup between constructors. |
source code
|
|
|
|
|
|
|
|
|
isHovering(self)
Is the mouse hovering over this button? Returns True |
source code
|
|
|
setHovering(self,
hovering)
Sets whether this button is hovering. |
source code
|
|
|
toggleDown(self)
Toggle the up/down attribute. |
source code
|
|
|
|
|
|
|
|
|
|
|
setCurrentFace(self,
newFace)
Implementation note: default access for testing. |
source code
|
|
|
setCurrentFaceFromID(self,
faceID)
Sets the current face based on the faceID. |
source code
|
|
|
setCurrentFaceElement(self,
newFaceElement) |
source code
|
|
|
setDownDisabledFace(self,
downDisabled)
Sets the downDisabled face of the button. |
source code
|
|
|
setDownFace(self,
down)
Sets the down face of the button. |
source code
|
|
|
setDownHoveringFace(self,
downHovering)
Sets the downHovering face of the button. |
source code
|
|
|
setUpDisabledFace(self,
upDisabled)
Sets the upDisabled face of the button. |
source code
|
|
|
setUpFace(self,
up)
Sets the up face of the button. |
source code
|
|
|
setUpHoveringFace(self,
upHovering)
Sets the upHovering face of the button. |
source code
|
|
|
toggleDisabled(self)
Toggle the disabled attribute. |
source code
|
|
|
toggleHover(self)
Toggle the hovering attribute. |
source code
|
|
Inherited from Widget.Widget :
doAttachChildren ,
doDetachChildren ,
getID ,
getLayoutData ,
getParent ,
isAttached ,
onLoad ,
removeFromParent ,
setContextMenu ,
setID ,
setLayoutData ,
setParent
Inherited from UIObject.UIObject :
addStyleDependentName ,
addStyleName ,
getAbsoluteLeft ,
getAbsoluteTop ,
getElement ,
getHeight ,
getOffsetHeight ,
getOffsetWidth ,
getStyleAttribute ,
getStyleName ,
getStylePrimaryName ,
getTitle ,
getVisible ,
getWidth ,
isVisible ,
removeStyleDependentName ,
removeStyleName ,
setElement ,
setHeight ,
setPixelSize ,
setSize ,
setStyleAttribute ,
setStyleName ,
setTitle ,
setVisible ,
setWidth ,
setzIndex ,
sinkEvents ,
unsinkEvents
Inherited from Applier :
applyValues ,
retrieveValues ,
setDefaults ,
setElementProperties ,
updateInstance
Inherited from FocusListener.FocusHandler :
addFocusListener ,
onFocus ,
onLostFocus ,
removeFocusListener
Inherited from KeyboardListener.KeyboardHandler :
addKeyboardListener ,
onKeyDown ,
onKeyPress ,
onKeyUp ,
removeKeyboardListener
Inherited from MouseListener.MouseHandler :
addMouseListener ,
onMouseDown ,
onMouseEnter ,
onMouseGlassEnter ,
onMouseGlassLeave ,
onMouseLeave ,
onMouseMove ,
onMouseUp ,
removeMouseListener
Inherited from ClickListener.ClickHandler :
addClickListener ,
addDoubleClickListener ,
clearClickListener ,
clearDoubleClickListener ,
onDoubleClick ,
removeClickListener ,
removeDoubleClickListener
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
Inherited from Focus.FocusMixin :
isEnabled ,
isReadonly ,
setReadonly
|