VCL
[ class tree: VCL ] [ index: VCL ] [ all elements ]

Class: CustomListBox

Source Location: /stdctrls.inc.php

Class Overview

Object
   |
   --Persistent
      |
      --Component
         |
         --Control
            |
            --FocusControl
               |
               --CustomListControl
                  |
                  --CustomMultiSelectListControl
                     |
                     --CustomListBox

Base class for Listbox controls, such as ListBox and ComboBox.


Variables

Methods


Child classes:

ListBox
ListBox displays a collection of items in a scrollable list.
ComboBox
A class to encapsulate a combobox control.

Inherited Variables

Class: Control

Control::$_adjusttolayout
Control::$_align
Control::$_alignment
Control::$_attributes
Control::$_autosize
Control::$_cached
Control::$_caption
Control::$_color
Control::$_controlstyle
Control::$_cursor
Control::$_designcolor
Control::$_divwrap
Control::$_enabled
Control::$_font
Control::$_height
Control::$_hidden
Control::$_hint
Control::$_islayer
Control::$_jsonactivate
Control::$_jsonbeforecopy
Control::$_jsonbeforecut
Control::$_jsonbeforedeactivate
Control::$_jsonbeforeeditfocus
Control::$_jsonbeforepaste
Control::$_jsonblur
Control::$_jsonchange
Control::$_jsonclick
Control::$_jsoncontextmenu
Control::$_jsoncontrolselect
Control::$_jsoncopy
Control::$_jsoncut
Control::$_jsondblclick
Control::$_jsondeactivate
Control::$_jsondrag
Control::$_jsondragenter
Control::$_jsondragleave
Control::$_jsondragover
Control::$_jsondragstart
Control::$_jsondrop
Control::$_jsonfilterchange
Control::$_jsonfocus
Control::$_jsonhelp
Control::$_jsonkeydown
Control::$_jsonkeypress
Control::$_jsonkeyup
Control::$_jsonlosecapture
Control::$_jsonmousedown
Control::$_jsonmouseenter
Control::$_jsonmouseleave
Control::$_jsonmousemove
Control::$_jsonmouseout
Control::$_jsonmouseover
Control::$_jsonmouseup
Control::$_jsonpaste
Control::$_jsonpropertychange
Control::$_jsonreadystatechange
Control::$_jsonresize
Control::$_jsonresizeend
Control::$_jsonresizestart
Control::$_jsonselectstart
Control::$_layer
Control::$_left
Control::$_onaftershow
Control::$_onbeforeshow
Control::$_onshow
Control::$_parent
Control::$_parentcolor
Control::$_parentfont
Control::$_parentshowhint
Control::$_popupmenu
Control::$_showhint
Control::$_style
Control::$_top
Control::$_visible
Control::$_width

Inherited Methods

Class: CustomMultiSelectListControl

CustomMultiSelectListControl::defaultMultiSelect()
Returns the default MultiSelect value.
CustomMultiSelectListControl::readMultiSelect()
Reads the value of the MultiSelect property.
CustomMultiSelectListControl::readSelCount()
Returns the number of selected Items in the list.
CustomMultiSelectListControl::writeMultiSelect()
Sets the value of the MultiSelect property.

Class: CustomListControl

CustomListControl::AddItem()
Adds an item to the list control.
CustomListControl::Clear()
Deletes all of the items from the list control.
CustomListControl::ClearSelection()
Removes the selection, leaving all items unselected.
CustomListControl::defaultItemIndex()
Returns default ItemIndex.
CustomListControl::readCount()
Returns the number of items in the list.
CustomListControl::readItemIndex()
Returns the value of the ItemIndex property.
CustomListControl::SelectAll()
Selects all items or all text in the selected item.
CustomListControl::writeItemIndex()
Sets new ItemIndex value.

Class: FocusControl

