C# Class Open.Core.Controls.Buttons.LayeredButtonView

A complex button which can render multiple layers of HTML from Templates.
Inheritance: ButtonView
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
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.

LayeredButtonView ( IButton model, jQueryObject container ) : System

Constructor.

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.

Protected Methods

Method Description
ClearContent ( ) : void

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

OnDisposed ( ) : void
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

Private Methods

Method Description
CssForState ( int layer, ButtonState state, string cssClasses ) : void
CssForStates ( int layer, ButtonState states, string cssClasses ) : void
LayeredButtonView ( ) : System
LayeredButtonView ( IButton model ) : System
TemplateForState ( int layer, ButtonState state, string templateSelector ) : void
TemplateForStates ( int layer, ButtonState states, string templateSelector ) : void

Method Details

ClearContent() protected method

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

CssForState() public method

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.
return void

CssForStates() public method

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.
return void

LayeredButtonView() public method

Constructor.
public LayeredButtonView ( IButton model, jQueryObject container ) : System
model IButton The logical model of the button
container jQueryObject The HTML container of the button.
return System

OnDisposed() protected method

protected OnDisposed ( ) : void
return void

OnRendered() protected method

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

OnRendering() protected method

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

OnUpdateLayout() protected method

protected OnUpdateLayout ( ) : void
return void

TemplateForState() public method

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.
return void

TemplateForStates() public method

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.
return void