C# Class Fluqi.Core.Methods

Models methods that can be applied to a jQuery UI control.
Inheritance: Options
Mostra file Open project: toepoke/Fluqi

Protected Properties

Property Type Description
_ID string
_PlugInName string
_Writer System.IO.TextWriter

Public Methods

Method Description
Methods ( Interfaces ictl ) : System

Constructor.

Protected Methods

Method Description
AddQuotesToDate ( string dateValue ) : bool

Works out what type of date value or object is being passed in (i.e. is a string date like "01/01/2000", a numerical date value like "3" for 3 days, or a relateive date specification like "+1w -1d" where some of them need quotes, but other don't.

BuildMethodCall ( string methodName ) : string

Builds up the JavaScript required to call a given method.

RenderGetOptionCall ( string optionName ) : void

Writes the JavaScript required to do a "Get" against a control option.

RenderMethodCall ( string methodName ) : void

Writes the JavaScript required to call a given method on the jQuery UI control.

RenderSetOptionCall ( string optionName, System.DateTime newValue ) : void

Writes the JavaScript required to do a "Set" against a control option.

RenderSetOptionCall ( string optionName, bool newValue ) : void

Writes the JavaScript required to do a "Set" against a control option.

RenderSetOptionCall ( string optionName, int newValue ) : void

Writes the JavaScript required to do a "Set" against a control option.

RenderSetOptionCall ( string optionName, string newValue ) : void

Writes the JavaScript required to do a "Set" against a control option.

RenderSetOptionCall ( string optionName, string newValue, bool inDoubleQuotes ) : void

Writes the JavaScript required to do a "Set" against a control option.

Method Details

AddQuotesToDate() protected method

Works out what type of date value or object is being passed in (i.e. is a string date like "01/01/2000", a numerical date value like "3" for 3 days, or a relateive date specification like "+1w -1d" where some of them need quotes, but other don't.
protected AddQuotesToDate ( string dateValue ) : bool
dateValue string Value to be queried
return bool

BuildMethodCall() protected method

Builds up the JavaScript required to call a given method.
protected BuildMethodCall ( string methodName ) : string
methodName string Name of the method to call (as define in the jQuery UI documentation for the control.
return string

Methods() public method

Constructor.
public Methods ( Interfaces ictl ) : System
ictl Interfaces Control methods are being defined for
return System

RenderGetOptionCall() protected method

Writes the JavaScript required to do a "Get" against a control option.
protected RenderGetOptionCall ( string optionName ) : void
optionName string Name of the option to get the value of
return void

RenderMethodCall() protected method

Writes the JavaScript required to call a given method on the jQuery UI control.
protected RenderMethodCall ( string methodName ) : void
methodName string Name of the method to call (as define in the jQuery UI documentation for the control.
return void

RenderSetOptionCall() protected method

Writes the JavaScript required to do a "Set" against a control option.
protected RenderSetOptionCall ( string optionName, System.DateTime newValue ) : void
optionName string Name of the option to get the value of
newValue System.DateTime New value for the control option.
return void

RenderSetOptionCall() protected method

Writes the JavaScript required to do a "Set" against a control option.
protected RenderSetOptionCall ( string optionName, bool newValue ) : void
optionName string Name of the option to get the value of
newValue bool New value for the control option.
return void

RenderSetOptionCall() protected method

Writes the JavaScript required to do a "Set" against a control option.
protected RenderSetOptionCall ( string optionName, int newValue ) : void
optionName string Name of the option to get the value of
newValue int New value for the control option.
return void

RenderSetOptionCall() protected method

Writes the JavaScript required to do a "Set" against a control option.
protected RenderSetOptionCall ( string optionName, string newValue ) : void
optionName string Name of the option to get the value of
newValue string New value for the control option.
return void

RenderSetOptionCall() protected method

Writes the JavaScript required to do a "Set" against a control option.
protected RenderSetOptionCall ( string optionName, string newValue, bool inDoubleQuotes ) : void
optionName string Name of the option to get the value of
newValue string New value for the control option.
inDoubleQuotes bool /// true - double quotes (") /// false - single quotes (') ///
return void

Property Details

_ID protected_oe property

ID of the control.
protected string _ID
return string

_PlugInName protected_oe property

Name of the plugin.
protected string _PlugInName
return string

_Writer protected_oe property

Object the control should write itself to.
protected TextWriter,System.IO _Writer
return System.IO.TextWriter