Class DataWidget

Object
   |
   +--DataWidget

class DataWidget


This is the basic class that represents a DataWidget. This class exposes main functions to manipulate a DataWidget from a custom DataWidget renderer or any API function called by the DreamFace Engine when a DataWidget needs to be displayed or personalized.
Defined in dfDataWidget.js


Field Summary
 Object data
          
 Object dataAsText
          
 Object dataSource
          
 Object dataSourceName
          
 Object dataSourceParameters
          
 Object directory
          
 Object name
          
 Object parameters
          
 Object preferences
          
 Object template
          
 Object title
          
 Object titleVisibility
          
 Object type
          
 Object widgetClass
          
 
Constructor Summary
DataWidget( <Document> dataWidgetDefinition )
            Construct a new DataWidget object.
 
Method Summary
 void addContent( <String> fragment )
           Add an xHTML fragment (DIV, IFRAME, TABLE, ...) to the DataWidget's content.
 void clearContent()
           Clear the DataWidget's content.
 void construct( <Document> dataWidgetDefinition )
           Internal Function.
 void executeDataSource()
           Execute the DataSource associated with the DataWidget.
 Document getData()
           Return the Data resulting from the DataSource execution.
 String getDataAsText()
           Return the Data resulting from the DataSource execution as Text.
 String getDataSourceName()
           Return the DataSource name associated to the DataWidget instance.
 Document getDataSourceParameters()
           Return the DataSource parameters used by the DataWidget when executing the DataSource.
 String getDirectory()
           Return the directory attached to the DataWidget
 String getDirectoryComponent()
           Return the directory component (Flex or XForms) attached to the DataWidget
 String getDirectoryComponentBinding()
           Return the directory component (Flex or XForms) binding source
 int getHeight()
           Return the DataWidget height
 String getName()
           Return the name (i.e the identifier) of the DataWidget instance.
 String getParameter(<String> paramName)
           Return the parameter value of the DataWidget instance.
 Document getParameters()
           Return the parameters of the DataWidget instance.
 String getParametersAsText()
           Return the parameters of the DataWidget instance as Text.
 Document getPreferences()
           Return the preferences of the DataWidget instance.
 String getPreferencesAsText()
           Return the preferences of the DataWidget instance as Text.
 Document getRenderer()
           Retrieve the DataWidget JavaScript renderer associated to the template.
 Document getTemplate()
           Return the DataWidget template used to cratethe DataWidget instance.
 String getTemplateName()
           Return the name of the DataWidget template used to cratethe DataWidget instance.
 String getTitle()
           Return the title of the DataWidget instance.
 String getTitleVisibility()
           Return a String value ("true" or "false") that defines if the DataWidget's title bar is visible.
 Document getWidgetClass()
           Return the DataWidget class associated to the DataWidget instance.
 String getWidgetClassName()
           Return the name of the DataWidget class associated to the DataWidget instance.
 int getWidth()
           Return the DataWidget width
 void loadData()
           Retrieve Data according to a DataSource definition.
 Document loadTemplate( <String> template )
           Load the DataWidget template.
 void redraw()
           Clear the DataWidget and recall the renderer.
 void refreshData( callbackFunction )
           Retrieve Data according to a DataSource definition.
 void reload()
           Clear the DataWidget preferences and reload the DataWidget content (implies a reload of preferences).
 void savePreferences(<String> callback)
           Save preferences of the DataWidget.
 void setData( <Document> data )
           Set the Data to be displayed by the DataWidget.
 void setDataAsText( <String> dataAsText )
           Set the Data as Text to be displayed by the DataWidget.
 void setDataSourceName( <String> dataSourceName )
           Set the DataSource name.
 void setDataSourceParameter( <String> paramName, <String> paramValue )
           Set the value of one of the DataSource parameters used by the DataWidget when executing the DataSource.
 void setDataSourceParameters( <Document> parameters )
           Set the DataSource parameters used by the DataWidget when executing the DataSource.
 void setDataSourceRequest( <String> request )
           Set the DataSource Request.
 void setDirectory( <String> directory )
           Attach a directory to the DataWidget
 void setDirectoryComponent( <String> component )
           Attach a directory component (Flex or XForms) to the DataWidget
 void setName( <String> name )
           Set the DataWidget name.
 void setPreference(<String> name, <String> value)
           Set a DataWidget preference.
 void setTemplate( <String> template )
           Set the DataWidget template.
 void setTitle( <String> title )
           Set the DataWidget title.
 void setTitleVisibility( <String> titleVisibility )
           Define if the DataWidget title bar is visible.
 void setWidgetClassName( <String> widgetClassName )
           Set the DataWidget class name associated to the DataWidget instance.

Field Detail

data

Object data

dataAsText

Object dataAsText

dataSource

Object dataSource

dataSourceName

Object dataSourceName

dataSourceParameters

Object dataSourceParameters

directory

Object directory

name

Object name

parameters

Object parameters

preferences

Object preferences

template

Object template

title

Object title

titleVisibility

Object titleVisibility

type

Object type

widgetClass

Object widgetClass

Constructor Detail

DataWidget

DataWidget( <Document> dataWidgetDefinition )

Method Detail

addContent

void addContent( <String> fragment )

clearContent

void clearContent()

construct

void construct( <Document> dataWidgetDefinition )

executeDataSource

void executeDataSource()

getData

Document getData()

getDataAsText

String getDataAsText()

getDataSourceName

String getDataSourceName()

getDataSourceParameters

Document getDataSourceParameters()

getDirectory

String getDirectory()

getDirectoryComponent

String getDirectoryComponent()

getDirectoryComponentBinding

String getDirectoryComponentBinding()

getHeight

int getHeight()

getName

String getName()

getParameter

String getParameter(<String> paramName)

getParameters

Document getParameters()

getParametersAsText

String getParametersAsText()

getPreferences

Document getPreferences()

getPreferencesAsText

String getPreferencesAsText()

getRenderer

Document getRenderer()

getTemplate

Document getTemplate()

getTemplateName

String getTemplateName()

getTitle

String getTitle()

getTitleVisibility

String getTitleVisibility()

getWidgetClass

Document getWidgetClass()

getWidgetClassName

String getWidgetClassName()

getWidth

int getWidth()

loadData

void loadData()

loadTemplate

Document loadTemplate( <String> template )

redraw

void redraw()

refreshData

void refreshData( callbackFunction )

reload

void reload()

savePreferences

void savePreferences(<String> callback)

setData

void setData( <Document> data )

setDataAsText

void setDataAsText( <String> dataAsText )

setDataSourceName

void setDataSourceName( <String> dataSourceName )

setDataSourceParameter

void setDataSourceParameter( <String> paramName, <String> paramValue )

setDataSourceParameters

void setDataSourceParameters( <Document> parameters )

setDataSourceRequest

void setDataSourceRequest( <String> request )

setDirectory

void setDirectory( <String> directory )

setDirectoryComponent

void setDirectoryComponent( <String> component )

setName

void setName( <String> name )

setPreference

void setPreference(<String> name, <String> value)

setTemplate

void setTemplate( <String> template )

setTitle

void setTitle( <String> title )

setTitleVisibility

void setTitleVisibility( <String> titleVisibility )

setWidgetClassName

void setWidgetClassName( <String> widgetClassName )


Documentation generated by JSDoc on Wed Jun 18 09:59:49 2008