Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIXFormsRangeAccessors Interface Reference

Accessors provided by XForms <range> controls. More...

import "nsIXFormsRangeAccessors.idl";

Inheritance diagram for nsIXFormsRangeAccessors:
Inheritance graph
[legend]
Collaboration diagram for nsIXFormsRangeAccessors:
Collaboration graph
[legend]

List of all members.

Public Member Functions

DOMString getRangeStart ()
 The start of the range interval.
DOMString getRangeEnd ()
 The end of the range interval.
DOMString getRangeStep ()
 The step size.
boolean isInRange ()
void setInRange (in boolean aInRange)
 Used to tell the XForms processor whether the control can represent all of data in the bound node.
DOMString getValue ()
 Get the value bound to the XForms control.
void setValue (in DOMString value)
 Set the value bound to the XForms control.
boolean isReadonly ()
boolean isRelevant ()
boolean isRequired ()
boolean isValid ()
boolean hasBoundNode ()
 true, if XForms control is bound to a node in a data model.
nsIDOMNode getBoundNode ()
 Node that the control is bound to in its data model.
void setContent (in nsIDOMNode aNode, in boolean aForceUpdate)
 Used to set the complete contents of the bound node.

Detailed Description

Accessors provided by XForms <range> controls.

See also:
http://www.w3.org/TR/xforms/slice8.html#ui-range

Definition at line 47 of file nsIXFormsRangeAccessors.idl.


Member Function Documentation

Node that the control is bound to in its data model.

The end of the range interval.

The start of the range interval.

The step size.

DOMString nsIXFormsAccessors::getValue ( ) [inherited]

Get the value bound to the XForms control.

true, if XForms control is bound to a node in a data model.

void nsIXFormsAccessors::setContent ( in nsIDOMNode  aNode,
in boolean  aForceUpdate 
) [inherited]

Used to set the complete contents of the bound node.

This function is meant to be used like setValue() except that it can be used to set more than just the first textnode contained under the bound node. If there is nothing contained under aNode, then all children of the bound node will be eliminated.

Parameters:
aNodesetContent will take the contents of aNode and copy them under the control's bound node.
aForceUpdateIndicates whether setContent should rebuild, recalculate, revalidate and refresh the model that this control is bound to prior to returning

Used to tell the XForms processor whether the control can represent all of data in the bound node.

For example, if there are 3 different space-seperated values in the instance data bound to a xf:select1 and the select1 only has one item, then the data must be out of the range of the control.

Parameters:
aInRangeIf false, the control should be styled as defined by out-of-range pseudo-class. If the control was previously in-range, then the xforms-out-of-range event should be dispatched. If true, the control should be styled as defined by in-range pseudo-class or the default style matching the control. If the data was previously out-of-range, then the xforms-in-range event should be dispatched.
void nsIXFormsAccessors::setValue ( in DOMString  value) [inherited]

Set the value bound to the XForms control.


The documentation for this interface was generated from the following file: