C# Class Open.Core.Part

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
FireInitialized ( ) : void
FireLayoutRequired ( ) : void
GetEntryPoint ( Type type ) : string

Method Details

GetEntryPoint() public static méthode

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.
Résultat string

Initialize() public méthode

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

LoadHtml() protected méthode

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.
Résultat void

OnInitialize() protected abstract méthode

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.
Résultat void

OnUpdateLayout() protected méthode

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

UpdateLayout() public méthode

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