Subscribe in a reader

class ListWindow

extends Window
since 1.0.52

Description

This class provides a window which contains a list. To create an object of this class call:
    listWnd=frx.view:createListWindow()  

Functions

void add ( string x )
void remove ( string x )
string getSelection ( )
int getNumElements ( )
string getElementAt ( int i )
void addButton ( string text , string luaExpr )
void addSelectionListener ( string expr )
void removeElementAt ( int i )

Fields

no fields

Detailed Description

Functions

void add ( string x )
since 1.0.52
Description
Adds a string to the list.
Parameters
x - the string
void remove ( string x )
since 1.0.52
Description
Removes a string from the list.
Parameters
x - the string
string getSelection ( )
since 1.0.52
Description
Return
the selected string
int getNumElements ( )
since 1.0.52
Description
Return
the number of elements in the list
string getElementAt ( int i )
since 1.0.52
Description
according to lua the first entry is at index 1
Parameters
i - the index
Return
the element at i
void addButton ( string text , string luaExpr )
since 1.0.52
Description
adds a button to window
Parameters
text - the button text
luaExpr - the lua expression which will be executed when button was pressed
void addSelectionListener ( string expr )
since 1.0.52
Description
Adds a listener which is called when selection was changed
Parameters
expr - a valid lua expression
int getSelectedIndex ( )
since 1.0.52
Description
Return
the selected index starting with 1. Returns 0 when nothing selected.
void removeElementAt ( int i )
since 1.0.52
Description
Removes the element at index i.
Parameters
i - the index

Fields

no fields