Class Index | File Index

Classes


Class gtk.UploadButton


Extends gtk.Button.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
gtk.UploadButton(label, stock)
UploadButton is a class to create an upload button
Field Summary
Field Attributes Field Name and Description
 
A registered signal name 'filechanged' when file is changed
 
A registered signal name 'mouseout'
 
A registered signal name 'mouseover'
Fields borrowed from class gtk.Button:
BUTTON_CLICKED, BUTTON_ENTERKEYPRESSED, BUTTON_MOUSEOUT, BUTTON_MOUSEOVER
Method Summary
Method Attributes Method Name and Description
 
A method to disable the control of upload button
 
A method to set enabled to the button
 
A method to get object of the upload input file
 
A method to get an upload object as Dom
 
A method to hide loading image of upload button
 
A method to resize the height of upload Button
 
A method to resize the width of the upload button
 
setAsImage(imageObj)
A method to transform or chagne upload button to image
 
setAttribute(attribute)
A method to set attributes and apply styles
 
setName(name)
A method to set the name of upload button
 
setText(strName)
A method to set the text of upload button
 
A method to show loading image inside the button
Methods borrowed from class gtk.Button:
getImage, getLabel, setButtonShape, setImage, setLabel, setTabindex, setTextLabel
Methods borrowed from class gtk.Widget:
activate, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showTooltip, sizeRequest
Methods borrowed from class gobject.GObject:
connect, disconnect, emit
Class Detail
gtk.UploadButton(label, stock)
UploadButton is a class to create an upload button
Parameters:
{String} label
The label or text display inside the upload button
{String} stock
The stock value to be set
Field Detail
UPLOADBUTTON_FILECHANGED
A registered signal name 'filechanged' when file is changed

UPLOADBUTTON_MOUSEOUT
A registered signal name 'mouseout'

UPLOADBUTTON_MOUSEOVER
A registered signal name 'mouseover'
Method Detail
disable()
A method to disable the control of upload button

enable()
A method to set enabled to the button

{Dom} getChildNode()
A method to get object of the upload input file
Returns:
{Dom} The object of upload file

{Dom} getUploadNode()
A method to get an upload object as Dom
Returns:
{Dom} The Dom object of upload button

hideLoading()
A method to hide loading image of upload button

resizeHeightComposite(height)
A method to resize the height of upload Button
Parameters:
{Interger} height
The length of width to be resized.

resizeWidthComposite(width)
A method to resize the width of the upload button
Parameters:
{Interger} width
The length of width to be resized.

setAsImage(imageObj)
A method to transform or chagne upload button to image
Parameters:
{gtk.Image} imageObj
The gtk.Image object to display to be set

setAttribute(attribute)
A method to set attributes and apply styles
Parameters:
{Object} attribute
The object literal that contain JavaScript styles

setName(name)
A method to set the name of upload button
Parameters:
{String} name
The name of upload button

setText(strName)
A method to set the text of upload button
Parameters:
{String} strName
The name of upload button

showLoading()
A method to show loading image inside the button

Documentation generated by JsDoc Toolkit 2.1.0 on Tue Jul 06 2010 11:13:56 GMT+0700 (ICT)