System.Web.UI.WebControls
[ class tree: System.Web.UI.WebControls ] [ index: System.Web.UI.WebControls ] [ all elements ]

Class: LCssDropDownMenu

Source Location: /packages/LCssDropDownMenu/LCssDropDownMenu.php

Class Overview

TWebControl
   |
   --LCssDropDownMenu

TCssDropDownMenu class file class


Methods



Class Details

[line 66]
TCssDropDownMenu class file class

TCssDropDownMenu class file displays a css driven menu on a Web page. You can set the alignment of the menu through the Horizontal property.

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/




[ Top ]


Class Methods


constructor __construct [line 84]

LCssDropDownMenu __construct( )

Constructor.

Sets TagName property to 'ul'




[ Top ]

method getCssDirectory [line 161]

string getCssDirectory( )



Tags:

return:  the name of the css directory


[ Top ]

method getCssHorizontalAsset [line 264]

string getCssHorizontalAsset( )



Tags:

return:  the name of the css horizontal asset


[ Top ]

method getCssHorizontalFile [line 129]

string getCssHorizontalFile( )



Tags:

return:  the name of the css horizontal file


[ Top ]

method getCssVerticalAsset [line 282]

string getCssVerticalAsset( )



Tags:

return:  the name of the css vertical asset


[ Top ]

method getCssVerticalFile [line 145]

string getCssVerticalFile( )



Tags:

return:  the name of the css vertical file


[ Top ]

method getDisabledCssClass [line 94]

string getDisabledCssClass( )



Tags:

return:  the disabled menu node css class the css class name


[ Top ]

method getHorizontal [line 112]

boolean getHorizontal( )



Tags:

return:  the menu alignment true means a horizontal menu, false means a vertical menu


[ Top ]

method getJsAsset [line 300]

string getJsAsset( )



Tags:

return:  the name of the js asset


[ Top ]

method getJsDirectory [line 177]

string getJsDirectory( )



Tags:

return:  the name of the js directory


[ Top ]

method getJsFile [line 193]

string getJsFile( )



Tags:

return:  the name of the js file


[ Top ]

method getNodeCssClass [line 241]

string getNodeCssClass( )



Tags:

return:  the node css class name


[ Top ]

method getParentNodeCssClass [line 225]

string getParentNodeCssClass( )



Tags:

return:  the parent node css class name


[ Top ]

method getTagName [line 70]

void getTagName( )



Tags:

access:  protected


[ Top ]

method getTopParentNodeCssClass [line 209]

string getTopParentNodeCssClass( )



Tags:

return:  the top level parent node css class name


[ Top ]

method onLoad [line 335]

void onLoad( mixed $param)

Menu initialization



[ Top ]

method render [line 311]

void render( mixed $writer)

Renders the menu, and itinitialize top parent nodes css.



[ Top ]

method setCssDirectory [line 169]

void setCssDirectory( boolean $value)



Parameters:

boolean   $value   the name of the css directory

[ Top ]

method setCssHorizontalAsset [line 257]

void setCssHorizontalAsset( boolean $value)



Parameters:

boolean   $value   the name of the css horizontal asset

[ Top ]

method setCssHorizontalFile [line 137]

void setCssHorizontalFile( boolean $value)



Parameters:

boolean   $value   the name of the css horizontal file

[ Top ]

method setCssVerticalAsset [line 274]

void setCssVerticalAsset( boolean $value)



Parameters:

boolean   $value   the name of the css vertical asset

[ Top ]

method setCssVerticalFile [line 153]

void setCssVerticalFile( boolean $value)



Parameters:

boolean   $value   the name of the css vertical file

[ Top ]

method setDisabledCssClass [line 103]

void setDisabledCssClass( string $value)



Parameters:

string   $value   the menu alignment css class name

[ Top ]

method setHorizontal [line 121]

void setHorizontal( boolean $value)



Parameters:

boolean   $value   the menu alignment true means a horizontal menu, false means a vertical menu

[ Top ]

method setJsAsset [line 292]

void setJsAsset( boolean $value)



Parameters:

boolean   $value   the name of the js asset

[ Top ]

method setJsDirectory [line 185]

void setJsDirectory( boolean $value)



Parameters:

boolean   $value   the name of the js directory

[ Top ]

method setJsFile [line 201]

void setJsFile( boolean $value)



Parameters:

boolean   $value   the name of the js file

[ Top ]

method setNodeCssClass [line 249]

void setNodeCssClass( string $value)



Parameters:

string   $value   the node css class name

[ Top ]

method setParentNodeCssClass [line 233]

void setParentNodeCssClass( string $value)



Parameters:

string   $value   the parent node css class name

[ Top ]

method setTagName [line 75]

void setTagName( mixed $value)



[ Top ]

method setTopParentNodeCssClass [line 217]

void setTopParentNodeCssClass( string $value)



Parameters:

string   $value   the top level parent node css class name

[ Top ]


Documentation generated on Tue, 20 Jun 2006 05:15:05 +0200 by phpDocumentor 1.3.0RC4