FocusControl::__construct()
FocusControl::dumpChildren()
Dumps all children iterating through the Controls property and calls the show method of each one.
FocusControl::readControlCount()
Returns the number of controls for which this control is the Parent.
FocusControl::readLayout()
Specifies the Layout this control uses to render its controls to the browser.
FocusControl::updateChildrenColors()
Updates the colors for all the children if parentcolor is set.
FocusControl::updateChildrenFonts()
If this control has any children that have ParentFont==true, then this function will assign the same Font property to all children Font properties.
FocusControl::updateChildrenParentProperties()
Updates all necessary properties for any children that use property values from their parent.
FocusControl::updateChildrenShowHints()
Updates the ShowHints properties for all children controls.
FocusControl::writeLayout()

Class: Control

Control::__construct()
Constructor for the class
Control::addJSWrapperToEvents()
Adds or replaces the JS event attribute with the wrapper.
Control::beginCache()
Control::canShow()
Determines whether a control can be shown or not.
Control::defaultAdjustToLayout()
Control::defaultAlign()
Control::defaultAlignment()
Control::defaultAttributes()
Control::defaultAutosize()
Control::defaultCached()
Control::defaultCaption()
Control::defaultColor()
Control::defaultCursor()
Control::defaultDesignColor()
Control::defaultDivWrap()
Control::defaultEnabled()
Control::defaultHeight()
Control::defaultHidden()
Control::defaultHint()
Control::defaultIsLayer()
Control::defaultjsOnActivate()
Control::defaultjsOnBeforeCopy()
Control::defaultjsOnBeforeCut()
Control::defaultjsOnBeforeDeactivate()
Control::defaultjsOnBeforeEditfocus()
Control::defaultjsOnBeforePaste()
Control::defaultjsOnBlur()
Control::defaultjsOnChange()
Control::defaultjsOnClick()
Control::defaultjsOnContextMenu()
Control::defaultjsOnControlSelect()
Control::defaultjsOnCopy()
Control::defaultjsOnCut()
Control::defaultjsOnDblClick()
Control::defaultjsOnDeActivate()
Control::defaultjsOnDrag()
Control::defaultjsOnDragEnter()
Control::defaultjsOnDragLeave()
Control::defaultjsOnDragOver()
Control::defaultjsOnDragStart()
Control::defaultjsOnDrop()
Control::defaultjsOnFilterChange()
Control::defaultjsOnFocus()
Control::defaultjsOnHelp()
Control::defaultjsOnKeyDown()
Control::defaultjsOnKeyPress()
Control::defaultjsOnKeyUp()
Control::defaultjsOnLoseCapture()
Control::defaultjsOnMouseDown()
Control::defaultjsOnMouseEnter()
Control::defaultjsOnMouseLeave()
Control::defaultjsOnMouseMove()
Control::defaultjsOnMouseOut()
Control::defaultjsOnMouseOver()
Control::defaultjsOnMouseUp()
Control::defaultjsOnPaste()
Control::defaultjsOnPropertyChange()
Control::defaultjsOnReadyStateChange()
Control::defaultjsOnResize()
Control::defaultjsOnResizeEnd()
Control::defaultjsOnResizeStart()
Control::defaultjsOnSelectStart()
Control::defaultLayer()
Control::defaultLeft()
Control::defaultOnAfterShow()
Control::defaultOnBeforeShow()
Control::defaultOnShow()
Control::defaultParentColor()
Control::defaultParentFont()
Control::defaultParentShowHint()
Control::defaultPopupmenu()
Control::defaultShowHint()
Control::defaultStyle()
Control::defaultTop()
Control::defaultVisible()
Control::defaultWidth()
Control::dumpChildren()
Dumps all children components.
Control::dumpContents()
Dumps the control contents.
Control::dumpHeaderCode()
Dumps the component header code.
Control::dumpJavascript()
Dumps all required javascript code for the component.
Control::dumpJsEvents()
Dumps all assigned javascript events code.
Control::endCache()
Control::getCached()
Control::getCursor()
Change the value of Cursor to provide feedback to the user when the mouse pointer enters the control.
Control::getHeight()
Specifies the vertical size of the control or form in pixels.
Control::getHint()
Specifies the text to show in a tooltip when the mouse is over the control for some time.
Control::getHintAttribute()
If control has any Hint, then returns the hint in attribute format for the tag.
Control::getJSWrapperFunction()
JS wrapper function that forwards a JS event to the PHP script by submitting the HTML form.
Control::getJSWrapperFunctionName()
Gets the function name of a JS event wrapper.
Control::getLayer()
Determines the layer in which this control is going to be rendered.
Control::getLeft()
Uses the Left property to determine where the left side of the control begins, or to reposition the left side of the control.
Control::getOnAfterShow()
Fires the Event after showing the control.
Control::getOnBeforeShow()
Fires the Event before showing the control.
Control::getOnShow()
Fires the Event at the same moment the control is shown. Some controls can prevent the control from being shown when this event is attached.
Control::getTop()
Uses Top to locate the top of the control, or reposition the control to a different Y coordinate.
Control::getWidth()
Specifies the horizontal size of the control or form in pixels.
Control::init()
Control::loaded()
Control::readAdjustToLayout()
A helper property for Layouts to know if the component should adjust to the layout or not
Control::readAlign()
Determines how the control aligns within its container (parent control).
Control::readAlignment()
Specifies the alignment to be used by the control, it depends on the control on how to use this property to show information.
Control::readAttributes()
A property for tag based controls to allow component user to add attributes to the tag
Control::readAutosize()
Determines if the control is going to adjust itself to the parent size
Control::readCaption()
Specifies a text string that identifies the control to the user.
Control::readColor()
Specifies the main color of the control.
Control::readControlStyle()
An array which holds the control style, with settings for the IDE.
Control::readDesignColor()
Specifies a color to use by the control at design time.
Control::readDivWrap()
Specifies if the control must be wrapped by a div or not
Control::readDoParentReset()
Performs a parent reset if true.
Control::readEnabled()
Controls whether the control responds to mouse, keyboard, and timer events.
Control::readFont()
Determines the Font to be used when generating this control.
Control::readHidden()
This property, when true, allows controls to generate all code, but don't show the control on the browser.
Control::readIsLayer()
Specifies if this control is a Layer instead of being integrated into the document.
Control::readJsEvents()
Returns a string with all assigned javascript events, ready to be added to a control tag.
Control::readjsOnActivate()
Fires when the object is set as the active element.
Control::readjsOnBeforeCopy()
Fires on the source object before the selection is copied to the system clipboard.
Control::readjsOnBeforeCut()
Fires on the source object before the selection is deleted from the document.
Control::readjsOnBeforeDeactivate()
Fires immediately before the activeElement is changed from the current object to another object in the parent document.
Control::readjsOnBeforeEditfocus()
Fires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.
Control::readjsOnBeforePaste()
Fires on the target object before the selection is pasted from the system clipboard to the document.
Control::readjsOnBlur()
Fires when the object loses the input focus.
Control::readjsOnChange()
Fires when the contents of the object or selection have changed.
Control::readjsOnClick()
Fires when the user clicks the left mouse button on the object.
Control::readjsOnContextMenu()
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Control::readjsOnControlSelect()
Fires when the user is about to make a control selection of the object.
Control::readjsOnCopy()
Fires on the source element when the user copies the object or selection, adding it to the system clipboard.
Control::readjsOnCut()
Fires on the source element when the object or selection is removed from the document and added to the system clipboard.
Control::readjsOnDblClick()
Fires when the user double-clicks the object.
Control::readjsOnDeActivate()
Fires when the activeElement is changed from the current object to another object in the parent document.
Control::readjsOnDrag()
Fires on the source object continuously during a drag operation.
Control::readjsOnDragEnter()
Fires on the target element when the user drags the object to a valid drop target.
Control::readjsOnDragLeave()
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Control::readjsOnDragOver()
Fires on the target element continuously while the user drags the object over a valid drop target.
Control::readjsOnDragStart()
Fires on the source object when the user starts to drag a text selection or selected object.
Control::readjsOnDrop()
Fires on the target object when the mouse button is released during a drag-and-drop operation.
Control::readjsOnFilterChange()
Fires when a visual filter changes state or completes a transition.
Control::readjsOnFocus()
Fires when the object receives focus.
Control::readjsOnHelp()
Fires when the user presses the F1 key while the browser is the active window.
Control::readjsOnKeyDown()
Fires when the user presses a key.
Control::readjsOnKeyPress()
Fires when the user presses an alphanumeric key.
Control::readjsOnKeyUp()
Fires when the user releases a key.
Control::readjsOnLoseCapture()
Fires when the object loses the mouse capture.
Control::readjsOnMouseDown()
Fires when the user clicks the object with either mouse button.
Control::readjsOnMouseEnter()
Fires when the user moves the mouse pointer into the object.
Control::readjsOnMouseLeave()
Fires when the user moves the mouse pointer outside the boundaries of the object.
Control::readjsOnMouseMove()
Fires when the user moves the mouse over the object.
Control::readjsOnMouseOut()
Fires when the user moves the mouse pointer outside the boundaries of the object.
Control::readjsOnMouseOver()
Fires when the user moves the mouse pointer into the object.
Control::readjsOnMouseUp()
Fires when the user releases a mouse button while the mouse is over the object.
Control::readjsOnPaste()
Fires on the target object when the user pastes data, transferring the data from the system clipboard to the document.
Control::readjsOnPropertyChange()
Fires when a property changes on the object.
Control::readjsOnReadyStateChange()
Fires when the state of the object has changed.
Control::readjsOnResize()
Fires when the size of the object is about to change.
Control::readjsOnResizeEnd()
Fires when the user finishes changing the dimensions of the object in a control selection.
Control::readjsOnResizeStart()
Fires when the user begins to change the dimensions of the object in a control selection
Control::readjsOnSelectStart()
Fires when the object is being selected
Control::readJSWrapperHiddenFieldName()
Gets the name of the hidden field used to submit the value for the event that was fired.
Control::readJSWrapperSubmitEventValue()
Sets the value to the hidden field when the specific JS event was fired and the wrapper function was called.
Control::readParent()
Indicates the parent of the control.
Control::readParentColor()
Determines where a control looks for its color information.
Control::readParentFont()
Determines where a control looks for its font information.
Control::readParentShowHint()
Determines where a control looks to find out if its Help Hint should be shown.
Control::readPopupMenu()
Identifies the pop-up menu associated with the control.
Control::readShowHint()
Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the control.
Control::readStyle()
Use this property to attach a css style to the control.
Control::readStyleClass()
Normalizes the css style class name
Control::readVisible()
Determines whether the component appears on the browser.
Control::setCached()
Control::setCursor()
Control::setHeight()
Control::setHint()
Control::setLayer()
Control::setLeft()
Control::setOnAfterShow()
Control::setOnBeforeShow()
Control::setOnShow()
Control::setTop()
Control::setWidth()
Control::show()
Dumps the code for the control to the output.
Control::updateParentColor()
If ParentColor == true the parent's color is assigned to this control.
Control::updateParentFont()
If ParentFont == true the parent's font is assigned to this control.
Control::updateParentProperties()
Updates all properties that use the parent property as source.
Control::updateParentShowHint()
If ParentShowHint == true the parent's showhint is assigned to this control.
Control::writeAdjustToLayout()
Control::writeAlign()
Control::writeAlignment()
Control::writeAttributes()
Control::writeAutosize()
Control::writeCaption()
Control::writeColor()
Control::writeControlStyle()
Control::writeDesignColor()
Control::writeDivWrap()
Control::writeEnabled()
Control::writeFont()
Control::writeHidden()
Control::writeIsLayer()
Control::writejsOnActivate()
Control::writejsOnBeforeCopy()
Control::writejsOnBeforeCut()
Control::writejsOnBeforeDeactivate()
Control::writejsOnBeforeEditfocus()
Control::writejsOnBeforePaste()
Control::writejsOnBlur()
Control::writejsOnChange()
Control::writejsOnClick()
Control::writejsOnContextMenu()
Control::writejsOnControlSelect()
Control::writejsOnCopy()
Control::writejsOnCut()
Control::writejsOnDblClick()
Control::writejsOnDeActivate()
Control::writejsOnDrag()
Control::writejsOnDragEnter()
Control::writejsOnDragLeave()
Control::writejsOnDragOver()
Control::writejsOnDragStart()
Control::writejsOnDrop()
Control::writejsOnFilterChange()
Control::writejsOnFocus()
Control::writejsOnHelp()
Control::writejsOnKeyDown()
Control::writejsOnKeyPress()
Control::writejsOnKeyUp()
Control::writejsOnLoseCapture()
Control::writejsOnMouseDown()
Control::writejsOnMouseEnter()
Control::writejsOnMouseLeave()
Control::writejsOnMouseMove()
Control::writejsOnMouseOut()
Control::writejsOnMouseOver()
Control::writejsOnMouseUp()
Control::writejsOnPaste()
Control::writejsOnPropertyChange()
Control::writejsOnReadyStateChange()
Control::writejsOnResize()
Control::writejsOnResizeEnd()
Control::writejsOnResizeStart()
Control::writejsOnSelectStart()
Control::writeParent()
Control::writeParentColor()
Control::writeParentFont()
Control::writeParentShowHint()
Control::writePopupMenu()
Control::writeShowHint()
Control::writeStyle()
Control::writeVisible()

