summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php
blob: d2991653cbe0fe97563b391eabe9f7bc4fc96098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php

class ActiveListBoxMasterTest extends TPage
{
	function list1_callback($sender, $param)
	{
		$values = $sender->getSelectedValues();
		$this->label1->setText("Selection: ".implode(', ', $values));
	}

	function select_index_123()
	{
		$this->list1->setSelectedIndices(array(1,2,3));
	}

	function select_index_4()
	{
		$this->list1->setSelectedIndex(4);
	}

	function clear_selections()
	{
		$this->list1->clearSelection();
	}

	function select_value_1()
	{
		$this->list1->setSelectedValue("value 1");
	}

	function select_values_25()
	{
		$this->list1->setSelectedValues(array('value 2', 'value 5'));
	}

	function change_to_multiple()
	{
		$this->list1->SelectionMode="Multiple";
	}

	function change_to_single()
	{
		$this->list1->SelectionMode="Single";
	}
}

?>