telosys.functions
Interface ListView


public interface ListView


Method Summary
 void fwkAddRow(string sId)
          Adds a row in the list
 void fwkBindListView(object oListView)
           
 void fwkCancelEvent(object oEvent)
          Cancels the event
 void fwkCheckListView(object oListView)
          Checks the list view
 void fwkClearList(string sId)
          Clears the list
 void fwkDeleteRow(object oObject)
          Deletes a row in the list
 object fwkGetParent(object oObject, string sNodeName)
          Returns the parent node of the given object with the given node name or null if the node doesn't exist
 number fwkGetRowCount(string sId)
          Returns the number of rows in the list
 object fwkGetTBody(string sId, boolean bAlert)
          Returns the TBODY element
 void fwkInitNewRow(object oNewTR, object oTBody)
           
 void fwkInsertRow(object oObject, object evt)
          Inserts a row in the list
 void fwkPrivateSelectRow(object oTR, boolean bSimpleSelect)
          Selects a row in the list
 void fwkSelectFirstRow(string sId)
          Selects the first row of the list
 void fwkSelectRow(object oTR)
          Selects a row associated with the given "TR" reference
 void fwkSetColValue(string sId, number iColIndex, string sValue)
          Sets a column value of the list
 void fwkSortList(string sId, string sField, string sOrder)
          Sorts the list
 

Method Detail

fwkBindListView

public void fwkBindListView(object oListView)
Parameters:
oListView -

fwkCheckListView

public void fwkCheckListView(object oListView)
Checks the list view

Parameters:
oListView - the list view object

fwkPrivateSelectRow

public void fwkPrivateSelectRow(object oTR,
                                boolean bSimpleSelect)
Selects a row in the list

Parameters:
oTR - the "TR" object
bSimpleSelect - true(a simple select) | false(no select)

fwkCancelEvent

public void fwkCancelEvent(object oEvent)
Cancels the event

Parameters:
oEvent - the event object

fwkGetParent

public object fwkGetParent(object oObject,
                           string sNodeName)
Returns the parent node of the given object with the given node name or null if the node doesn't exist

Parameters:
oObject - the object
sNodeName - the node name to find
Returns:
the parent node (null if doesn't exist)

fwkInitNewRow

public void fwkInitNewRow(object oNewTR,
                          object oTBody)
Parameters:
oNewTR -
oTBody -

fwkGetTBody

public object fwkGetTBody(string sId,
                          boolean bAlert)
Returns the TBODY element

Parameters:
sId - the rows container id
bAlert - true(alert if error) | false(no alert)
Returns:
the TBody object

fwkSelectRow

public void fwkSelectRow(object oTR)
Selects a row associated with the given "TR" reference

Parameters:
oTR - the "TR" reference

fwkSelectFirstRow

public void fwkSelectFirstRow(string sId)
Selects the first row of the list

Parameters:
sId - the list id

fwkInsertRow

public void fwkInsertRow(object oObject,
                         object evt)
Inserts a row in the list

Parameters:
oObject - the list reference
evt - the event object

fwkAddRow

public void fwkAddRow(string sId)
Adds a row in the list

Parameters:
sId - the list id

fwkDeleteRow

public void fwkDeleteRow(object oObject)
Deletes a row in the list

Parameters:
oObject - the list reference

fwkClearList

public void fwkClearList(string sId)
Clears the list

Parameters:
sId - the list id

fwkSortList

public void fwkSortList(string sId,
                        string sField,
                        string sOrder)
Sorts the list

Parameters:
sId - the list id
sField - the field name
sOrder - the order to sort

fwkGetRowCount

public number fwkGetRowCount(string sId)
Returns the number of rows in the list

Parameters:
sId - the list id
Returns:
the number of rows

fwkSetColValue

public void fwkSetColValue(string sId,
                           number iColIndex,
                           string sValue)
Sets a column value of the list

Parameters:
sId - the list id
iColIndex - the column index
sValue - the new value to set