Class: Component

Component::__construct()
Component constructor
Component::ajaxCall()
Dumps the javascript code to make an ajax call to the server.
Component::callEvent()
Calls a server event.
Component::defaultName()
Component::defaultTag()
Component::dumpChildrenFormItems()
This method is called by the page just after dumping the starting form tag.
Component::dumpChildrenHeaderCode()
Dumps the header code for all the children
Component::dumpChildrenJavascript()
Dumps the javascript code for all the children
Component::dumpFormItems()
Dumps code just after the form tag, useful to dump hidden fields for state retrieving for non visible components
Component::dumpHeaderCode()
Dumps header code required
Component::dumpHiddenKeyFields()
Dumps hidden field values for the key record
Component::dumpJavascript()
Dumps the javascript code needed by this component
Component::dumpJSEvent()
Dumps javascript code for an event
Component::fixupProperty()
Resolves the right reference to an object property
Component::generateAjaxEvent()
Returns the javascript code to generate an ajax call.
Component::getName()
Specifies the name for the component. The name is used as an identifier and should be unique.
Component::getTag()
A versatile property of every Component that can be used in any way you want
Component::hasValidDataField()
Returns true if a valid data field is attached to the component
Component::init()
Initializes a component
Component::insertComponent()
Inserts a component into the component's collection
Component::loaded()
Initializes the component after the form file has been read into memory.
Component::loadedChildren()
Calls childrens loaded
Component::loadResource()
Loads this component from a string
Component::preinit()
Method called before init()
Component::readAccessibility()
Provides accessibility info to the embedded RPC engine.
Component::readComponentCount()
Indicates the number of components owned by the component.
Component::readComponents()
Lists all the components owned by this component.
Component::readControlState()
A flag to know the state of the control, csLoading, csDesigning
Component::readDataFieldValue()
This property returns the value of the datafield if any.
Component::readFromResource()
Reads a component from a resource file
Component::readNamePath()
Specifies the path to uniquely identify a component, qualified by the owner when required.
Component::readOwner()
Indicates the component that is responsible for streaming and freeing this component.
Component::removeComponent()
Removes a component from the component's collection
Component::serializeChildren()
Serializes all children
Component::setName()
Component::setTag()
Component::unserializeChildren()
Unserializes all children by calling unserialize for all the components
Component::updateDataField()
Updates the field on the dataset attached, if any
Component::writeControlState()

