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 LCssDropDownMenu

TWebControl
   |
   --LCssDropDownMenu

LCssDropDownMenu class file class

LCssDropDownMenu class file displays a css driven menu on a Web page. You can set the alignment of the menu through the Horizontal property. If you do not have your own menu styling with themes, you may setUseStylingAsset to true.

Example:

  1. <com:TCssDropDownMenu Horizontal="false" />

Namespace: Lithron.Web.UI.WebControls

Properties

  • Horizontal, boolean, kept in viewstate
    Sets the alignment of the menu, true = horizontal and false = vertical.
  • CssHorizontalFile, string, kept in view state
    Sets the css file to be used for horizontal menus
  • CssVerticalFile, string, kept in view state
    Sets the css file to be used for vertical menus
  • CssDirectory, string, kept in view state
    Sets the css file directory
  • JsDirectory, string, kept in view state
    Set the javascript directory
  • JsFile, string, kept in view state
    Set the javascript filename
  • TopParentNodeCssClass, string, kept in view state
    Set the css class name of the top most TCssDropDownMenuNode
  • ParentNodeCssClass<b>, string, kept in view state <br>Set the css class name of parent (nodes with children nodes) TCssDropDownMenuNodes - <b>NodeCssClass, string, kept in view state
    Set the node css class name of ending TCssDropDownMenuNodes
  • DisabledCssClass, string kept in view state
    Set the node css class name of disabled TCssDropDownMenuNodes
Note, that the default css files need to be located under the root of your site unders js/cssdropdownmenu/css with cssdropdownmenu-horizontal.css and cssdropdownmenu-vertical.css controlling the aligments. There is also a small javascript file for IE non-support of the virtual tage hover. Based off the work of Son of Suckerfish by Patrick Griffiths and Dan Webb, see http://www.htmldog.com/articles/suckerfish/dropdowns/


Method Summary
protected  void
addAttributesToRender ( THtmlWriter $writer)
Adds attributes related to a hyperlink element to renderer.
string
string
string
string
string
string
boolean
string
string
string
string
string
protected  void
string
string
void
onLoad ( mixed $param)
Menu initialization
void
render ( mixed $writer)
Renders the menu, and itinitialize top parent nodes css.
void
setCssDirectory ( boolean $value)
void
setCssHorizontalAsset ( boolean $value)
void
setCssHorizontalFile ( boolean $value)
void
setCssVerticalAsset ( boolean $value)
void
setCssVerticalFile ( boolean $value)
void
setDisabledCssClass ( string $value)
void
setHorizontal ( boolean $value)
void
setJsAsset ( boolean $value)
void
setJsDirectory ( boolean $value)
void
setJsFile ( boolean $value)
void
setNodeCssClass ( string $value)
void
setParentNodeCssClass ( string $value)
void
setTopParentNodeCssClass ( string $value)
void
setUseStylingAsset ( boolean $value)

Method Details

addAttributesToRender

protected void addAttributesToRender (THtmlWriter $writer )

Adds attributes related to a hyperlink element to renderer.

Input
THtmlWriter$writerthe writer used for the rendering purpose
Output
Exception

getCssDirectory

public string getCssDirectory ()

Output
string the name of the css directory
Exception

getCssHorizontalAsset

public string getCssHorizontalAsset ()

Output
string the name of the css horizontal asset
Exception

getCssHorizontalFile

public string getCssHorizontalFile ()

Output
string the name of the css horizontal file
Exception

getCssVerticalAsset

public string getCssVerticalAsset ()

Output
string the name of the css vertical asset
Exception

getCssVerticalFile

public string getCssVerticalFile ()

Output
string the name of the css vertical file
Exception

getDisabledCssClass

public string getDisabledCssClass ()

Output
string the disabled menu node css class the css class name
Exception

getHorizontal

public boolean getHorizontal ()

Output
boolean the menu alignment true means a horizontal menu, false means a vertical menu
Exception

getJsAsset

public string getJsAsset ()

Output
string the name of the js asset
Exception

getJsDirectory

public string getJsDirectory ()

Output
string the name of the js directory
Exception

getJsFile

public string getJsFile ()

Output
string the name of the js file
Exception

getNodeCssClass

public string getNodeCssClass ()

Output
string the node css class name
Exception

getParentNodeCssClass

public string getParentNodeCssClass ()

Output
string the parent node css class name
Exception

getTagName

protected void getTagName ()

Output
Exception

getTopParentNodeCssClass

public string getTopParentNodeCssClass ()

Output
string the top level parent node css class name
Exception

getUseStylingAsset

public string getUseStylingAsset ()

Output
string the name of the js asset
Exception

onLoad

public void onLoad (mixed $param )

Menu initialization

Input
mixed$param

render

public void render (mixed $writer )

Renders the menu, and itinitialize top parent nodes css.

Input
mixed$writer

setCssDirectory

public void setCssDirectory (boolean $value )

Input
boolean$valuethe name of the css directory

setCssHorizontalAsset

public void setCssHorizontalAsset (boolean $value )

Input
boolean$valuethe name of the css horizontal asset

setCssHorizontalFile

public void setCssHorizontalFile (boolean $value )

Input
boolean$valuethe name of the css horizontal file

setCssVerticalAsset

public void setCssVerticalAsset (boolean $value )

Input
boolean$valuethe name of the css vertical asset

setCssVerticalFile

public void setCssVerticalFile (boolean $value )

Input
boolean$valuethe name of the css vertical file

setDisabledCssClass

public void setDisabledCssClass (string $value )

Input
string$valuethe menu alignment css class name

setHorizontal

public void setHorizontal (boolean $value )

Input
boolean$valuethe menu alignment true means a horizontal menu, false means a vertical menu

setJsAsset

public void setJsAsset (boolean $value )

Input
boolean$valuethe name of the js asset

setJsDirectory

public void setJsDirectory (boolean $value )

Input
boolean$valuethe name of the js directory

setJsFile

public void setJsFile (boolean $value )

Input
boolean$valuethe name of the js file

setNodeCssClass

public void setNodeCssClass (string $value )

Input
string$valuethe node css class name

setParentNodeCssClass

public void setParentNodeCssClass (string $value )

Input
string$valuethe parent node css class name

setTopParentNodeCssClass

public void setTopParentNodeCssClass (string $value )

Input
string$valuethe top level parent node css class name

setUseStylingAsset

public void setUseStylingAsset (boolean $value )

Input
boolean$valuethe name of the js asset