Class QListItem
Utilized by the QListControl
class which contains a private array of ListItems. Originally these
represented items in a select list, but now represent items in any kind of control that has repetitive items
in it. This includes list controls, menus, drop-downs, and hierarchical lists. This is a general purpose container
for the options in each item. Note that not all the options are used by every control, and we don't do any drawing here.
- QBaseClass
- QListItemBase
- QListItem implements JsonSerializable
Direct known subclasses
QAutocompleteListItem
public
|
#
__construct( string $strName, string $strValue = null, boolean $blnSelected = false, string $strItemGroup = null, array|string $mixOverrideParameters = null )
Creates a QListItem |
public
string
|
#
toJsObject( )
Returns the details of the control as javascript string. This is customized for the JQuery UI autocomplete. If your widget requires something else, you will need to subclass and override this. |
public
string
|
#
jsonSerialize( )
Returns the details of the control as javascript string. This is customized for the JQuery UI autocomplete. If your widget requires something else, you will need to subclass and override this. |
public
mixed
|
|
public
mixed
|
FindItem(),
GetAttributes(),
GetId(),
GetStyle(),
MarkAsModified(),
Reindex(),
SetId()
|
OverrideAttributes(),
__call()
|
protected
boolean
|
$blnSelected
Is the item selected? |
#
false
|
protected
null|string
|
$strItemGroup
Group to which the item belongs, if control supports groups. |
#
null
|
protected
string
|
$strLabel
Label text for the item. |
#
null
|
$objItemStyle,
$strId,
$strName,
$strValue
|
public
boolean
|
$Selected
is a boolean of whether or not this item is selected or not (do only! use during initialization, otherwise this should be set by the |
public
string
|
$ItemGroup
is the group (if any) in which the Item should be displayed |
public
string
|
$Label
is optional text to display instead of the Name for certain controls. |
$Empty,
$Id,
$ItemStyle,
$Name,
$Text,
$Value
|