|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.menubar.BaseMenuItem
public abstract class BaseMenuItem
BaseMenuItem TransformationBean used to create a MenuItem. MenuItems are added to a Menu. Menus are added to a MenuBar.
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 the sas:MenuItem custom tag.
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 .
BaseMenu,
BaseMenuBar,
BaseSelectorMenuItem,
Serialized Form| Field Summary | |
|---|---|
boolean |
submenu
True if the menu item contains submenus |
| Fields inherited from class com.sas.servlet.tbeans.BaseButton |
|---|
BOTTOM, BOTTOM_ALL, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER_ALL, DEFAULT_DYNAMIC_BUTTON_ROOT_KEY, DEFAULT_DYNAMIC_BUTTON_ROOT_NAME, imageLocation, LEFT, NONE, RIGHT, TOP, TOP_ALL, TOP_LEFT, TOP_RIGHT |
| Constructor Summary | |
|---|---|
BaseMenuItem()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDefaultTemplate()
Returns the default template to be used for the MenuBar. |
BaseMenu |
getMenu()
Returns the instance of the Menu containing this MenuItem. |
BaseMenuItem |
getNextMenu()
Use internally to assist in keyboard navigation. |
BaseMenuItem |
getNextMenuItem()
Use internally to assist in keyboard navigation. |
BaseMenuItem |
getPreviousMenu()
Use internally to assist in keyboard navigation. |
BaseMenuItem |
getPreviousMenuItem()
Use internally to assist in keyboard navigation. |
java.lang.String |
getTemplate()
Returns the template used for a component. |
java.util.HashMap |
getTemplateDictionary()
Returns a user defined template dictionary for the component |
java.lang.String |
getTemplateFileName()
Returns the template file name for the component |
java.lang.String |
getTemplateLocation()
Returns the location the template file should be retrieved from. |
boolean |
isDivider()
Returns true if the menu item does not have an image and label specified. |
boolean |
isSelected()
Returns true if the current menu item is selected; false otherwise |
void |
setNextMenu(BaseMenuItem nextMenuId)
Use internally to assist in keyboard navigation. |
void |
setNextMenuItem(BaseMenuItem nextMenuItemId)
Use internally to assist in keyboard navigation. |
void |
setPreviousMenu(BaseMenuItem previousMenuId)
Use internally to assist in keyboard navigation. |
void |
setPreviousMenuItem(BaseMenuItem previousMenuItemId)
Use internally to assist in keyboard navigation. |
void |
setSelected(boolean selected)
Sets the state of the menu item. |
void |
setTemplate(java.io.File file)
Sets a template file object |
void |
setTemplate(java.io.InputStreamReader isr)
Sets a template file object |
void |
setTemplate(java.lang.String template)
Sets the template for this component. |
void |
setTemplateDictionary(java.util.HashMap dictionary)
Sets a user defined dictionary for the component containing variables along with their associated values. |
void |
setTemplateFileName(java.lang.String file)
The name of the template file. |
void |
setTemplateLocation(java.lang.String location)
Sets the location the template file should be retrieved from. |
| Field Detail |
|---|
public boolean submenu
| Constructor Detail |
|---|
public BaseMenuItem()
| Method Detail |
|---|
public BaseMenu getMenu()
public java.lang.String getDefaultTemplate()
getDefaultTemplate in interface TemplateInterfacesetTemplate(String)public java.lang.String getTemplate()
getTemplate in interface TemplateInterfacesetTemplate(String),
setTemplate(java.io.File),
setTemplate(java.io.InputStreamReader)public void setTemplate(java.lang.String template)
setTemplate in interface TemplateInterfacea - string that contains keys %SOME_KEY for template substitutiongetTemplate()public void setTemplate(java.io.File file)
setTemplate in interface TemplateInterfacefile - The file object that contains the template filegetTemplate()public void setTemplate(java.io.InputStreamReader isr)
file - The file object that contains the template filegetTemplate()public void setTemplateLocation(java.lang.String location)
setTemplateLocation in interface TemplateInterfacelocation - the location of the template filegetTemplateLocation()public java.lang.String getTemplateLocation()
getTemplateLocation in interface TemplateInterfacesetTemplateLocation(String)public void setTemplateFileName(java.lang.String file)
setTemplateFileName in interface TemplateInterfacetemplate - the file name containing the templategetTemplateFileName()public java.lang.String getTemplateFileName()
getTemplateFileName in interface TemplateInterfacesetTemplateFileName(String)public boolean isSelected()
setSelected(boolean)public void setSelected(boolean selected)
selected - the state of the menu itemisSelected()public java.util.HashMap getTemplateDictionary()
getTemplateDictionary in interface TemplateInterfacepublic void setTemplateDictionary(java.util.HashMap dictionary)
setTemplateDictionary in interface TemplateInterfacea - user defined dictionarypublic boolean isDivider()
public BaseMenuItem getNextMenu()
public void setNextMenu(BaseMenuItem nextMenuId)
nextMenuId - The nextMenuId to set.public BaseMenuItem getNextMenuItem()
public void setNextMenuItem(BaseMenuItem nextMenuItemId)
nextMenuItemId - The nextMenuItemId to set.public BaseMenuItem getPreviousMenu()
public void setPreviousMenu(BaseMenuItem previousMenuId)
previousMenuId - The previousMenuId to set.public BaseMenuItem getPreviousMenuItem()
public void setPreviousMenuItem(BaseMenuItem previousMenuItemId)
previousMenuItemId - The previousMenuItemId to set.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||