C# Class Open.Core.ViewBase

Base for classes that represent, manage and construct views ("UI").
Inheritance: ModelBase, IView, ISize
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode Description
FireGotFocus ( ) : void
FireLostFocus ( ) : void
GetInsertException ( string cssSeletor, string message ) : Exception
SetSizeInternal ( int value, SizeDimension dimension, bool withEvent ) : void
SyncVisibility ( bool isVisible ) : void
ViewBase ( ) : System

Method Details

ChangeFocusElement() protected méthode

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

FireIsEnabledChanged() protected méthode

protected FireIsEnabledChanged ( ) : void
Résultat void

FireIsVisibleChanged() protected méthode

protected FireIsVisibleChanged ( ) : void
Résultat void

FireLoaded() protected méthode

protected FireLoaded ( ) : void
Résultat void

FireSizeChanged() protected méthode

protected FireSizeChanged ( ) : void
Résultat void

GetAttribute() public méthode

public GetAttribute ( string attribute ) : string
attribute string
Résultat string

GetCss() public méthode

public GetCss ( string attribute ) : string
attribute string
Résultat string

Insert() public méthode

public Insert ( string cssSeletor, InsertMode mode ) : void
cssSeletor string
mode InsertMode
Résultat void

OnAfterInsert() protected méthode

Invoked immediately after the insertion occurs via the 'Insert' method.
protected OnAfterInsert ( InsertMode mode ) : void
mode InsertMode The strategy used for the insertion.
Résultat void

OnBeforeInsert() protected méthode

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

OnDisposed() protected méthode

Destructor.
protected OnDisposed ( ) : void
Résultat void

OnIsEnabledChanged() protected méthode

protected OnIsEnabledChanged ( ) : void
Résultat void

OnIsVisibleChanged() protected méthode

protected OnIsVisibleChanged ( ) : void
Résultat void

OnIsVisibleChanging() protected méthode

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

OnSizeChanged() protected méthode

protected OnSizeChanged ( ) : void
Résultat void

OnUpdateLayout() protected méthode

protected OnUpdateLayout ( ) : void
Résultat void

RetrieveHtml() protected méthode

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

SetAttribute() public méthode

public SetAttribute ( string attribute, string value ) : void
attribute string
value string
Résultat void

SetCss() public méthode

public SetCss ( string attribute, string value ) : void
attribute string
value string
Résultat void

SetSize() public méthode

public SetSize ( int width, int height ) : void
width int
height int
Résultat void

UpdateLayout() public méthode

public UpdateLayout ( ) : void
Résultat void

ViewBase() protected méthode

Constructor.
protected ViewBase ( jQueryObject container ) : System
container jQueryObject The root HTML element of the control (if null a
is generated).
Résultat System