XULTreeViewRecord.setColumnPropertyName Member

associates a property name on this record, with a column in the tree. This method will set up a get/set pair for the property name you specify which will take care of updating the tree when the value changes. DO NOT try to change your mind later. Do not attach a different name to the same colID, and do not rename the colID. You have been warned.

Syntax

object.setColumnPropertyName(colID, propertyName);

Arguments

ArgumentSummary
colID
propertyName

Returns

Remarks

See Also

Source Code

function xtvr_setcol (colID, propertyName)
{
function xtvr_getValueShim ()
{
return this._colValues[colID];
}
function xtvr_setValueShim (newValue)
{
this._colValues[colID] = newValue;
return newValue;
}
if (!("_colValues" in this))
this._colValues = new Object();
if (typeof propertyName == "function")
{
this._colValues.__defineGetter__(colID, propertyName);
}
else
{
this.__defineGetter__(propertyName, xtvr_getValueShim);
this.__defineSetter__(propertyName, xtvr_setValueShim);
}
}