com.sas.servlet.tbeans.menubar.html
Class BaseHTMLMenuBar

com.sas.servlet.tbeans.menubar.html.BaseHTMLMenuBar
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, ComplexStyleInterface, MenuBarStyleAreaKeysInterface, RenderableInterface, TemplateInterface, com.sas.servlet.tbeans.TemplateKeyInterface, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable
Direct Known Subclasses:
MenuBar, SelectorMenuBar

public abstract class BaseHTMLMenuBar
implements MenuBarStyleAreaKeysInterface, ComplexStyleInterface

The BaseHTMLMenuBar is an abstract TransformationBean™ used to create an HTML MenuBar. MenuBar will contain one or more Menus. Menus may contain one or more MenuItems or SelectorMenuItems.

Note that subclasses of this bean actually provide the markup rendering used in/with Servlet and JavaServer Pages technologies. If you need to add support for a markup language that is not explicitly provided with AppDev Studio, then you must extend this class.

For More Information:

JSP custom tags provide an alternative to using the TransformationBeans™. Visit the Custom Tag Library Reference for additional information on these custom tags.

Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .

See Also:
BaseMenuItem, BaseMenu, BaseSelectorMenuItem, Serialized Form

Field Summary
static java.lang.String BANNER_GLOBALMENU_LOOK
           
static java.lang.String DEFAULT_LOOK
           
 
Fields inherited from class com.sas.servlet.tbeans.menubar.BaseMenuBar
DROP_CLICK, DROP_HOVER, menuCounter, NAVIGATION, SELECTOR_EXPAND, SELECTOR_EXTERNAL
 
Fields inherited from interface com.sas.servlet.tbeans.menubar.html.MenuBarStyleAreaKeysInterface
MENU, MENU_DISABLED, MENU_DIVIDER, MENU_ITEM, MENU_ITEM_ARROW, MENU_ITEM_CONTAINER, MENU_ITEM_DISABLED, MENU_ITEM_DIVIDER, MENU_ITEM_LINK, MENU_ITEM_LINK_DISABLED, MENU_LINK, MENU_LINK_DISABLED, MENUBAR_CONTAINER
 
Constructor Summary
BaseHTMLMenuBar()
          Constructor of the BaseHTMLMenuBar class
 
Method Summary
 void addSeparator()
          Adds a separator (blank space) after the last menu set
 void addSeparator(java.lang.String separator)
          Adds a separator after the last menu set
 java.util.Map getStyleMap()
          Returns the component style map for this MenuBar.
 void setStyleMap(java.util.Map styleMap)
          Sets a style map for this MenuBar.
 
Methods inherited from class com.sas.servlet.tbeans.menubar.BaseMenuBar
add, add, getBorderWidth, getCellPadding, getCellSpacing, getDefaultTemplate, getFirstTabIndex, getHeight, getHeightPercentage, getHorizontalOrientation, getLastTabIndex, getMenuCount, getMenus, getMenuType, getModel, getNumberOfMenuItems, getSeparator, getSeparatorImage, getStyleClassPrefix, getTarget, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, getWidth, getWidthPercentage, setBorderWidth, setCellPadding, setCellSpacing, setFirstTabIndex, setHeight, setHeightPercentage, setHorizontalOrientation, setMenuType, setModel, setSeparator, setSeparatorImage, setStyleClassPrefix, setTarget, setTemplate, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation, setWidth, setWidthPercentage
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getName, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCleanUpResourcesOn, setCustomAttributes, setDescription, setId, setInputTransform, setLocale, setLocaleDependentProperties, setName, setObjectData, setObjectDataProperty, setOutputTransform, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, toString, write, write, write, write
 

Field Detail

DEFAULT_LOOK

public static final java.lang.String DEFAULT_LOOK
See Also:
Constant Field Values

BANNER_GLOBALMENU_LOOK

public static final java.lang.String BANNER_GLOBALMENU_LOOK
See Also:
Constant Field Values
Constructor Detail

BaseHTMLMenuBar

public BaseHTMLMenuBar()
Constructor of the BaseHTMLMenuBar class

Method Detail

addSeparator

public void addSeparator()
Adds a separator (blank space) after the last menu set

See Also:
addSeparator(String)

addSeparator

public void addSeparator(java.lang.String separator)
Adds a separator after the last menu set

Parameters:
separator - a string that will be placed after the last menu
See Also:
addSeparator()

getStyleMap

public java.util.Map getStyleMap()
Returns the component style map for this MenuBar.
STYLE KEY DEFAULT STYLE
MENUBAR_CONTAINER menuBar
MENU menuItem
MENU_LINK menuLink
MENU_DIVIDER menuLink
MENU_DISABLED menuDisabled
MENU_LINK_DISABLED menuLinkDisabled
MENU_ITEM_CONTAINER menuItemContainer
MENU_ITEM_ARROW menuItemArrow
MENU_ITEM_DIVIDERmenuItemDivider
MENU_ITEM menuItem
MENU_ITEM_LINK menuItemLink
MENU_ITEM_DISABLED menuItemDisabled
MENU_ITEM_LINK_DISABLED menuItemLinkDisabled
MENU_ITEM_ARROW menuItemArrow
MENU_ITEM_DIVIDERmenuItemDivider

Specified by:
getStyleMap in interface ComplexStyleInterface
Returns:
styles used for this MenuBar.

setStyleMap

public void setStyleMap(java.util.Map styleMap)
Sets a style map for this MenuBar.

Parameters:
styleMap - Map containing styles and style keys for this menubar
See Also:
getStyleMap()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.