constructor __construct [line 55]
method AddItem [line 365]
integer AddItem(
mixed
$item, [mixed
$itemkey = null])
|
|
Adds an item to the list and returns the number of items on the list. Each item can have a key which will be used as the value when the form is posted to the server.
Tags:
Parameters:
method Clear [line 389]
Deletes all of the items from the list control by assigning an empty array to the items property
Tags:
method defaultBorderColor [line 464]
void defaultBorderColor(
)
|
|
method defaultBorderStyle [line 481]
void defaultBorderStyle(
)
|
|
method defaultBorderWidth [line 449]
void defaultBorderWidth(
)
|
|
method defaultChecked [line 612]
method defaultColumns [line 647]
method defaultHeader [line 533]
method defaultHeaderBackgroundColor [line 661]
void defaultHeaderBackgroundColor(
)
|
|
method defaultHeaderColor [line 675]
void defaultHeaderColor(
)
|
|
method defaultItems [line 558]
method defaultOnClick [line 503]
method defaultOnSubmit [line 515]
method defaultTabOrder [line 623]
method defaultTabStop [line 633]
method dumpContents [line 123]
method dumpFormItems [line 301]
Overrides
Component::dumpFormItems() (Dumps code just after the form tag, useful to dump hidden fields for state retrieving for non visible components)
method dumpJavascript [line 314]
method getChecked [line 601]
Array property which specifies which items are checked or not
Use this property to read which items have been checked by the user or to set the initial items that must be checked.
<?php
//This set, before the control is shown, the first and third items
//to checked state and the second item will be unchecked
function CheckListBox1BeforeShow($sender, $params)
{
$checked=array();
$checked[]=1;
$checked[]=0;
$checked[]=1;
$this->CheckListBox1->Checked=$checked;
}
?>
<?php
//Reading the checked property, you can know which items have been
//checked by the user
function Button2Click($sender, $params)
{
$checked=$this->CheckListBox1->Checked;
while(list
($key, $val)=
each($checked))
{
if ($val==1) echo "The item #$key is checked<br>";
}
}
?>
method getColumns [line 645]
Specifies the number of columns that the list box uses to display its items.
Set Columns to indicate the number of columns in a list box. This causes the list box to accommodate new items that do not fit in the specified number of columns by adding additional rows.
method getHeader [line 522]
Defines an array of items taht will be rendered as columns using
BackgroundHeaderColor and HeaderColor properties
method getHeaderBackgroundColor [line 659]
string getHeaderBackgroundColor(
)
|
|
Specifies the background color for a header item in the listbox.
Set HeaderBackgroundColor to indicate the color that appears as the background of header items. Header items are items in the list box for which the Header property is true. HeaderBackgroundColor can make a header item visually more distinct from the checkable items in the list box.
method getHeaderColor [line 673]
Specifies the font color for a header item in the list box.
Set HeaderColor to indicate the font color of header items. Header items are items in the list box for which the Header property is true. HeaderColor should be a color that provides contrast with the HeaderBackgroundColor property, which specifies the background color for header items.
method init [line 93]
method ItemAtPos [line 404]
string|null ItemAtPos(
string
$itemkey)
|
|
Return the item in the list box specified by $itemkey
Use ItemAtPos to get the value of an item specified by its key value. If not item is found, null is returned
Parameters:
method loaded [line 69]
method preinit [line 75]
method readBorderColor [line 462]
string readBorderColor(
)
|
|
Specifies Border color used to display a control.
Use this property to specify the color to be used when drawing the border of this control. You can use any color specifier, from RGB to a color name.
Tags:
method readBorderStyle [line 479]
Specifies Border Style used to display a control
Valid values for this property are:
bsSingle - The control will show a single border
bsNone - The control won't show a border
Tags:
method readBorderWidth [line 447]
integer readBorderWidth(
)
|
|
Specifies Border width used to display a control
Use this property to specify the width, in pixels, of the border to use when rendering this control on the browser.
The default value is 1.
Tags:
method readCount [line 433]
Returns the number of items in the list. This value is the count of the internal items array
Tags:
method readItems [line 552]
Contains the strings that appear in the list. This is an array in which each item has a key and a value ($key=>$value)
Tags:
method readOnClick [line 501]
Occurs when the user clicks the control.
Use the OnClick event handler to respond when the user clicks the control.
Usually OnClick occurs when the user presses and releases the left mouse button with the mouse pointer over the control. This event can also occur when:
The user selects an item in a grid, outline, list, or combo box by pressing an arrow key.
The user presses Spacebar while a button or check box has focus.
The user presses Enter when the active form has a default button (specified by the Default property).
The user presses Esc when the active form has a cancel button (specified by the Cancel property).
Tags:
method readOnSubmit [line 513]
Occurs when the control is submitted.
Use this event to react when the form is submitted and, therefore, this control is updated with the new values sent by the user.
method readTabOrder [line 621]
TabOrder indicates the order in which controls are accessed when using the Tab key.
The TabOrder value can be between 0 and 32767.
Tags:
method readTabStop [line 631]
Enables or disables the TabOrder property. The browser may still assign a TabOrder by itself internally. This cannot be controlled by HTML.
Tags:
method SelectAll [line 419]
Set the checked property for all items to true
Use this method to check all items in the listbox, so the checkbox attached shows a mark inside.
method setChecked [line 602]
method setColumns [line 646]
method setHeader [line 523]
method setHeaderBackgroundColor [line 660]
void setHeaderBackgroundColor(
$value)
|
|
Parameters:
method setHeaderColor [line 674]
void setHeaderColor(
$value)
|
|
Parameters:
method writeBorderColor [line 463]
void writeBorderColor(
$value)
|
|
Parameters:
method writeBorderStyle [line 480]
void writeBorderStyle(
$value)
|
|
Parameters:
method writeBorderWidth [line 448]
void writeBorderWidth(
$value)
|
|
Parameters:
method writeItems [line 553]
method writeOnClick [line 502]
void writeOnClick(
$value)
|
|
Parameters:
method writeOnSubmit [line 514]
void writeOnSubmit(
$value)
|
|
Parameters:
method writeTabOrder [line 622]
void writeTabOrder(
$value)
|
|
Parameters:
method writeTabStop [line 632]
void writeTabStop(
$value)
|
|
Parameters: