User Tools

Site Tools


thinkgeo.mapsuite.mvcedition.mvccontrolbase

ThinkGeo.MapSuite.MvcEdition.MvcControlBase

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This class defines the base abstract class for creating MVC control.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

MvcControlBase()

Initializes a new instance of the MvcControlBase class.

Remarks

N/A

Parameters

MvcControlBase(String)

Initializes a new instance of the MvcControlBase class.

Remarks

N/A

Parameters
  • name
    • Type:String
    • Description:The unique identifier name of the control.

Public Methods

Fill(String)

Fill an instance according to the input entity string

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • entityString
    • Type:String
    • Description:the inpu entity string.

Fill(String,String)

Fill an instance based on the input model name according to the input entity string

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • modelName
    • Type:String
    • Description:the input model name
  • entityString
    • Type:String
    • Description:the input entity string

ToString(String)

Convert current object based on mode name to an entity string.

Remarks

N/A

Return Value
  • Type:String
  • Description:an entity string
Parameters
  • modelName
    • Type:String
    • Description:model name

ToString()

N/A

Remarks

N/A

Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

N/A

Remarks

N/A

Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

N/A

Remarks

N/A

Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

LoadState()

Restores the control information from a persistent object the was saved by the SaveState method.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

PreRender()

Does the preparation before sending the Mvc control to the provided HtmlWriter of the ViewContext.

Remarks

This method notifies the Mvc control to perform any necessary prerendering steps prior to rendering content and save state.

Return Value
  • Type:Void
  • Description:N/A
Parameters

Render(HtmlTextWriter)

Sends the Mvc control content to a provided HtmlTextWriter object, which wirtes the content to be rendered on the client.

Remarks

When developing a custom server control, you can override this method to generate conteol for a page.

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • htmlTextWriter
    • Type:HtmlTextWriter
    • Description:The HtmlTextWriter object that receives the Mvc control content.

SaveState()

Saves any necessary information of the Mvc control, which will be used in some other places.

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

Id

Gets the client id of the control, it will be calculated from Name property.

Remarks

N/A

Return Value
  • Type:String

Name

Gets the unique identifier name of the control.

Remarks

N/A

Return Value
  • Type:String

Width

Gets or sets the width of the control.

Remarks

N/A

Return Value
  • Type:Unit

Height

Gets or sets the height of the control.

Remarks

N/A

Return Value
  • Type:Unit

Visible

Gets or sets the visibility of the control.

Remarks

N/A

Return Value
  • Type:Boolean

HtmlAttributes

Gets the customized html attributes of the control.

Remarks

N/A

Return Value
  • Type:Dictionary<String,String>

ClientScriptFileNames

Gets the client script files which will be registered to the page.

Remarks

N/A

Return Value
  • Type:Dictionary<String,String>

ClientScriptBlocks

Gets the client script blocks which will be registered to the page.

Remarks

N/A

Return Value
  • Type:Dictionary<String,String>

StyleSheetFileNames

Gets the css files which will be wrote to the client html.

Remarks

N/A

Return Value
  • Type:Collection<String>

ViewContext

Gets the ViewContext of the page which includes the control.

Remarks

N/A

Return Value
  • Type:ViewContext

Protected Properties

ClientScriptManager

Gets the object which is used for managing, registering the client scripts.

Remarks

N/A

Return Value

ClientStyleSheetManager

Gets the object which is used for managing, registering the css files used by the control.

Remarks

N/A

Return Value

Public Events

thinkgeo.mapsuite.mvcedition.mvccontrolbase.txt · Last modified: 2017/03/16 21:59 (external edit)