C# Class SenseNet.Portal.UI.PortletFramework.SNWebPartChrome

Custom WebPartChrome implementation without table tags. This chrome supports 2 default action verbs: Delete and Edit. Of course, you can use your custom action verbs, in your webpart.
Inheritance: System.Web.UI.WebControls.WebParts.WebPartChrome
显示文件 Open project: maxpavlov/FlexNet

Public Methods

Method Description
PerformPreRender ( ) : void
RenderWebPart ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void
SNWebPartChrome ( System.Web.UI.WebControls.WebParts.WebPartZoneBase zone, System.Web.UI.WebControls.WebParts.WebPartManager manager ) : System

Protected Methods

Method Description
RenderChromeFooter ( System.Web.UI.HtmlTextWriter writer ) : void
RenderTitle ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void
RenderTitleBar ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void
RenderVerb ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart, System.Web.UI.WebControls.WebParts.WebPartVerb verb1 ) : void
RenderVerbTag ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart, System.Web.UI.WebControls.WebParts.WebPartVerb verb1, string linkClass ) : void

Private Methods

Method Description
AddPortletSkinCss ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart, String chromeType ) : void
GetCurrentContentOrTypeName ( System.Web.UI.WebControls.WebParts.WebPart wp ) : string
GetLocalizedVerbText ( string verbText ) : string
GetTitleByFormat ( string title, System.Web.UI.WebControls.WebParts.WebPart wp ) : string
GetVerbId ( System.Web.UI.WebControls.WebParts.WebPartVerb verb ) : string

Handles default and custom verbs ids. If a custom verb is used, fw renders its id with 'partVerb:' prefix.

IsRestricted ( System.Web.UI.WebControls.WebParts.WebPartVerb verb1 ) : bool

Return true, if the verb is not allowed. It's an inner logic, Later, we can change this. Actually, we don't support the following webpart verbs: minimize, close, help, restore, connect, export

RenderHeaderTagTL ( System.Web.UI.HtmlTextWriter writer ) : void
RenderHeaderTagTR ( System.Web.UI.HtmlTextWriter writer ) : void
RenderIconTag ( System.Web.UI.HtmlTextWriter writer ) : void
RenderMaskTag ( System.Web.UI.HtmlTextWriter writer ) : void
RenderPortletBodyBeginTag ( System.Web.UI.HtmlTextWriter writer ) : void
RenderPortletBodyEndTag ( System.Web.UI.HtmlTextWriter writer ) : void
RenderTitleTag ( System.Web.UI.HtmlTextWriter writer, string title ) : void
RenderVerbs ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void

Method Details

PerformPreRender() public method

public PerformPreRender ( ) : void
return void

RenderChromeFooter() protected method

protected RenderChromeFooter ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void

RenderTitle() protected method

protected RenderTitle ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void
writer System.Web.UI.HtmlTextWriter
webPart System.Web.UI.WebControls.WebParts.WebPart
return void

RenderTitleBar() protected method

protected RenderTitleBar ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void
writer System.Web.UI.HtmlTextWriter
webPart System.Web.UI.WebControls.WebParts.WebPart
return void

RenderVerb() protected method

protected RenderVerb ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart, System.Web.UI.WebControls.WebParts.WebPartVerb verb1 ) : void
writer System.Web.UI.HtmlTextWriter
webPart System.Web.UI.WebControls.WebParts.WebPart
verb1 System.Web.UI.WebControls.WebParts.WebPartVerb
return void

RenderVerbTag() protected method

protected RenderVerbTag ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart, System.Web.UI.WebControls.WebParts.WebPartVerb verb1, string linkClass ) : void
writer System.Web.UI.HtmlTextWriter
webPart System.Web.UI.WebControls.WebParts.WebPart
verb1 System.Web.UI.WebControls.WebParts.WebPartVerb
linkClass string
return void

RenderWebPart() public method

public RenderWebPart ( System.Web.UI.HtmlTextWriter writer, System.Web.UI.WebControls.WebParts.WebPart webPart ) : void
writer System.Web.UI.HtmlTextWriter
webPart System.Web.UI.WebControls.WebParts.WebPart
return void

SNWebPartChrome() public method

public SNWebPartChrome ( System.Web.UI.WebControls.WebParts.WebPartZoneBase zone, System.Web.UI.WebControls.WebParts.WebPartManager manager ) : System
zone System.Web.UI.WebControls.WebParts.WebPartZoneBase
manager System.Web.UI.WebControls.WebParts.WebPartManager
return System