Class UnivMOMenuItem

UnivMOMenuItem

public class UnivMOMenuItem

Private class for use by UnivMOMenu.

See Also:
UnivMOMenu

Constructor Summary
UnivMOMenuItem(var $title, var $url, var $target, var $inCellColor)
           
 
Method Summary
 string getItemColor()
          Returns the background color of the item.
 string getItemTarget()
          Returns the target as the caller provided it.
 string getItemTitle()
          Returns the text of the item.
 string getItemURL()
          Returns the URL of the item, as the caller provided it.
 string getLinkAttributes()
          Returns the attribute text appropriate for an <a tag.
 

Constructor Detail

UnivMOMenuItem

public UnivMOMenuItem(var $title,
                      var $url,
                      var $target,
                      var $inCellColor)
Method Detail

getItemTitle

public string getItemTitle()
Returns the text of the item. The user may actually include some amount of formatting in this. One example is what I do for sub-menus: <span style="font-size: 90%;">ItemName</span>

getItemURL

public string getItemURL()
Returns the URL of the item, as the caller provided it.

getLinkAttributes

public string getLinkAttributes()
Returns the attribute text appropriate for an <a tag. Incorporates the URL and target.

getItemTarget

public string getItemTarget()
Returns the target as the caller provided it. No target means "self" (just like regular HTML).

getItemColor

public string getItemColor()
Returns the background color of the item. This will be set to the color. This class has no concept of a "default" color.