Class: Persistent

Persistent::allowserialize()
This method provides an opportunity for the component developer to prevent the serialization/unserialization of a property.
Persistent::assign()
Assigns the source properties to this object.
Persistent::assignError()
Raises an assignation error.
Persistent::assignTo()
Assigns this object to another object.
Persistent::inSession()
This method determines if this object exists in the current session.
Persistent::readNamePath()
Used to serialize/unserialize. It returns the full path to identify this component.
Persistent::readOwner()
Owner of the component.
Persistent::serialize()
Stores this object into the session.
Persistent::unserialize()
This method uses PHP reflection to iterate through published properties (the ones starting with get) and retrieve the properties stored by a previous serialize() call.

Class: Object

Object::__construct()
Constructs an object and initializes its data before the object is first used.
Object::className()
Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
Object::classNameIs()
Determines whether an object is of a specific type.
Object::classParent()
Returns the type of the immediate ancestor of a class.
Object::inheritsFrom()
Determines the relationship of two object types.
Object::methodExists()
Check if a method exists declared on this object instance.
Object::readProperty()
Reads a property from the streams
Object::__get()
To virtualize properties
Object::__set()
To virtualize properties

Class Details

[line 2506]
Base class for Listbox controls, such as ListBox and ComboBox.

ListBox displays a collection of items in a scrollable list.




