Click or drag to resize

PFCounter Class

Represents a Counter widget.
Inheritance Hierarchy
SystemObject
  Packflow.Core.WidgetsPFWidgetBase
    Packflow.Core.WidgetsPFWidgetBasePFCounterSettings
      Packflow.Core.Widgets.BuiltInPFDataWidgetPFCounterSettings
        Packflow.Core.Widgets.BuiltInPFCounter

Namespace:  Packflow.Core.Widgets.BuiltIn
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
[PFWidgetAttribute("packflow/counter", false)]
public class PFCounter : PFDataWidget<PFCounterSettings>

The PFCounter type exposes the following members.

Constructors
  NameDescription
Public methodPFCounter
Initializes a new instance of PFCounter
Public methodPFCounter(PFCounterSettings)
Initializes a new instance of PFCounter
Top
Properties
  NameDescription
Public propertyId
Gets or set the unique id of this widget instance.
(Inherited from PFWidgetBase.)
Public propertySettings
Gets the settings of this widget.
(Inherited from PFWidgetBaseTSettings.)
Top
Methods
  NameDescription
Public methodGetApplicationCandidates
Returns all possible applications that a user can select given the current settings.
(Inherited from PFDataWidgetTSettings.)
Public methodGetContentTypeCandidates
Returns all possible content-types that a user can select given the current settings.
(Inherited from PFDataWidgetTSettings.)
Public methodGetFieldCandidates
Returns all fields that a user can select given the current settings.
(Inherited from PFDataWidgetTSettings.)
Public methodGetSelectedApplication
Returns the selected application, or null if no application is selected.
(Inherited from PFDataWidgetTSettings.)
Public methodGetSelectedContentType
Returns the selected content-type, or null if no content-type is selected.
(Inherited from PFDataWidgetTSettings.)
Public methodGetSelectedContentTypeFields
Returns the selected content-type fields, or null if no content-type is selected.
(Inherited from PFDataWidgetTSettings.)
Public methodGetSelectedField
Returns the selected field for the given setting, or null no field is selected.
(Inherited from PFDataWidgetTSettings.)
Public methodGetSelectedView
Returns the selected view, or null if no view is selected.
(Inherited from PFDataWidgetTSettings.)
Protected methodGetSettings
Returns a JSON representation of this widget settings that later be loaded using LoadSettings(JObject, JsonSerializer)
(Inherited from PFWidgetBaseTSettings.)
Public methodGetValidationResult
Validates the current widget.
(Inherited from PFWidgetBase.)
Public methodGetValue
Computes the value displayed in the counter, given the current settings.
Public methodGetViewCandidates
Returns all possible views that a user can select given the current settings.
(Inherited from PFDataWidgetTSettings.)
Public methodInitFromJson
Init this widget using its id and its serialized JSON settings.
(Inherited from PFWidgetBase.)
Protected methodLoadSettings
Loads JSON-serialized settings into this widget.
(Inherited from PFWidgetBaseTSettings.)
Protected methodRegisterFieldSetting
Register a new field setting.
(Inherited from PFDataWidgetTSettings.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToWidgetData
Returns a serializable PFWidgetData instance representing this widget.
(Inherited from PFWidgetBase.)
Protected methodValidate
Validates the current widget.
(Inherited from PFDataWidgetTSettings.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also