Main Page | Packages | Class Tree | Index | Help

xp.data

class ObjectDataSource

Object
  |
  +--xp.system.DispatcherObject
        |
        +--xp.data.ItemDataSource
              |
              +--xp.data.DataSource
                    |
                    +--xp.data.ListDataSource
                          |
                          +--xp.data.ObjectDataSource


class ObjectDataSource
extends ListDataSource

A DataSource that wraps a class object.

It will instantiate the class object and optionally pass parameters to the constructor.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Fields inherited from class xp.data.ListDataSource

canSort, classInfo, selectFirstOnLoad

Fields inherited from class xp.data.DataSource

autoCommit, autoEdit, autoInsert, calcFields, classInfo, deltaPacket, itemClassName, logChanges, newDataItem, nodeName, usesManualCommit

Fields inherited from class xp.data.ItemDataSource

classInfo, dataSourceBinding, id, name, readOnly

Fields inherited from class xp.system.DispatcherObject

parent

Property Summary

public
className: String (read, write)
The classname of the object to be instantiated

public
parameters: String (read, write)
csv string of parameters that will be passed to the objects constructor

Properties inherited from class xp.data.ListDataSource

data, inline, items, length, list, lookupField, position, selectedIndex

Properties inherited from class xp.data.DataSource

currentItem, isEditing, isInserting, isValid, schema

Properties inherited from class xp.data.ItemDataSource

currentItem, data, isEmpty, length

Constructor

public
ObjectDataSource ( className: String, parameters: String)
Creates a new ObjectDataSource instance

Method Summary

public
refresh ( ): Void
Refresh the data by instantiating a new object

Methods inherited from class xp.data.ListDataSource

addDataRelation, addItem, addItemAt, addItemsAt, editField, first, getClass, getFieldValue, getItemAt, getIterator, getKeyValue, isEmpty, isFirst, isLast, last, locateById, lookup, moveBy, next, prior, removeAll, removeItem, removeItemAt, removeItemsAt, replaceItem, replaceItemAt, setFieldValue, setFilter, setKeyConstraint, sortItems, sortItemsOn

Methods inherited from class xp.data.DataSource

applyChanges, applyUpdates, cancelChanges, checkSchema, commitChanges, createItem, deleteItem, editItem, getClass, insertItem, rollbackChanges, toString, validate

Methods inherited from class xp.data.ItemDataSource

addBinding, getBinding, getClass, refresh, updateViews

Methods inherited from class xp.system.DispatcherObject

addEventListener, removeEventListener, routeEvent



Property Documentation

className

public className: String (read, write)
The classname of the object to be instantiated

parameters

public parameters: String (read, write)
csv string of parameters that will be passed to the objects constructor


Constructor Documentation

ObjectDataSource

public function ObjectDataSource(className: String,
 parameters: String)
Creates a new ObjectDataSource instance

Parameters:
className
The class of object
parameters
Parameters passed to the objects constructor

Method Documentation

refresh

public function refresh(): Void
Refresh the data by instantiating a new object

Not implemented in the base class, we dont know how to refresh ourselves.

Overrides:


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc