C# Class Fluqi.Widget.jSelectMenuItem.SelectMenuItem

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

RenderChildren() protected méthode

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
Résultat void

Reset() protected méthode

Resets the object back to a known state.
protected Reset ( ) : void
Résultat void

SelectMenuItem() public méthode

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

SelectMenuItem() public méthode

Constructor
public SelectMenuItem ( jSelectMenu owner ) : System
owner jSelectMenu SelectMenu object _this_ item belongs to
Résultat System

SetDisabled() public méthode

Sets this menu item as disabled
public SetDisabled ( ) : SelectMenuItem
Résultat SelectMenuItem

SetIcon() public méthode

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
Résultat SelectMenuItem

SetIcon() public méthode

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
Résultat SelectMenuItem

SetSelected() public méthode

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

SetTag() public méthode

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

SetTitle() public méthode

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
Résultat SelectMenuItem

SetValue() public méthode

Changes the value of the menu item.
public SetValue ( object value ) : SelectMenuItem
value object value
Résultat SelectMenuItem