[ Top ]


Class Variables

$_borderstyle =  bsSingle

[line 2516]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_datafield =  ""

[line 2518]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_datasource =  null

[line 2517]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_items = array()

[line 2508]



Tags:

access:  public

Type:   mixed


[ Top ]

$_onchange =  null

[line 2511]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_onclick =  null

[line 2512]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_ondblclick =  null

[line 2513]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_onsubmit =  null

[line 2514]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_selitems = array()

[line 2509]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_size =  4

[line 2519]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_sorted =  0

[line 2520]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_taborder = 0

[line 2521]



Tags:

access:  protected

Type:   mixed


[ Top ]

$_tabstop = 1

[line 2522]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 2524]

CustomListBox __construct( [ $aowner = null])



Overridden in child classes as:

ComboBox::__construct()

Overrides FocusControl::__construct() (parent method not documented)

Parameters:

   $aowner  

[ Top ]

method AddItem [line 2853]

integer AddItem( string $item, [object $object = null], [string $itemkey = null])

Adds an item to the listbox

Use this method to add an item to the listbox, items can contain object pointers and also specify the key of the item in the items array.




Tags:

return:  Number of items in the control


Overrides CustomListControl::AddItem() (Adds an item to the list control.)

Parameters:

string   $item   Caption of the item to add
object   $object   Object to add
string   $itemkey   Key of the item in the items array

