diff options
author | xue <> | 2006-06-26 02:52:44 +0000 |
---|---|---|
committer | xue <> | 2006-06-26 02:52:44 +0000 |
commit | aac749d4fbfdf3508d97f7dfe4d7c2c03597edbb (patch) | |
tree | 54895dbe8d89f9572108f0bc5bdf07160c166e0f /framework/Web/UI/WebControls/TListControl.php | |
parent | 7e5dd26cd604318cf4b6d624e8080c801bfb38d0 (diff) |
Merge from 3.0 branch till 1202.
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r-- | framework/Web/UI/WebControls/TListControl.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index 3ad46db8..b070f26b 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -471,7 +471,7 @@ abstract class TListControl extends TDataBoundControl $this->_items->itemAt($index)->setSelected(true);
}
}
-
+
if($this->getAdapter() instanceof IListControlAdaptee)
$this->getAdapter()->setSelectedIndices($indices);
}
@@ -558,9 +558,9 @@ abstract class TListControl extends TDataBoundControl throw new TInvalidDataValueException('listcontrol_selectedvalue_invalid',get_class($this),$value);
}
}
-
+
if($this->getAdapter() instanceof IListControlAdaptee)
- $this->getAdapter()->setSelectedValues($values);
+ $this->getAdapter()->setSelectedValues($values);
}
/**
@@ -589,9 +589,9 @@ abstract class TListControl extends TDataBoundControl foreach($this->_items as $item)
$item->setSelected(false);
}
-
+
if($this->getAdapter() instanceof IListControlAdaptee)
- $this->getAdapter()->clearSelection();
+ $this->getAdapter()->clearSelection();
}
/**
@@ -727,7 +727,7 @@ class TListItemCollection extends TList $this->insertAt($index,$item);
return $item;
}
-
+
/**
* @return TListItem new item.
*/
@@ -852,15 +852,15 @@ class TListItemCollection extends TList * @package System.Web.UI.ActiveControls
* @since 3.0
*/
-interface IListControlAdaptee
+interface IListControlAdapter
{
- /**
- * Selects an item based on zero-base index on the client side.
+ /**
+ * Selects an item based on zero-base index on the client side.
* @param integer the index (zero-based) of the item to be selected
*/
public function setSelectedIndex($index);
- /**
- * Selects a list of item based on zero-base indices on the client side.
+ /**
+ * Selects a list of item based on zero-base indices on the client side.
* @param array list of index of items to be selected
*/
public function setSelectedIndices($indices);
@@ -870,13 +870,13 @@ interface IListControlAdaptee * @param string the value of the item to be selected.
*/
public function setSelectedValue($value);
-
- /**
+
+ /**
* Sets selection by a list of item values on the client side.
* @param array list of the selected item values
*/
public function setSelectedValues($values);
-
+
/**
* Clears all existing selections on the client side.
*/
|