Class Index | File Index

Classes


Class Biojs.HelloWorldYUI


Version 1.0.0.

Extends Biojs.

Defined in: Biojs.HelloWorldYUI.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This is the description of the HelloWorldYUI component.
Field Summary
Field Attributes Field Name and Description
<inner>  
Array containing the supported event names
<inner>  
opt
Default values for the options
Method Summary
Method Attributes Method Name and Description
 
constructor(options)
 
Set text 'Hi there! who are you?'
 
setSize(size)
Change the font size.
Methods borrowed from class Biojs:
addListener, extend, getId, listen, raiseEvent, removeListener, setEventHandlers, setOptions
Event Summary
Event Attributes Event Name and Description
 
onHelloSelected(actionPerformed)
Class Detail
Biojs.HelloWorldYUI(options)
This is the description of the HelloWorldYUI component. Here you can set any HTML text for putting on the generated documentation.
Author: John Gomez.
var instance = new Biojs.HelloWorldYUI({
		target : "YourOwnDivId",
		selectionBackgroundColor : '#FFFF00'
});
Parameters:
{Object} options
An object with the options for HelloWorldYUI component.
Options detailed:
{string} target
Identifier of the DIV tag where the component should be displayed.
{string} [fontFamily=��Andale
mono�, courier, monospace�] Font list to be applied to the component content.
{string} [fontColor="white"]
HTML color code for the font.
{string} [backgroundColor="#7BBFE9"]
Background color for the entire div content.
{Object} [selectionFontColor="white"]
This color will be used to change the font color of selected text.
{Object} [
selectionBackgroundColor="yellow"] This color will be used to change the background of selected text.
Requires:
YUI Core 3.3.0
jQuery Core 1.6.4
Field Detail
<inner> eventTypes
Array containing the supported event names

<inner> opt
Default values for the options
Method Detail
constructor(options)
Parameters:
options

sayHello()
Set text 'Hi there! who are you?'
instance.sayHello();

setSize(size)
Change the font size. Do nothing it no value is provided.
instance.setSize("72px");
Parameters:
{string} size Optional
The new font size in pixels.
Event Detail
onHelloSelected(actionPerformed)
instance.onHelloSelected(
   function( objEvent ) {
      alert("The word " + objEvent.textSelected + " was selected.");
   }
);
Parameters:
{function} actionPerformed
A function which receives an Biojs.Event object as argument.
Event object data:
{Object} source
The component which did triggered the event.
{string} type
The name of the event.
{int} textSelected
Selected text, will be 'Hello' obviously.

Documentation generated by JsDoc Toolkit 2.3.2 on Thu Apr 17 2014 17:42:42 GMT+0100 (BST)