[ Top ]

method Clear [line 2888]

void Clear( )

This method clear listbox

Use this method to clear the items in the listbox and also clear the items selected.




Overrides CustomListControl::Clear() (Deletes all of the items from the list control.)

[ Top ]

method ClearSelection [line 2901]

void ClearSelection( )

Clears selected items in the listbox

Use this method when you want to reset the selection of items in the listbox. If multiselection is enabled, all selected items become unselected.




Overrides CustomListControl::ClearSelection() (Removes the selection, leaving all items unselected.)

[ Top ]

method defaultBorderStyle [line 3130]

void defaultBorderStyle( )



[ Top ]

method defaultDataField [line 3143]

void defaultDataField( )



[ Top ]

method defaultDataSource [line 3167]

void defaultDataSource( )



[ Top ]

method defaultItemIndex [line 2836]

void defaultItemIndex( )



Overrides CustomListControl::defaultItemIndex() (Returns default ItemIndex.)

[ Top ]

method defaultItems [line 3216]

void defaultItems( )



[ Top ]

method defaultMultiSelect [line 2983]

void defaultMultiSelect( )



Overrides CustomMultiSelectListControl::defaultMultiSelect() (Returns the default MultiSelect value.)

[ Top ]

method defaultOnChange [line 3062]

void defaultOnChange( )



[ Top ]

method defaultOnClick [line 3088]

void defaultOnClick( )



[ Top ]

method defaultOnDblClick [line 3104]

void defaultOnDblClick( )



[ Top ]

method defaultOnSubmit [line 3117]

void defaultOnSubmit( )



[ Top ]

method defaultSize [line 3227]

void defaultSize( )



[ Top ]

method defaultSorted [line 3246]

void defaultSorted( )



[ Top ]

method defaultTabOrder [line 3256]

void defaultTabOrder( )



[ Top ]

method defaultTabStop [line 3265]

void defaultTabStop( )



[ Top ]

method dumpContents [line 2620]

void dumpContents( )



Overrides Control::dumpContents() (Dumps the control contents.)

[ Top ]

method dumpFormItems [line 2738]

void dumpFormItems( )



