C# 클래스 Open.Core.ViewBase

Base for classes that represent, manage and construct views ("UI").
상속: ModelBase, IView, ISize
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL 1 사용 예제들

공개 메소드들

메소드 설명
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