Button Widget
The button can be toggle or normal one. The available component user events are onbuttondown, onbuttonup for toggle button and onclick for non-toggle button.
Raphael Derosso Pereira
Button Widget | |
Calls all required initialization procedures. | |
Update the button caption | |
Returns the current caption of this button | |
Sets the type of button to toggle or to conventional | |
Has the same effect as pushing the button with the mouse | |
Has the same effect as releasing the button with the mouse | |
Overwritten method that puts button back to it initial state | |
Overwritten method that puts button back to it initial state | |
This invokes the function associated with the onbuttondown event and garantees that the button has the right CSS class | |
This invokes the function associated with the onbuttonup event and garantees that the button has the right CSS class | |
Returns a function that will be called when ‘onmouseover’ event occurs. | |
Returns a function that will be called when ‘onmouseout’ event occurs. | |
Checks on every mouseup event if the event was done out of the button and in that case, changes the toggle status of the button to 0 |
p._getOnMouseOver = function ()
Returns a function that will be called when ‘onmouseover’ event occurs.
This function specifically handles the insertion of the pushed CSS class when the button has been pushed down and the mouse has gone out without the user releasing the mouse button. If the user gets back with the mouse holding pressed over the button, the button must appear as pushed.
Calls all required initialization procedures.
p.initThyButton = function ()
Update the button caption
p.populate = function( data )
Returns the current caption of this button
p.sweepOut = function()
Sets the type of button to toggle or to conventional
p.setToggle = function( bool )
Has the same effect as pushing the button with the mouse
p.pressButton = function ( event )
Has the same effect as releasing the button with the mouse
p.releaseButton = function ( event )
Overwritten method that puts button back to it initial state
p._cleanUp = function ()
This invokes the function associated with the onbuttondown event and garantees that the button has the right CSS class
p._getOnButtonDown = function()
This invokes the function associated with the onbuttonup event and garantees that the button has the right CSS class
p._getOnButtonUp = function()
Returns a function that will be called when ‘onmouseover’ event occurs.
p._getOnMouseOver = function ()
Returns a function that will be called when ‘onmouseout’ event occurs.
p._getOnMouseOut = function ()
Checks on every mouseup event if the event was done out of the button and in that case, changes the toggle status of the button to 0
p._getDocMouseUp = function ()