Overrides Component::dumpFormItems() (Dumps code just after the form tag, useful to dump hidden fields for state retrieving for non visible components)

[ Top ]

method dumpJavascript [line 2751]

void dumpJavascript( )



Overrides Control::dumpJavascript() (Dumps all required javascript code for the component.)

[ Top ]

method init [line 2581]

void init( )



Overrides Control::init() (parent method not documented)

[ Top ]

method loaded [line 2537]

void loaded( )



Overrides Control::loaded() (parent method not documented)

[ Top ]

method preinit [line 2544]

void preinit( )



Overrides Component::preinit() (Method called before init())

[ Top ]

method readBorderStyle [line 3128]

enum readBorderStyle( )

Determines whether the listbox control has a single line border around the client area.

Use this property to specify which kind of border the control is going to use. Controls can have a single border (1 pixel wide) or none.




Tags:

return:  (bsNone, bsSingle)


[ Top ]

method readCount [line 2797]

integer readCount( )

Returns the number of items stored in the object

Use this property to get the number of items the control stores, use addItem() to add new items to the control and clear() to remove all of them.




Overrides CustomListControl::readCount() (Returns the number of items in the list.)

[ Top ]

method readDataField [line 3141]

string readDataField( )

DataField is the fieldname to be attached to the control.

This property allows you to show/edit information from a table column using this control. To make it work, you must also assign the Datasource property, which specifies the dataset that contain the fieldname to work on




[ Top ]

method readDataSource [line 3154]

Datasource readDataSource( )

DataSource property allows you to link this control to a dataset containing rows of data.

To make it work, you must also assign DataField property with the name of the column you want to use




[ Top ]

method readItemIndex [line 2812]

integer readItemIndex( )

Specify which item is selected on the list

Use this property to get/set the index of the item in the control that is selected. Use it at design-time to specify the default item selection and use it in run-time to get the user selection.




Overrides CustomListControl::readItemIndex() (Returns the value of the ItemIndex property.)

[ Top ]

method readItems [line 3190]

array readItems( )

Contains the strings that appear in the list box.

Use this property to set the items that will be shown on the listbox where each item has a key and a value.

  1.  <?php
  2.       function ListBox1BeforeShow($sender$params)
  3.       {
  4.                $items=array();
  5.  
  6.                $items['key1']='value1';
  7.                $items['key2']='value2';
  8.  
  9.                $this->ListBox1->Items=$items;
  10.       }
  11.  ?>




[ Top ]

method readMultiSelect [line 2965]

bool readMultiSelect( )

Determines whether the user can select more than one element at a time.

Use this property to allow the user to select several items at once.

  1.  <?php
  2.        function Button1Click($sender$params)
  3.        {
  4.                 echo "Number of selected items:".$this->ListBox1->SelCount."<br>";
  5.  
  6.                 $items=$this->ListBox1->Items;
  7.  
  8.                 reset($items);
  9.                 while(list($key$val)=each($items))
  10.                 {
  11.                         if ($this->ListBox1->readSelected($key))
  12.                         {
  13.                                 echo "Item selected: $key => $val<br>";
  14.                         }
  15.                 }
  16.        }
  17.  ?>

Note: MultiSelect does not work if a data source is assigned.




Overridden in child classes as:

ComboBox::readMultiSelect()

Overrides CustomMultiSelectListControl::readMultiSelect() (Reads the value of the MultiSelect property.)

[ Top ]

method readOnChange [line 3060]

mixed readOnChange( )

Occurs when the user changed the item of the control.

This event is fired when the contents are committed and not while the value is changing. For example, on a text box, this event is not fired while the user is typing, but rather when the user commits the change by leaving the text box that has focus. In addition, this event is executed before the code specified by onblur when the control is also losing the focus.




Tags:

return:  Returns the event handler or null if no handler is set.


[ Top ]

method readOnClick [line 3082]

mixed readOnClick( )

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:

return:  Returns the event handler or null if no handler is set.


[ Top ]

method readOnDblClick [line 3098]

mixed readOnDblClick( )

Occurs when the user double-clicks the control.

Use this event to react when the user double click on the control, this event is usually fired after a set of other events, like mousedown and mouseup




Tags:

