Class Index | File Index

Classes


Class gtk.NoteBook


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
'tabchanged' signal
Method Summary
Method Attributes Method Name and Description
 
appendPage(tabObj, contentObj)
Appends a page to the notebook
 
Return active tab
 
Return number of tabs
 
Return all tabs objects
 
insertAt(tabObj, contentObj, index)
Insert a page to the notebook at index
 
removeTab(index)
Remove tabe by index
 
setActiveTab(index)
activate the tab by index
 
activate the tab by tab
 
Turn border on || off
 
updatePage(pageObj)
Update the content of selected tab
Methods borrowed from class gtk.Widget:
activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, resizeHeightComposite, resizeWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showLoading, showTooltip, sizeRequest
Methods borrowed from class gobject.GObject:
connect, disconnect, emit
Class Detail
gtk.NoteBook()
Field Detail
NOTEBOOK_TABCHANGED
'tabchanged' signal
Method Detail
appendPage(tabObj, contentObj)
Appends a page to the notebook
Parameters:
{object} tabObj
{"tab": label1, "padding": 55}
{object} contentObj
{"content": content2, "padding": 5}

getActiveTab()
Return active tab

{intger} getNumberTabs()
Return number of tabs
Returns:
{intger}

{array} getTabs()
Return all tabs objects
Returns:
{array} array of tabs of object

insertAt(tabObj, contentObj, index)
Insert a page to the notebook at index
Parameters:
{object} tabObj
{"tab": label1, "padding": 55}
{object} contentObj
{"content": content2, "padding": 5}
{integer} index

removeTab(index)
Remove tabe by index
Parameters:
{intger} index
of tab to be removed

setActiveTab(index)
activate the tab by index
Parameters:
{integer} index

setActiveTabByTab(tab)
activate the tab by tab
Parameters:
{gtk.Widget} tab

setBorderVisible()
Turn border on || off
Parameters:
{boolean}

updatePage(pageObj)
Update the content of selected tab
Parameters:
{object} pageObj
{"content": gtk.Widget, "padding": 5}

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