C# 클래스 Open.Core.Controls.Buttons.ButtonView

Base class for buttons.
상속: ViewBase, IButtonView
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AllStates ButtonState[]
DownAndPressed ButtonState[]
NotDownOrPressed ButtonState[]

보호된 프로퍼티들

프로퍼티 타입 설명
clickMask jQueryObject

공개 메소드들

메소드 설명
CssForState ( int layer, ButtonState state, string cssClasses, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void

Sets the CSS class(es) to use for a given layer.

CssForStates ( int layer, ButtonState states, string cssClasses, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void

Sets the CSS class(es) to use for a given layer.

TemplateForState ( int layer, ButtonState state, string templateSelector, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void

Creates a Template with the specified selector and adds it as content for the given state.

TemplateForStates ( int layer, ButtonState states, string templateSelector, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void

Creates a Template with the specified selector and adds it as content for the given state.

UpdateLayout ( ) : void

Updates the visual state of the button.

보호된 메소드들

메소드 설명
AddRequiredTemplate ( string selector, string url ) : void

Adds a template to the list of resoures to download (if it's not already available in the page).

Aftering adding one or more Templates Url's call the 'DownloadTemplates' method.

ButtonView ( IButton model, jQueryObject container ) : System

Constructor.

ButtonView ( IButton model, jQueryObject container, jQueryObject clickMask ) : System

Constructor.

ClearContent ( ) : void

Clears all CSS and Template content which has been added to the button.

CreateAndAppendContainer ( string cssClass ) : jQueryObject
DownloadTemplates ( System.Action onComplete ) : void

Downloads the set of required templates that were added via the 'AddRequiredTemplate' method.

OnDisposed ( ) : void

Destructor.

OnRendered ( ) : void

Invoked immediately after the button has rendered it's state.

OnRendering ( ) : void

Invoked immediately before the button has rendered it's state.

OnUpdateLayout ( ) : void

Implement layout logic in deriving classes.

SyncDimension ( SizeDimension dimension ) : void

Syncs the specified of the button with the model (if it has size values. See 'NoSize' constant).

SyncSize ( ) : void

Syncs the size of the button with the model (if it has size values. See 'NoSize' constant).

비공개 메소드들

메소드 설명
ButtonView ( ) : System
ButtonView ( IButton model ) : System
CreateContainer ( string cssClass ) : jQueryObject
CssForState ( int layer, ButtonState state, string cssClasses ) : void
CssForStates ( int layer, ButtonState states, string cssClasses ) : void
FireStateChanged ( ) : void
InitContainer ( jQueryObject container ) : jQueryObject
OnEventControllerPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnKeyPress ( int keyCode ) : void
OnLayoutInvalidated ( object sender, EventArgs e ) : void
OnModelPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
SyncCanFocus ( ) : void
TemplateForState ( int layer, ButtonState state, string templateSelector ) : void
TemplateForStates ( int layer, ButtonState states, string templateSelector ) : void

메소드 상세

AddRequiredTemplate() 보호된 메소드

Adds a template to the list of resoures to download (if it's not already available in the page).
Aftering adding one or more Templates Url's call the 'DownloadTemplates' method.
protected AddRequiredTemplate ( string selector, string url ) : void
selector string The CSS selector for the template.
url string The URL to download the template(s) from.
리턴 void

ButtonView() 보호된 메소드

Constructor.
protected ButtonView ( IButton model, jQueryObject container ) : System
model IButton The logical model of the button
container jQueryObject The HTML container of the button.
리턴 System

ButtonView() 보호된 메소드

Constructor.
protected ButtonView ( IButton model, jQueryObject container, jQueryObject clickMask ) : System
model IButton The logical model of the button
container jQueryObject The HTML container of the button.
clickMask jQueryObject The element used catch mouse events.
리턴 System

ClearContent() 보호된 메소드

Clears all CSS and Template content which has been added to the button.
protected ClearContent ( ) : void
리턴 void

CreateAndAppendContainer() 보호된 메소드

protected CreateAndAppendContainer ( string cssClass ) : jQueryObject
cssClass string
리턴 jQueryObject

CssForState() 공개 메소드

Sets the CSS class(es) to use for a given layer.
public CssForState ( int layer, ButtonState state, string cssClasses, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void
layer int The layer the state is rendered on (0 lowest, higher values fall in front of lower values)
state ButtonState The state the CSS classes apply to.
cssClasses string A string containing one or more CSS class names.
enabledCondition EnabledCondition The enabled-related conditions for which button content applies.
focusCondition FocusCondition The focus-related conditions for which button content applies.
리턴 void

CssForStates() 공개 메소드

Sets the CSS class(es) to use for a given layer.
public CssForStates ( int layer, ButtonState states, string cssClasses, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void
layer int The layer the state is rendered on (0 lowest, higher values fall in front of lower values)
states ButtonState The state(s) the CSS classes apply to.
cssClasses string A string containing one or more CSS class names.
enabledCondition EnabledCondition The enabled-related conditions for which button content applies.
focusCondition FocusCondition The focus-related conditions for which button content applies.
리턴 void

DownloadTemplates() 보호된 메소드

Downloads the set of required templates that were added via the 'AddRequiredTemplate' method.
protected DownloadTemplates ( System.Action onComplete ) : void
onComplete System.Action Action which is invoked when the templates have completed downloading.
리턴 void

OnDisposed() 보호된 메소드

Destructor.
protected OnDisposed ( ) : void
리턴 void

OnRendered() 보호된 메소드

Invoked immediately after the button has rendered it's state.
protected OnRendered ( ) : void
리턴 void

OnRendering() 보호된 메소드

Invoked immediately before the button has rendered it's state.
protected OnRendering ( ) : void
리턴 void

OnUpdateLayout() 보호된 메소드

Implement layout logic in deriving classes.
protected OnUpdateLayout ( ) : void
리턴 void

SyncDimension() 보호된 메소드

Syncs the specified of the button with the model (if it has size values. See 'NoSize' constant).
protected SyncDimension ( SizeDimension dimension ) : void
dimension SizeDimension The size dimension to sync.
리턴 void

SyncSize() 보호된 메소드

Syncs the size of the button with the model (if it has size values. See 'NoSize' constant).
protected SyncSize ( ) : void
리턴 void

TemplateForState() 공개 메소드

Creates a Template with the specified selector and adds it as content for the given state.
public TemplateForState ( int layer, ButtonState state, string templateSelector, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void
layer int The layer the state is rendered on (0 lowest, higher values fall in front of lower values)
state ButtonState The state the template applies to.
templateSelector string The CSS selector where the template can be found.
enabledCondition EnabledCondition The enabled-related conditions for which button content applies.
focusCondition FocusCondition The focus-related conditions for which button content applies.
리턴 void

TemplateForStates() 공개 메소드

Creates a Template with the specified selector and adds it as content for the given state.
public TemplateForStates ( int layer, ButtonState states, string templateSelector, EnabledCondition enabledCondition, FocusCondition focusCondition ) : void
layer int The layer the state is rendered on (0 lowest, higher values fall in front of lower values)
states ButtonState The states the template applies to.
templateSelector string The CSS selector where the template can be found.
enabledCondition EnabledCondition The enabled-related conditions for which button content applies.
focusCondition FocusCondition The focus-related conditions for which button content applies.
리턴 void

UpdateLayout() 공개 메소드

Updates the visual state of the button.
public UpdateLayout ( ) : void
리턴 void

프로퍼티 상세

AllStates 공개적으로 정적으로 프로퍼티

public static ButtonState[] AllStates
리턴 ButtonState[]

DownAndPressed 공개적으로 정적으로 프로퍼티

public static ButtonState[] DownAndPressed
리턴 ButtonState[]

NotDownOrPressed 공개적으로 정적으로 프로퍼티

public static ButtonState[] NotDownOrPressed
리턴 ButtonState[]

clickMask 보호되어 있는 프로퍼티

protected jQueryObject clickMask
리턴 jQueryObject