return:  Returns the event handler or null if no handler is set.


[ Top ]

method readOnSubmit [line 3115]

mixed readOnSubmit( )

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.




[ Top ]

method readSelCount [line 2925]

void readSelCount( )



Overridden in child classes as:

ComboBox::readSelCount()

Overrides CustomMultiSelectListControl::readSelCount() (Returns the number of selected Items in the list.)

[ Top ]

method readSelected [line 2996]

bool readSelected( mixed $index)

Checks if $index is selected.



Tags:

return:  Returns true if $index is selected.


Parameters:

mixed   $index   Index to be checked.

[ Top ]

method readSize [line 3225]

integer readSize( )

Size of the listbox. Size defines the number of items that are shown without a need of scrolling.

If bigger than 1 most browsers will use Height instead. If Size equals 1 the listbox truns into a combobox.




[ Top ]

method readSorted [line 3237]

bool readSorted( )

Specifies whether the items in the control are arranged alphabetically.

If this property is set, items in the control will be sorted alphabetically according to the values of the items, not the keys.




[ Top ]

method readTabOrder [line 3254]

integer readTabOrder( )

TabOrder indicates in which order controls are access when using the Tab key.

The value of the TabOrder can be between 0 and 32767.




[ Top ]

method readTabStop [line 3263]

bool readTabStop( )

Enable or disable the TabOrder property. The browser may still assign a TabOrder by itself internally. This cannot be controlled by HTML.



[ Top ]

method SelectAll [line 2917]

void SelectAll( )

Select all items in the control

Use this method to include all items in the control as selected. To make it work, MultiSelect property must be set to true.




Overrides CustomListControl::SelectAll() (Selects all items or all text in the selected item.)

[ Top ]

method writeBorderStyle [line 3129]

void writeBorderStyle( $value)



Parameters:

   $value  

[ Top ]

method writeDataField [line 3142]

void writeDataField( $value)



Parameters:

   $value  

[ Top ]

method writeDataSource [line 3158]

void writeDataSource( $value)

If a data source is assigned multi-select cannot be used.



Parameters:

   $value  

[ Top ]

method writeItemIndex [line 2827]

void writeItemIndex( $value)



Overrides CustomListControl::writeItemIndex() (Sets new ItemIndex value.)

Parameters:

   $value  

[ Top ]

method writeItems [line 3191]

void writeItems( $value)



Parameters:

   $value  

[ Top ]

method writeMultiSelect [line 2969]

void writeMultiSelect( $value)



Overridden in child classes as:

ComboBox::writeMultiSelect()

Overrides CustomMultiSelectListControl::writeMultiSelect() (Sets the value of the MultiSelect property.)

Parameters:

   $value  

[ Top ]

method writeOnChange [line 3061]

void writeOnChange( $value)



Parameters:

   $value  

[ Top ]

method writeOnClick [line 3087]

void writeOnClick( mixed $value)

Occurs when the user clicks the control.



Parameters:

mixed   $value   Event handler or null if no handler is set.

[ Top ]

method writeOnDblClick [line 3103]

void writeOnDblClick( mixed $value)

Occurs when the user double clicks the control.



Parameters:

mixed   $value   Event handler or null if no handler is set.

[ Top ]

method writeOnSubmit [line 3116]

void writeOnSubmit( $value)



Parameters:

   $value  

[ Top ]

method writeSelected [line 3012]

void writeSelected( mixed $index, bool $value)

Select or unselect a specific item.



Parameters:

mixed   $index   Key or index of the item to select.
bool   $value   True if selected, otherwise false.

[ Top ]

method writeSize [line 3226]

void writeSize( $value)



Parameters:

   $value  

[ Top ]

method writeSorted [line 3238]

void writeSorted( $value)



Parameters:

   $value  

[ Top ]

method writeTabOrder [line 3255]

void writeTabOrder( $value)



Parameters:

   $value  

[ Top ]

method writeTabStop [line 3264]

void writeTabStop( $value)



Parameters:

   $value  

[ Top ]


Documentation generated on Sat, 13 Jun 2009 10:52:02 -0700 by phpDocumentor 1.4.1