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

Class: LCssDropDownMenu

Source Location: /packages/components/LCssDropDownMenu.php

Class Overview

TWebControl
   |
   --LCssDropDownMenu

LCssDropDownMenu class file class


Methods



Class Details

[line 70]
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/




[ Top ]


Class Methods


method addAttributesToRender [line 81]

void addAttributesToRender( THtmlWriter $writer)

Adds attributes related to a hyperlink element to renderer.



Tags:

access:  protected


Parameters:

THtmlWriter   $writer   the writer used for the rendering purpose

[ Top ]

method getCssDirectory [line 196]

string getCssDirectory( )



Tags:

return:  the name of the css directory


[ Top ]

method getCssHorizontalAsset [line 299]

string getCssHorizontalAsset( )



Tags:

return:  the name of the css horizontal asset


[ Top ]

method getCssHorizontalFile [line 164]

string getCssHorizontalFile( )



Tags:

return:  the name of the css horizontal file


[ Top ]

method getCssVerticalAsset [line 317]

string getCssVerticalAsset( )



Tags:

return:  the name of the css vertical asset


[ Top ]

method getCssVerticalFile [line 180]

string getCssVerticalFile( )



Tags:

return:  the name of the css vertical file


[ Top ]

method getDisabledCssClass [line 129]

string getDisabledCssClass( )



Tags:

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


[ Top ]

method getHorizontal [line 147]

boolean getHorizontal( )



Tags:

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


[ Top ]

method getJsAsset [line 335]

string getJsAsset( )



Tags:

return:  the name of the js asset


[ Top ]

method getJsDirectory [line 212]

string getJsDirectory( )



Tags:

return:  the name of the js directory


[ Top ]

method getJsFile [line 228]

string getJsFile( )



Tags:

return:  the name of the js file


[ Top ]

method getNodeCssClass [line 276]

string getNodeCssClass( )



Tags:

return:  the node css class name


[ Top ]

method getParentNodeCssClass [line 260]

string getParentNodeCssClass( )



Tags:

return:  the parent node css class name


[ Top ]

method getTagName [line 72]

void getTagName( )



Tags:

access:  protected


[ Top ]

method getTopParentNodeCssClass [line 244]

string getTopParentNodeCssClass( )



Tags:

return:  the top level parent node css class name


[ Top ]

method getUseStylingAsset [line 353]

string getUseStylingAsset( )



Tags:

return:  the name of the js asset


[ Top ]

method onLoad [line 363]

void onLoad( $param)

Menu initialization



Parameters:

   $param  

[ Top ]

method render [line 103]

void render( $writer)

Renders the menu, and itinitialize top parent nodes css.



Parameters:

   $writer  

[ Top ]

method setCssDirectory [line 204]

void setCssDirectory( boolean $value)



Parameters:

boolean   $value   the name of the css directory

[ Top ]

method setCssHorizontalAsset [line 292]

void setCssHorizontalAsset( boolean $value)



Parameters:

boolean   $value   the name of the css horizontal asset

[ Top ]

method setCssHorizontalFile [line 172]

void setCssHorizontalFile( boolean $value)



Parameters:

boolean   $value   the name of the css horizontal file

[ Top ]

method setCssVerticalAsset [line 309]

void setCssVerticalAsset( boolean $value)



Parameters:

boolean   $value   the name of the css vertical asset

[ Top ]

method setCssVerticalFile [line 188]

void setCssVerticalFile( boolean $value)



Parameters:

boolean   $value   the name of the css vertical file

[ Top ]

method setDisabledCssClass [line 138]

void setDisabledCssClass( string $value)



Parameters:

string   $value   the menu alignment css class name

[ Top ]

method setHorizontal [line 156]

void setHorizontal( boolean $value)



Parameters:

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

[ Top ]

method setJsAsset [line 327]

void setJsAsset( boolean $value)



Parameters:

boolean   $value   the name of the js asset

[ Top ]

method setJsDirectory [line 220]

void setJsDirectory( boolean $value)



Parameters:

boolean   $value   the name of the js directory

[ Top ]

method setJsFile [line 236]

void setJsFile( boolean $value)



Parameters:

boolean   $value   the name of the js file

[ Top ]

method setNodeCssClass [line 284]

void setNodeCssClass( string $value)



Parameters:

string   $value   the node css class name

[ Top ]

method setParentNodeCssClass [line 268]

void setParentNodeCssClass( string $value)



Parameters:

string   $value   the parent node css class name

[ Top ]

method setTopParentNodeCssClass [line 252]

void setTopParentNodeCssClass( string $value)



Parameters:

string   $value   the top level parent node css class name

[ Top ]

method setUseStylingAsset [line 345]

void setUseStylingAsset( boolean $value)



Parameters:

boolean   $value   the name of the js asset

[ Top ]


Documentation generated on Sun, 25 Feb 2007 16:10:08 +0100 by phpDocumentor 1.3.1