Class gtk.Bubble
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
gtk.Bubble(dom, callerId, title, tailDistance, isVertical, tailLength)
Bubble is a class to create Bubble or Tooltip
|
Field Attributes | Field Name and Description |
---|---|
A registered signal name 'closed'
|
Method Attributes | Method Name and Description |
---|---|
addContent(content)
Method to add Dom object into the bubble
|
|
close()
Method to close or remove the bubble
|
|
confirmClose(callback, msg)
Method to show the modal modal window cover on top of page
|
|
getTitle()
Method to get or return the title of the bubble
|
|
hide(time)
Method to hide the bubble with in an interval of time.
|
|
loadContent(url, callback)
Method to get the content from server then append to bubble
|
|
Method to remove all of its contents
|
|
Method to remove title from bubble
|
|
setAutoHide(The)
Method to set display auto hideElement
|
|
Method to set fixed position
|
|
setPosition(caller)
Method to set position of bubble or tooltip
|
|
Method to set position of bubble or tooltip by mouse position
|
|
setTitle(title)
Method to set a newa title of the bubble
|
|
setTooltip(domContent)
Method to set content as tooltip
|
|
show()
Method to show the bubble after initiated
|
|
Method to show the modal modal window cover on top of page
|
- Methods borrowed from class gtk.Widget:
- activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hideLoading, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, resizeHeightComposite, resizeWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setWidth, showLoading, showTooltip, sizeRequest
- Methods borrowed from class gobject.GObject:
- connect, disconnect, emit
Class Detail
gtk.Bubble(dom, callerId, title, tailDistance, isVertical, tailLength)
Bubble is a class to create Bubble or Tooltip
- Parameters:
- {Object} dom
- DOM object of its child content
- {Object} callerId
- DOM object of parent to show/display bubble or tooltip
- {String} title
- The title of the Bubble
- {Integer} tailDistance
- An integer value for tail of bubble
- {Boolean} isVertical
- The boolean value true or false to define if it is horizontal or vertical
- {Integer} tailLength
- An integer value of tail length
Field Detail
BUBBLE_CLOSED
A registered signal name 'closed'
Method Detail
addContent(content)
Method to add Dom object into the bubble
- Parameters:
- {Dom} content
- The Dom object to be passed
close()
Method to close or remove the bubble
confirmClose(callback, msg)
Method to show the modal modal window cover on top of page
- Parameters:
- {Function} callback
- The callback method
- {String} msg
- The confirm message display in the confirmation popup box
{String}
getTitle()
Method to get or return the title of the bubble
- Returns:
- {String} The title of of the bubble if applicable
hide(time)
Method to hide the bubble with in an interval of time. When the user mouseover the bubble, it won't hide. When User mouseout the bubble, the bubble will be hide
- Parameters:
- {Integer} time
- The time interval which set to hide bubble. The default interval is 500.
loadContent(url, callback)
Method to get the content from server then append to bubble
- Parameters:
- {String} url
- The URL of resource site
- {Function} callback
- The method which will be executed after get response from server. Callback function should return a dom content
removeContent()
Method to remove all of its contents
removeTitle()
Method to remove title from bubble
setAutoHide(The)
Method to set display auto hideElement
- Parameters:
- {Boolean} The
- boolean true or false for auto display or hide
setFixedPosition()
Method to set fixed position
setPosition(caller)
Method to set position of bubble or tooltip
- Parameters:
- {Object} caller
- The DOM object of caller or parent
setPositionByMouse(e)
Method to set position of bubble or tooltip by mouse position
- Parameters:
- {Event} e
- The event to be passed
setTitle(title)
Method to set a newa title of the bubble
- Parameters:
- {String} title
- The string title is set to bubble
setTooltip(domContent)
Method to set content as tooltip
- Parameters:
- {DOm} domContent
- The DOM content value
show()
Method to show the bubble after initiated
showModal()
Method to show the modal modal window cover on top of page