XUL:prefpane
From MDC
« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]
A single preference panel in a prefwindow. A prefpane is made up of two parts, the preferences descriptions, which specify the set of preferences that will be modified, and the user interface for adjusting those preferences. The former is specified using a preferences element while the latter may be specified using other XUL elements.
Both may be specified directly as children of the prefpane element, or the src attribute may be used to put a pane in a separate file. In this latter case, the separate file should use an overlay tag as its root tag since it will be loaded as an overlay to the main preferences window.
More information is available in the Preferences System article.
- Properties
- image, label, preferenceElements, preferences, selected, src
- Methods
- preferenceForElement
[edit] Examples
(example needed)
[edit] Attributes
|
Inherited from XUL element |
- helpURI
- Type: uri
- The URI of the help page associated with a preference panel. The URI will be opened using the help viewer when the help button is pressed.
- image
- Type: image URL
- The URL of the image to appear on the element. If this attribute is empty or left out, no image appears. The position of the image is determined by the dir and orient attributes.
- label
- Type: string
- The label that will appear on the element. If this is left out, no text appears.
- onpaneload
- Type: script code
- Code defined here is called when the pane has been loaded, much like the
loadevent for a window.
- selected
- Type: boolean
- This attribute will be set to
truefor the currently selected prefpane. To change the selected pane, use the prefwindow's showPane method.
- src
- Type: overlay URL
- The URL of the contents of preference pane. If this is not specified, the contents of the prefpane element is used.
[edit] Properties
|
Inherited from XUL element Inherited from DOM element |
- preferenceElements
- Type: DOM Nodelist
- Holds a list of the UI elements in the pane that are attached to preferences.
- preferences
- Type: DOM Nodelist
- Holds a list of the preference elements in the pane.
- selected
- Type: boolean
- This property's value is
trueif this element is selected, orfalseif it is not. This property is read only.
[edit] Methods
- preferenceForElement( uielement )
- Return type: preference element
- Returns the preference element to which a user interface element is attached.
|
Inherited from XUL element Inherited from DOM element |
[edit] Related
TBD