Packages:
System
System.Collections
System.Data
System.I18N
System.Util
System.Web.Services
System.Web.UI.ActiveControls
System.Web.UI.WebControls


Classes:
Common
   LAnchorForm
   LPoweredBy
CMS.Support
   LBaseBrick
   LBrick
   LCell
CMS
   LContentBrick
   LMediaBrick
   LNoteBrick
Configuration
   LCultureChooser
   LStyleSheetThemeChooser
Debug
   LDummyBrick
Graphics
   LFontgen
   LImage
   LThickboxImage
   LThickboxLink
Links
   LPopupLink
   LServiceHyperLink

Class LCssDropDownMenuNode

TWebControl
   |
   --LCssDropDownMenuNode

LCssDropDownMenuNode class

LCssDropDownMenuNode displays a css driven menu item. You can set the link through the through the LinkUrl property. You can set the Text displayed for the item through the Text property. You can set the roles that are allowed to access the item through the Roles property.

Example:

  1. <com:TCssDropDownMenuNode ID="ViewUsers" LinkUrl="?page=ViewUsersPage"
  2. Text="View Users" Roles="root,admin" BorderColor="green" BorderStyle="solid" BorderWidth="1" BackColor="white"/>

Namespace: Lithron.Web.UI.WebControls

Properties

  • LinkUrl, string, kept in viewstate
    Set the link for the item.
  • Text, string, kept in viewstate
    Set the text for the item.
  • Roles, string, kept in viewstate
    The user roles allowed to view the item.


Constructor Summary
public
Constructor.

Method Summary
string
void
string
string
string
string
string
gets
protected  void
string
string
getText ()
string
bool
void
onPreRender ( mixed $param)
void
renderContents ( mixed $writer)
Renders the menu.
void
setDisabledNodeCssClass ( string $value)
void
setIsSelected ( mixed $value)
void
setLinkId ( string $value)
void
setLinkUrl ( string $value)
void
setNodeCssClass ( string $value)
void
setParentNodeCssClass ( string $value)
void
setRoles ( string $value)
void
setSelectedPath ( sets $value)
void
setTagName ( mixed $value)
void
setTarget ( string $value)
void
setText ( string $value)
void
setTopParent ( bool $value)
void
setTopParentNodeCssClass ( mixed $value)
#param string the top parent css class

Constructor Details

__construct

public __construct

Constructor.

Sets TagName property to 'li'


Method Details

getDisabledNodeCssClass

public string getDisabledNodeCssClass ()

Output
string the node css class
Exception

getIsSelected

public void getIsSelected ()

Output
Exception

getLinkId

public string getLinkId ()

Output
string the LinkId of the node (service)
Exception

getLinkUrl

public string getLinkUrl ()

Output
string the LinkUrl of the node
Exception

getNodeCssClass

public string getNodeCssClass ()

Output
string the node css class
Exception

getParentNodeCssClass

public string getParentNodeCssClass ()

Output
string the parent css class
Exception

getRoles

public string getRoles ()

Output
string the Roles allowd to view this element
Exception

getSelectedPath

public gets getSelectedPath ()

Output
gets selected status
Exception

getTagName

protected void getTagName ()

Output
Exception

getTarget

public string getTarget ()

Output
string the link Target
Exception

getText

public string getText ()

Output
string the Text of the node
Exception

getTopParentNodeCssClass

public string getTopParentNodeCssClass ()

Output
string the top parent css class
Exception

isTopParent

public bool isTopParent ()

Output
bool top parent flag
Exception

onPreRender

public void onPreRender (mixed $param )

Input
mixed$param

renderContents

public void renderContents (mixed $writer )

Renders the menu.

Will go through all TCssDropDownMenuNode children and render them at the correct place.

Input
mixed$writer
Output
Exception

setDisabledNodeCssClass

public void setDisabledNodeCssClass (string $value )

Input
string$valuethe node css class
Output
Exception

setIsSelected

public void setIsSelected (mixed $value )

Input
mixed$value
Output
Exception

setLinkId

public void setLinkId (string $value )

Input
string$valuethe LinkId of the node (service)
Output
Exception

setLinkUrl

public void setLinkUrl (string $value )

Input
string$valuethe LinkUrl of the node
Output
Exception

setNodeCssClass

public void setNodeCssClass (string $value )

Input
string$valuethe node css class
Output
Exception

setParentNodeCssClass

public void setParentNodeCssClass (string $value )

Input
string$valuethe parent css class
Output
Exception

setRoles

public void setRoles (string $value )

Input
string$valuethe Roles allowed to view this element
Output
Exception

setSelectedPath

public void setSelectedPath (sets $value )

Input
sets$valueselected status
Output
Exception

setTagName

public void setTagName (mixed $value )

Input
mixed$value

setTarget

public void setTarget (string $value )

Input
string$valuethe link target
Output
Exception

setText

public void setText (string $value )

Input
string$valuethe Text of the node
Output
Exception

setTopParent

public void setTopParent (bool $value )

Input
bool$valuethe top parent flag
Output
Exception

setTopParentNodeCssClass

public void setTopParentNodeCssClass (mixed $value )

#param string the top parent css class

Input
mixed$value
Output
Exception