C# Class Fluqi.Widget.jSelectMenuItem.SelectMenuItem

Defines the logic and rendering of a single option.
Inheritance: SelectMenuItemBase
Mostrar archivo Open project: toepoke/Fluqi Class Usage Examples

Public Methods

Method Description
SelectMenuItem ( SelectMenuItemBase parent ) : System

Constructor for a child menu option

SelectMenuItem ( jSelectMenu owner ) : System

Constructor

SetDisabled ( ) : SelectMenuItem

Sets this menu item as disabled

SetIcon ( Core value ) : SelectMenuItem

Sets the icon which appears to the left of the menu item. This is one of the built in icons provdided by the jQuery UI framework.

SetIcon ( string cssClass ) : SelectMenuItem

Sets the icon which appears to the left of the menu title.

Use this for adding your own icon. The "ui-icon" jQuery UI class will still be added first (so you can use this for sizing), but the "ui-icon" prefix won't be added in front of your CSS class.

SetSelected ( bool selected ) : SelectMenuItem

Flags that this item is selected (or not)

SetTag ( string value ) : SelectMenuItem

Sets the tag to use (should only be "OPTION" really)

SetTitle ( string title ) : SelectMenuItem

Changes the title that appears in the menu item.

Dunno why you'd want to do this after it's already been defined when adding the menu item but I'm leaving it here if only for the sake of consistency with the API.

SetValue ( object value ) : SelectMenuItem

Changes the value of the menu item.

Protected Methods

Method Description
BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

Builds up the Html for a select menuitem

RenderChildren ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

Renders the list of SelectMenuItems to the string builder. Note: For the SelectMenu this only happens for the root (i.e. this isn't recursive like the Menu control)

Reset ( ) : void

Resets the object back to a known state.

Private Methods

Method Description
RenderCloseItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
RenderOpenItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
RenderRootCloseItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
RenderRootOpenItem ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void

Method Details

BuildTagHtml() protected method

Builds up the Html for a select menuitem
protected BuildTagHtml ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
sb Fluqi.Extension.Helpers.jStringBuilder
return void

RenderChildren() protected method

Renders the list of SelectMenuItems to the string builder. Note: For the SelectMenu this only happens for the root (i.e. this isn't recursive like the Menu control)
protected RenderChildren ( Fluqi.Extension.Helpers.jStringBuilder sb ) : void
sb Fluqi.Extension.Helpers.jStringBuilder StringBuilder
return void

Reset() protected method

Resets the object back to a known state.
protected Reset ( ) : void
return void

SelectMenuItem() public method

Constructor for a child menu option
public SelectMenuItem ( SelectMenuItemBase parent ) : System
parent SelectMenuItemBase SelectMenuItem object _this_ item belongs to
return System

SelectMenuItem() public method

Constructor
public SelectMenuItem ( jSelectMenu owner ) : System
owner jSelectMenu SelectMenu object _this_ item belongs to
return System

SetDisabled() public method

Sets this menu item as disabled
public SetDisabled ( ) : SelectMenuItem
return SelectMenuItem

SetIcon() public method

Sets the icon which appears to the left of the menu item. This is one of the built in icons provdided by the jQuery UI framework.
public SetIcon ( Core value ) : SelectMenuItem
value Core
return SelectMenuItem

SetIcon() public method

Sets the icon which appears to the left of the menu title.
Use this for adding your own icon. The "ui-icon" jQuery UI class will still be added first (so you can use this for sizing), but the "ui-icon" prefix won't be added in front of your CSS class.
public SetIcon ( string cssClass ) : SelectMenuItem
cssClass string
return SelectMenuItem

SetSelected() public method

Flags that this item is selected (or not)
public SetSelected ( bool selected ) : SelectMenuItem
selected bool selected value
return SelectMenuItem

SetTag() public method

Sets the tag to use (should only be "OPTION" really)
public SetTag ( string value ) : SelectMenuItem
value string
return SelectMenuItem

SetTitle() public method

Changes the title that appears in the menu item.
Dunno why you'd want to do this after it's already been defined when adding the menu item but I'm leaving it here if only for the sake of consistency with the API.
public SetTitle ( string title ) : SelectMenuItem
title string
return SelectMenuItem

SetValue() public method

Changes the value of the menu item.
public SetValue ( object value ) : SelectMenuItem
value object value
return SelectMenuItem