C# Class SenseNet.Portal.Portlets.ContentAddNewPortlet

Inheritance: SenseNet.Portal.UI.PortletFramework.ContextBoundPortlet, IContentProvider
Datei anzeigen Open project: maxpavlov/FlexNet

Protected Properties

Property Type Description
_currentUserControl System.Web.UI.Control

Private Properties

Property Type Description
AddSelectedNewContentView void
ContentTypeIsValid bool
FillDropDownWithContentTypeNames void
GetListItems System.Web.UI.WebControls.ListItem[]
GetOtherListItems System.Web.UI.WebControls.ListItem[]
InitializeStates string[]
SetControlsByState void

Public Methods

Method Description
CancelSelectClick ( object sender, EventArgs e ) : void
ContentAddNewPortlet ( ) : System
FormatTitle ( System cultureInfo, string titleFormat, string currentContentName ) : string
GetRedirUrl ( string contentTypeName ) : string
NewContentViewUserAction ( object sender, UserActionEventArgs e ) : void
SelectCtButtonClick ( object sender, EventArgs e ) : void

Protected Methods

Method Description
AllowCreationForEmptyAllowedContentTypes ( string parentPath ) : bool
CreateChildControls ( ) : void
GetContentView ( SenseNet.ContentRepository.Content newContent ) : ContentView
GetContextNode ( ) : Node
GetParentPath ( ) : string
GetRequestedContentType ( ) : string
GetSelectedContentType ( ) : string
LoadControlState ( object savedState ) : void
LoadUserInterface ( System.Web.UI.TemplateControl page, string path ) : Control
OnInit ( EventArgs e ) : void
SaveControlState ( ) : object

Private Methods

Method Description
AddSelectedNewContentView ( string selectedContentTypeName ) : void
ContentTypeIsValid ( ) : bool
FillDropDownWithContentTypeNames ( Control listControl ) : void
GetListItems ( IEnumerable contentTypes, Node contextNode ) : System.Web.UI.WebControls.ListItem[]
GetOtherListItems ( IEnumerable nodes, Node contextNode ) : System.Web.UI.WebControls.ListItem[]
InitializeStates ( ) : string[]
SetControlsByState ( ) : void

Method Details

AllowCreationForEmptyAllowedContentTypes() protected method

protected AllowCreationForEmptyAllowedContentTypes ( string parentPath ) : bool
parentPath string
return bool

CancelSelectClick() public method

public CancelSelectClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ContentAddNewPortlet() public method

public ContentAddNewPortlet ( ) : System
return System

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

FormatTitle() public method

public FormatTitle ( System cultureInfo, string titleFormat, string currentContentName ) : string
cultureInfo System
titleFormat string
currentContentName string
return string

GetContentView() protected method

protected GetContentView ( SenseNet.ContentRepository.Content newContent ) : ContentView
newContent SenseNet.ContentRepository.Content
return SenseNet.Portal.UI.ContentView

GetContextNode() protected method

protected GetContextNode ( ) : Node
return Node

GetParentPath() protected method

protected GetParentPath ( ) : string
return string

GetRedirUrl() public method

public GetRedirUrl ( string contentTypeName ) : string
contentTypeName string
return string

GetRequestedContentType() protected method

protected GetRequestedContentType ( ) : string
return string

GetSelectedContentType() protected method

protected GetSelectedContentType ( ) : string
return string

LoadControlState() protected method

protected LoadControlState ( object savedState ) : void
savedState object
return void

LoadUserInterface() protected method

protected LoadUserInterface ( System.Web.UI.TemplateControl page, string path ) : Control
page System.Web.UI.TemplateControl
path string
return System.Web.UI.Control

NewContentViewUserAction() public method

public NewContentViewUserAction ( object sender, UserActionEventArgs e ) : void
sender object
e SenseNet.Portal.UI.UserActionEventArgs
return void

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

SaveControlState() protected method

protected SaveControlState ( ) : object
return object

SelectCtButtonClick() public method

public SelectCtButtonClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

_currentUserControl protected_oe property

protected Control,System.Web.UI _currentUserControl
return System.Web.UI.Control