Child classes:
|
Inherited Variables
|
Inherited Methods
|
constructor __construct [line 281]
method addColumn [line 1006]
ListColumn addColumn(
string
$caption, [mixed
$width = -1], [enum(creEdit,
$cellRenderType = creEdit], [bool
$editable = true])
|
|
Adds a new column to the ListView.
Use this method to add columns to the listview. After that, you can use addItem to add new items, where the caption for that item will be shown on the first column, subitems will be shown on the rest.
<?php
function ListView1BeforeShow($sender, $params)
{
$this->ListView1->addItem("Item1",array('test'));
$this->ListView1->addItem("Item2",array('subitem'));
}
?>
Tags:
Parameters:
method addItem [line 1046]
ListItem addItem(
string
$caption, [array
$subitems = array()], [bool
$selected = false])
|
|
Adds a new item/row to the ListView.
The ListItem was modeled after VCL for Windows, meaning that there is a caption and subitems. The caption is used for the first column where the subitems are used for any further column.
<?php
function ListView1BeforeShow($sender, $params)
{
$this->ListView1->addItem("Item1",array('test'));
$this->ListView1->addItem("Item2",array('subitem'));
}
?>
Tags:
Parameters:
method clearSelected [line 1107]
Removes the selection, leaving all items unselected.
Tags:
method convertPureArrayToColumns [line 306]
array convertPureArrayToColumns(
array
$columnsarray)
|
|
Converts an array that contains strings into an array with ListColumn objects. convertPureArrayToColumns() is used after unserializing the values set by the object inspector.
Tags:
Parameters:
method convertPureArrayToItems [line 348]
array convertPureArrayToItems(
array
$itemsarray)
|
|
Converts a two-dimesional array into an array of ListItem objects.
Tags:
Parameters:
method defaultColumns [line 1166]
method defaultItems [line 1183]
method defaultjsOnSelectionChanged [line 1151]
void defaultjsOnSelectionChanged(
)
|
|
method defaultOnSubmit [line 1139]
method defaultSelectionType [line 1203]
void defaultSelectionType(
)
|
|
method defaultSortAscending [line 1217]
void defaultSortAscending(
)
|
|
method defaultSortColumnIndex [line 1231]
void defaultSortColumnIndex(
)
|
|
method deleteItem [line 1066]
void deleteItem(
integer
$index)
|
|
Delete an item by it's index.
Tags:
Parameters:
method deleteSelected [line 1086]
Deletes all the selected items.
Tags:
method dumpContents [line 842]
method dumpForAjax [line 837]
This is an internal method you don't need to call directly
This method is called by the Ajax engine to get the code to update the component after an ajax call
Tags:
Overridden in child classes as:
- DBGrid::dumpForAjax()
- This is an internal method you don't need to call directly
method dumpHeaderCode [line 943]
method dumpJavascript [line 921]
method dumpJsEvents [line 290]
method init [line 445]
method loaded [line 405]
method readColumns [line 1164]
Describes the list of ListColumn objects used for the settings of the columns.
Use this property to specify an array in which each item represents a column.
Tags:
method readItems [line 1181]
Contains the list of items displayed by the list view.
This property is an array that contain the items shown by the list view, you can use it as any other array, but you will get better results using the methods provided to manage it.
Use addItem(), deleteItem() to modify the array.
Tags:
method readjsOnSelectionChanged [line 1149]
mixed readjsOnSelectionChanged(
)
|
|
JS event occurs when the selection of the list view was changed.
Use this event to react to changes on the listview selection because it's fired when the items selected on the listview are changed.
method readOnSubmit [line 1137]
Occurs when the form containing the control was submitted.
Use this event to write code that will get executed when the form is submitted and the control is about to update itself with the modifications the user has made on it.
method readSelectionType [line 1201]
enum readSelectionType(
)
|
|
SelectionType defines how the user can select the items in the ListView.
Possible values are:
selNone - No items can be selected.
selSingle - Only a single item in th elist can be selected.
selOneInterval - One interval can be selected.
selMultiInterval - Multiple intervals can be selected.
Tags:
method readSortAscending [line 1215]
bool readSortAscending(
)
|
|
Indicates if the sorted column is in ascending order.
If false, the items of the sorted column are in descending order. If no sorted column is set this property has no affect.
Tags:
method readSortColumnIndex [line 1229]
integer readSortColumnIndex(
)
|
|
Indicates the index of the column of the ListView that is sorted.
The index starts at 0 for the first column. If SortColumnIndex is set to -1 no column is sorted.
Tags:
method selectAll [line 1120]
method unserialize [line 390]
method updateControl [line 629]
void updateControl(
[
$create = true])
|
|
Dumps required code to show information, and columns on the listview
This is an internal method used by the component to generate all columns and rows required to build up the control.
You don't need to call this method directly.
Tags:
Overridden in child classes as:
- DBGrid::updateControl()
- Dumps required code to show information, and columns on the grid
Parameters:
method writeColumns [line 1165]
void writeColumns(
$value)
|
|
Parameters:
method writeItems [line 1182]
method writejsOnSelectionChanged [line 1150]
void writejsOnSelectionChanged(
$value)
|
|
Parameters:
method writeOnSubmit [line 1138]
void writeOnSubmit(
$value)
|
|
Parameters:
method writeSelectionType [line 1202]
void writeSelectionType(
$value)
|
|
Parameters:
method writeSortAscending [line 1216]
void writeSortAscending(
$value)
|
|
Parameters:
method writeSortColumnIndex [line 1230]
void writeSortColumnIndex(
$value)
|
|
Parameters: