C# Class Rock.Field.Types.IntegerRangeFieldType

Inheritance: FieldType
Show file Open project: NewSpring/Rock

Public Methods

Method Description
EditControl ( ConfigurationValue>.System configurationValues, string id ) : System.Web.UI.Control

Creates the control(s) necessary for prompting user for a new value

FilterControl ( ConfigurationValue>.System configurationValues, string id, bool required, Rock filterMode ) : System.Web.UI.Control

Creates the control needed to filter (query) values using this field type.

FormatValue ( System parentControl, string value, ConfigurationValue>.System configurationValues, bool condensed ) : string

Returns the field's current value(s)

GetEditValue ( System control, ConfigurationValue>.System configurationValues ) : string

Reads new values entered by the user for the field

HasFilterControl ( ) : bool

Determines whether this filter has a filter control

IsValid ( string value, bool required, string &message ) : bool

Tests the value to ensure that it is a valid value. If not, message will indicate why

SetEditValue ( System control, ConfigurationValue>.System configurationValues, string value ) : void

Sets the value.

Method Details

EditControl() public method

Creates the control(s) necessary for prompting user for a new value
public EditControl ( ConfigurationValue>.System configurationValues, string id ) : System.Web.UI.Control
configurationValues ConfigurationValue>.System The configuration values.
id string
return System.Web.UI.Control

FilterControl() public method

Creates the control needed to filter (query) values using this field type.
public FilterControl ( ConfigurationValue>.System configurationValues, string id, bool required, Rock filterMode ) : System.Web.UI.Control
configurationValues ConfigurationValue>.System The configuration values.
id string The identifier.
required bool if set to true [required].
filterMode Rock The filter mode.
return System.Web.UI.Control

FormatValue() public method

Returns the field's current value(s)
public FormatValue ( System parentControl, string value, ConfigurationValue>.System configurationValues, bool condensed ) : string
parentControl System The parent control.
value string Information about the value
configurationValues ConfigurationValue>.System The configuration values.
condensed bool Flag indicating if the value should be condensed (i.e. for use in a grid column)
return string

GetEditValue() public method

Reads new values entered by the user for the field
public GetEditValue ( System control, ConfigurationValue>.System configurationValues ) : string
control System Parent control that controls were added to in the CreateEditControl() method
configurationValues ConfigurationValue>.System The configuration values.
return string

HasFilterControl() public method

Determines whether this filter has a filter control
public HasFilterControl ( ) : bool
return bool

IsValid() public method

Tests the value to ensure that it is a valid value. If not, message will indicate why
public IsValid ( string value, bool required, string &message ) : bool
value string The value.
required bool if set to true [required].
message string The message.
return bool

SetEditValue() public method

Sets the value.
public SetEditValue ( System control, ConfigurationValue>.System configurationValues, string value ) : void
control System The control.
configurationValues ConfigurationValue>.System The configuration values.
value string The value.
return void