C# Class Open.Core.Part

Represents a part of an application (which may or may not have UI associated with it).
Inheritance: ModelBase
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
GetEntryPoint ( Type type, string methodName ) : string

Formats the entry point method for a part.

Initialize ( System.Action callback ) : void

Initializes the part.

UpdateLayout ( ) : void

Forces an update to the Part's layout.

Protected Methods

Method Description
LoadHtml ( string url, System.Action onComplete ) : void

Loads the HTML at the given URL into the Container.

OnInitialize ( System.Action callback ) : void

Implemented in the deriving class to initialize the part.

All requires scripts will be loaded before this method is invoked, and the 'Container' if available, will be set.

OnUpdateLayout ( ) : void

Implemented in deriving class to update the Part's layout.

Private Methods

Method Description
FireInitialized ( ) : void
FireLayoutRequired ( ) : void
GetEntryPoint ( Type type ) : string

Method Details

GetEntryPoint() public static method

Formats the entry point method for a part.
public static GetEntryPoint ( Type type, string methodName ) : string
type System.Type The type of the part.
methodName string The method name.
return string

Initialize() public method

Initializes the part.
public Initialize ( System.Action callback ) : void
callback System.Action Action to invoke upon completion.
return void

LoadHtml() protected method

Loads the HTML at the given URL into the Container.
protected LoadHtml ( string url, System.Action onComplete ) : void
url string The URL of the content to load.
onComplete System.Action Action to invoke upon completion.
return void

OnInitialize() protected abstract method

Implemented in the deriving class to initialize the part.
All requires scripts will be loaded before this method is invoked, and the 'Container' if available, will be set.
protected abstract OnInitialize ( System.Action callback ) : void
callback System.Action Action to invoke upon completion of initialization.
return void

OnUpdateLayout() protected method

Implemented in deriving class to update the Part's layout.
protected OnUpdateLayout ( ) : void
return void

UpdateLayout() public method

Forces an update to the Part's layout.
public UpdateLayout ( ) : void
return void