C# Класс Open.Core.Part

Represents a part of an application (which may or may not have UI associated with it).
Наследование: ModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
FireInitialized ( ) : void
FireLayoutRequired ( ) : void
GetEntryPoint ( Type type ) : string

Описание методов

GetEntryPoint() публичный статический Метод

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.
Результат string

Initialize() публичный Метод

Initializes the part.
public Initialize ( System.Action callback ) : void
callback System.Action Action to invoke upon completion.
Результат void

LoadHtml() защищенный Метод

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.
Результат void

OnInitialize() защищенный абстрактный Метод

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.
Результат void

OnUpdateLayout() защищенный Метод

Implemented in deriving class to update the Part's layout.
protected OnUpdateLayout ( ) : void
Результат void

UpdateLayout() публичный Метод

Forces an update to the Part's layout.
public UpdateLayout ( ) : void
Результат void