C# Класс Open.Core.Controls.Buttons.LayeredButtonView

A complex button which can render multiple layers of HTML from Templates.
Наследование: ButtonView
Показать файл Открыть проект

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

Метод Описание
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.

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

Метод Описание
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

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

Метод Описание
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

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

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

Clears all CSS and Template content which has been added to the button.
protected ClearContent ( ) : void
Результат void

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

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

Constructor.
public LayeredButtonView ( IButton model, jQueryObject container ) : System
model IButton The logical model of the button
container jQueryObject The HTML container of the button.
Результат System

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

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() защищенный Метод

protected OnUpdateLayout ( ) : 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