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

Base for classes that represent, manage and construct views ("UI").
Наследование: ModelBase, IView, ISize
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetAttribute ( string attribute ) : string
GetCss ( string attribute ) : string
Insert ( string cssSeletor, InsertMode mode ) : void
SetAttribute ( string attribute, string value ) : void
SetCss ( string attribute, string value ) : void
SetSize ( int width, int height ) : void
UpdateLayout ( ) : void

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

Метод Описание
ChangeFocusElement ( jQueryObject element ) : void

Changes the element that is used for focus control.

By default this is the 'Container', however if a child element within the control is the primary reciever of focus use this method to assign it as such.

FireIsEnabledChanged ( ) : void
FireIsVisibleChanged ( ) : void
FireLoaded ( ) : void
FireSizeChanged ( ) : void
OnAfterInsert ( InsertMode mode ) : void

Invoked immediately after the insertion occurs via the 'Insert' method.

OnBeforeInsert ( jQueryObject targetElement, InsertMode mode ) : void

Invoked immediately before the insertion occurs via the 'Insert' method.

Use this to extract any meta-data from the original element before it is removed from the DOM.

OnDisposed ( ) : void

Destructor.

OnIsEnabledChanged ( ) : void
OnIsVisibleChanged ( ) : void
OnIsVisibleChanging ( bool isVisible ) : bool

Invoked when the 'IsVisible' property is causing the visibility to change.

Override this method to intercept the visibility value which is ultmately used to chance the CSS value. For instance, this is useful when you want to retain the 'IsVisible' property value as a logical value, but cause the control to be hidden like when a tab should be shown (logically), but is overflowing off the screen so should be hidden.

OnSizeChanged ( ) : void
OnUpdateLayout ( ) : void
RetrieveHtml ( string url, System.Action onComplete ) : void

Inserts the HTML from the specified URL.

ViewBase ( jQueryObject container ) : System

Constructor.

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

Метод Описание
FireGotFocus ( ) : void
FireLostFocus ( ) : void
GetInsertException ( string cssSeletor, string message ) : Exception
SetSizeInternal ( int value, SizeDimension dimension, bool withEvent ) : void
SyncVisibility ( bool isVisible ) : void
ViewBase ( ) : System

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

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

Changes the element that is used for focus control.
By default this is the 'Container', however if a child element within the control is the primary reciever of focus use this method to assign it as such.
protected ChangeFocusElement ( jQueryObject element ) : void
element jQueryObject The child element that is the primary reciever of focus.
Результат void

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

protected FireIsEnabledChanged ( ) : void
Результат void

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

protected FireIsVisibleChanged ( ) : void
Результат void

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

protected FireLoaded ( ) : void
Результат void

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

protected FireSizeChanged ( ) : void
Результат void

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

public GetAttribute ( string attribute ) : string
attribute string
Результат string

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

public GetCss ( string attribute ) : string
attribute string
Результат string

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

public Insert ( string cssSeletor, InsertMode mode ) : void
cssSeletor string
mode InsertMode
Результат void

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

Invoked immediately after the insertion occurs via the 'Insert' method.
protected OnAfterInsert ( InsertMode mode ) : void
mode InsertMode The strategy used for the insertion.
Результат void

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

Invoked immediately before the insertion occurs via the 'Insert' method.
Use this to extract any meta-data from the original element before it is removed from the DOM.
protected OnBeforeInsert ( jQueryObject targetElement, InsertMode mode ) : void
targetElement jQueryObject The element being replaced.
mode InsertMode The strategy used for the insertion.
Результат void

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

Destructor.
protected OnDisposed ( ) : void
Результат void

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

protected OnIsEnabledChanged ( ) : void
Результат void

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

protected OnIsVisibleChanged ( ) : void
Результат void

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

Invoked when the 'IsVisible' property is causing the visibility to change.
Override this method to intercept the visibility value which is ultmately used to chance the CSS value. For instance, this is useful when you want to retain the 'IsVisible' property value as a logical value, but cause the control to be hidden like when a tab should be shown (logically), but is overflowing off the screen so should be hidden.
protected OnIsVisibleChanging ( bool isVisible ) : bool
isVisible bool The IsVisible value.
Результат bool

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

protected OnSizeChanged ( ) : void
Результат void

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

protected OnUpdateLayout ( ) : void
Результат void

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

Inserts the HTML from the specified URL.
protected RetrieveHtml ( string url, System.Action onComplete ) : void
url string The URL of the HTML content to retrieve.
onComplete System.Action Action to invoke upon completion.
Результат void

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

public SetAttribute ( string attribute, string value ) : void
attribute string
value string
Результат void

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

public SetCss ( string attribute, string value ) : void
attribute string
value string
Результат void

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

public SetSize ( int width, int height ) : void
width int
height int
Результат void

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

public UpdateLayout ( ) : void
Результат void

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

Constructor.
protected ViewBase ( jQueryObject container ) : System
container jQueryObject The root HTML element of the control (if null a
is generated).
Результат System