Richlistitem
Mozilla 1.8An individual item in a richlistbox.
Attributes:
Inherited from XUL Element:
align
allowevents
allownegativeassertions
class
coalesceduplicatearcs
collapsed
container
containment
context
contextmenu
datasources
dir
empty
equalsize
flags
flex
height
hidden
id
insertafter
insertbefore
left
maxheight
maxwidth
menu
minheight
minwidth
mousethrough
observes
ordinal
orient
pack
persist
popup
position
preference-editable
ref
removeelement
sortDirection
sortResource
sortResource2
statustext
style
template
tooltip
tooltiptext
top
uri
wait-cursor
width
disabled
Type: boolean
Indicates whether the richlistitem is disabled or not. If this attribute is set to true, the richlistitem is disabled. This is usually drawn with the text in grey. If the richlistitem is disabled, it does not respond to user actions. The element cannot be focused and the command event will not fire. The element will still respond to mouse events. To enable the richlistitem, leave the attribute out entirely as opposed to setting the value to false.
selected
Type: boolean
Set to true if the item is currently selected. To change the selection, use either the selectedItem or selectedIndex properties of the containing richlistbox element.
tabindex
Type: integer
The tab order of the element. The tab order is the order in which the focus is moved when the user presses the Tab key. Elements with a higher tabindex are later in the tab order sequence.
value
Type: string
A value associated with the richlistitem. You may use it in a script for your own purposes.
Properties and Methods:
Inherited from XUL Element:
align
allowEvents
blur
boxObject
boxObject.element
boxObject.getLookAndFeelMetric
boxObject.height
boxObject.screenX
boxObject.screenY
boxObject.width
boxObject.x
boxObject.y
builder
className
click
collapsed
contextMenu
controllers
database
datasources
dir
doCommand
flex
focus
getElementsByAttribute
height
hidden
id
left
maxHeight
maxWidth
menu
minHeight
minWidth
observes
ordinal
orient
pack
persist
ref
resource
statusText
style
tooltip
tooltipText
top
width
Inherited from Element:
addEventListener
appendChild
attributes
childNodes
cloneNode
dispatchEvent
firstChild
getAttribute
getAttributeNS
getAttributeNode
getAttributeNodeNS
getElementsByTagName
getElementsByTagNameNS
hasAttribute
hasAttributeNS
hasAttributes
hasChildNodes
insertBefore
isSupported
lastChild
localName
namespaceURI
nextSibling
nodeName
nodeType
nodeValue
normalize
ownerDocument
parentNode
prefix
previousSibling
removeAttribute
removeAttributeNS
removeAttributeNode
removeChild
removeEventListener
replaceChild
setAttribute
setAttributeNS
setAttributeNode
setAttributeNodeNS
tagName
accessible
Type: nsIAccessible
Returns the accessibility object for the richlistitem.
control
Type: nsIDOMXULSelectControlElement
The read only property holds the containing richlistbox.
disabled
Type: boolean
Gets and sets the value of the disabled attribute.
label
Type: string
Since rich listboxes do not normally contain plaintext, this property is not generally used for richlistitem elements. However, if retrieved, it will return the concatenation of the text of any label elements inside the item. This property is read only.
selected
Type: boolean
Set to true if the item is currently selected. To change the selection, use either the selectedItem or selectedIndex properties of the containing richlistbox element.
tabIndex Mozilla 1.8
Type: integer
Get and sets the value of the tabindex attribute.
value
Type: string
A value associated with the richlistitem. You may use it in a script for your own purposes.