java.lang.Objecttelosys.objects.ListView
Class for list management
Constructor Summary | |
ListView()
|
Method Summary | |
boolean |
doAdd()
Adds an item in the list |
boolean |
doClear()
Clears the list |
boolean |
doDelete(java.lang.Number iRowIndexToDelete)
Deletes an item in the list |
boolean |
doInsert(java.lang.Number iNewRowIndex)
Inserts an item in the list |
boolean |
doSelect(java.lang.Number iNewRowIndex)
Selects an item in the list |
boolean |
doSort(string sField,
string sOrder)
Sorts the list |
object |
getActions()
Returns the actions object |
string |
getItemName()
Returns the selected item name |
string |
getListId()
Returns the list id |
string |
getListName()
Returns the list name |
function |
getResponseProcessor()
Returns the response processor (a function) |
object |
getSelectedRow()
Returns the selected row of the list |
string |
getSelectedRowColor()
Returns the color of the selected row |
number |
getSelectedRowIndex()
Returns the index of the selected row |
void |
highlightRow(object oTR)
Sets the color of the given row |
void |
setEventAddRow(object oFunction)
Sets the event when we add a row |
void |
setEventClearList(object oFunction)
Sets the event when we clear the list |
void |
setEventDeleteRow(object oFunction)
Sets the event when we delete a row |
void |
setEventInsertRow(object oFunction)
Sets the event when we insert a row |
void |
setEventSelectRow(object oFunction)
Sets the event when we select a row |
void |
setEventSortList(object oFunction)
Sets the event when we sort the list |
void |
setSelectedRowColor(string sColor)
Sets the color of the selected row |
void |
show()
Shows (alert) the description of the list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListView()
Method Detail |
public void setSelectedRowColor(string sColor)
sColor
- the new colorpublic void setEventSelectRow(object oFunction)
oFunction
- the function objectpublic void setEventInsertRow(object oFunction)
oFunction
- the function objectpublic void setEventAddRow(object oFunction)
oFunction
- the function objectpublic void setEventDeleteRow(object oFunction)
oFunction
- the function objectpublic void setEventClearList(object oFunction)
oFunction
- the function objectpublic void setEventSortList(object oFunction)
oFunction
- the function objectpublic string getListId()
public string getListName()
public string getItemName()
public object getActions()
public function getResponseProcessor()
public object getSelectedRow()
public number getSelectedRowIndex()
public string getSelectedRowColor()
public void show()
public void highlightRow(object oTR)
oTR
- the row object (public boolean doSelect(java.lang.Number iNewRowIndex)
iNewRowIndex
- the index of the new selected row
public boolean doInsert(java.lang.Number iNewRowIndex)
iNewRowIndex
- the index of the new row
public boolean doAdd()
public boolean doDelete(java.lang.Number iRowIndexToDelete)
iRowIndexToDelete
- the index of the row to delete
public boolean doClear()
public boolean doSort(string sField, string sOrder)
sField
- the fieldsOrder
- the order to sort