|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.menubar.BaseMenuBar
public abstract class BaseMenuBar
The BaseMenuBar is an abstract TransformationBean used to create a 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 the sas:TreeView 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 .
BaseMenuItem
,
BaseMenu
,
BaseSelectorMenuItem
,
Serialized FormField Summary | |
---|---|
static int |
DROP_CLICK
MenuItems or SelectorMenuItems associated with the menu appear when clicking on the menu. |
static int |
DROP_HOVER
MenuItems or SelectorMenuItems associated with the menu appear when hover over the menu. |
int |
menuCounter
Number of Menu/MenuItems on this menubar. |
static int |
NAVIGATION
The menu does not contain MenuItems or SelectorMenuItems |
static int |
SELECTOR_EXPAND
The selector that's on the SelectorMenuItem appears below the SelectorMenuBar when the user clicks on this menu. |
static int |
SELECTOR_EXTERNAL
The URL set on the menu or SelectorMenuItem, will be opened on a new browser window when the user clicks on the menu or SelectorMenuItem (Valid only for SelectorMenuBar) |
Constructor Summary | |
---|---|
BaseMenuBar()
|
Method Summary | |
---|---|
void |
add(BaseButton button)
|
void |
add(BaseMenu menu)
Adds the menu passed in as the next menu in the MenuBar |
int |
getBorderWidth()
Retuns the width of the outer border around the MenuBar. |
int |
getCellPadding()
Returns the number of pixels between the border of a menu and the menu's contents. |
int |
getCellSpacing()
Gets the number of pixels between the border of each Menu. |
java.lang.String |
getDefaultTemplate()
Returns the default template to be used for the MenuBar. |
int |
getFirstTabIndex()
Returns the first tab index set on the first menu |
int |
getHeight()
Returns the height of the MenuBar |
int |
getHeightPercentage()
Gets the height of the Table/MenuBar as a percentage |
boolean |
getHorizontalOrientation()
Returns true if the orientation of the menu bar is horizontal, false otherwise |
int |
getLastTabIndex()
Returns the last tab index used on this MenuBar |
int |
getMenuCount()
Returns the number of menus that have been added to this menubar |
java.util.ArrayList |
getMenus()
Returns an ArrayList containing all menus that have
been added to this menubar |
int |
getMenuType()
Returns the menuType of the menu bar |
MenuBarNodeInterface |
getModel()
Returns the MenuBarNodeInterface used for this menubar. |
int |
getNumberOfMenuItems()
|
java.lang.String |
getSeparator()
Returns the separator string between each menu |
java.lang.String |
getSeparatorImage()
Returns the separator image used as a separator of each menu. |
java.lang.String |
getStyleClassPrefix()
Returns the styleClassPrefix of the menu bar |
java.lang.String |
getTarget()
Returns the target set on the menubar. |
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 retrived from. |
int |
getWidth()
Gets the width of the MenuBar. |
int |
getWidthPercentage()
Returns the width percentage of the MenuBar |
void |
setBorderWidth(int border)
Sets the width of the outer border around the MenuBar. |
void |
setCellPadding(int padding)
Sets the number of pixels between the border of a menu and the menu's contents. |
void |
setCellSpacing(int spacing)
Sets the number of pixels between each Menu. |
void |
setFirstTabIndex(int tabindex)
Sets the first tab index to be set on the first menu. |
void |
setHeight(int value)
Sets the height of the MenuBar. |
void |
setHeightPercentage(int value)
Sets the height percentage of the MenuBar |
void |
setHorizontalOrientation(boolean orientation)
Sets the orientation of the menu bar. |
void |
setMenuType(int type)
Sets the menu type for all Menus on this MenuBar or SelectorMenubar com.sas.servlet.tbeans.menubar.BaseMenuBar.NAVIGATION -
The menu does not contain MenuItems or SelectorMenuItems com.sas.servlet.tbeans.menubar.BaseMenuBar.DROP_HOVER -
MenuItems or SelectorMenuItems associated with the menu appear when hover over the menu. |
void |
setModel(MenuBarNodeInterface newValue)
Specifies the model to display in the view. |
void |
setSeparator(java.lang.String value)
Sets a separator string to be used as a separator of each menu. |
void |
setSeparatorImage(java.lang.String value)
Sets a separator image to be used as a separator of each menu. |
void |
setStyleClassPrefix(java.lang.String styleClassPrefix)
Sets the styleClassPrefix of the menu bar |
void |
setTarget(java.lang.String value)
Sets the target value which is used as a name of the opener window when menuType is SELECTOR_EXTERNAL. |
void |
setTemplate(java.io.File file)
Sets a templet file object |
void |
setTemplate(java.io.InputStreamReader isr)
Sets a templet file object |
void |
setTemplate(java.lang.String template)
Sets the template for this compoment. |
void |
setTemplateDictionary(java.util.HashMap dictionary)
Sets a user defined dictionary for the component containing varialbes 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. |
void |
setWidth(int value)
Sets the width of the MenuBar. |
void |
setWidthPercentage(int value)
Sets the width of the MenuBar as a percentage |
Field Detail |
---|
public static final int DROP_HOVER
public static final int NAVIGATION
public static final int SELECTOR_EXPAND
public static final int SELECTOR_EXTERNAL
public static final int DROP_CLICK
public int menuCounter
Constructor Detail |
---|
public BaseMenuBar()
Method Detail |
---|
public void add(BaseMenu menu)
menu
- The menu to be placed next in the MenuBarpublic void add(BaseButton button)
public int getMenuType()
setMenuType(int)
public void setMenuType(int type)
com.sas.servlet.tbeans.menubar.BaseMenuBar.NAVIGATION
-
The menu does not contain MenuItems or SelectorMenuItems com.sas.servlet.tbeans.menubar.BaseMenuBar.DROP_HOVER
-
MenuItems or SelectorMenuItems associated with the menu appear when hover over the menu. If there are
no MenuItems or SelectorMenuItems, the menu behaves as Navigationcom.sas.servlet.tbeans.menubar.BaseMenuBar.DROP_CLICK
-
MenuItems or SelectorMenuItems associated with the menu appear when clicking on the menu. If there are
no MenuItems or SelectorMenuItems, the menu behaves as Navigationcom.sas.servlet.tbeans.menubar.BaseMenuBar.SELECTOR_EXPAND
-
The selector that's on the SelectorMenuItem appears below the SelectorMenuBar
when the user clicks on this menu. (Valid only for SelectorMenuBar)com.sas.servlet.tbeans.menubar.BaseMenuBar.SELECTOR_EXTERNAL
-
The URL set on the menu or SelectorMenuItem, will be opened on a new browser window when the user
clicks on the menu or SelectorMenuItem (Valid only for SelectorMenuBar)
mtype
- The menu typegetMenuType()
public void setStyleClassPrefix(java.lang.String styleClassPrefix)
styleClassPrefix
- the styleClassPrefix to use for the menubargetStyleClassPrefix()
public java.lang.String getStyleClassPrefix()
setStyleClassPrefix(String)
public boolean getHorizontalOrientation()
setHorizontalOrientation(boolean)
public void setHorizontalOrientation(boolean orientation)
orientation
- A value of false indicates verical menu bar orientation.getHorizontalOrientation()
public void setSeparator(java.lang.String value)
value
- The separator of the menugetSeparator()
,
setSeparatorImage(String)
public java.lang.String getSeparator()
setSeparator(String)
,
setSeparatorImage(String)
public void setSeparatorImage(java.lang.String value)
value
- The separator image of the menugetSeparator()
,
getSeparatorImage()
public java.lang.String getSeparatorImage()
setSeparatorImage(String)
,
getSeparator()
public java.util.ArrayList getMenus()
ArrayList
containing all menus that have
been added to this menubar
add(BaseMenu)
public int getMenuCount()
getMenus()
public void setModel(MenuBarNodeInterface newValue)
null
to disassociate the view from its model.
newValue
- The new value to assign the modelInterface property.getModel()
public MenuBarNodeInterface getModel()
setModel(MenuBarNodeInterface)
public java.lang.String getTarget()
setTarget(String)
public void setTarget(java.lang.String value)
value
- target value used for this menubar.getTarget()
public void setBorderWidth(int border)
border
- The border widthgetBorderWidth()
public int getBorderWidth()
setBorderWidth(int)
public void setWidth(int value)
value
- width of the MenuBargetWidth()
public int getWidth()
setWidth(int)
public void setWidthPercentage(int value)
value
- the width as a percentagepublic int getWidthPercentage()
setWidthPercentage(int)
public void setHeight(int value)
value
- The height in pixelsgetHeight()
public int getHeight()
setHeight(int)
public void setHeightPercentage(int value)
value
- The height percentage of the MenuBargetHeightPercentage()
public int getHeightPercentage()
setHeightPercentage(int)
public void setCellSpacing(int spacing)
spacing
- The number of pixels between each MenugetCellSpacing()
public int getCellSpacing()
setCellSpacing(int)
public void setCellPadding(int padding)
padding
- the number of pixels between the border of a menu and the menu's contentsgetCellPadding()
public int getCellPadding()
setCellPadding(int)
public int getFirstTabIndex()
setFirstTabIndex(int)
public void setFirstTabIndex(int tabindex)
getFirstTabIndex()
public int getLastTabIndex()
setFirstTabIndex(int)
,
getFirstTabIndex()
public java.lang.String getDefaultTemplate()
getDefaultTemplate
in interface TemplateInterface
setTemplate(String)
public java.lang.String getTemplate()
getTemplate
in interface TemplateInterface
setTemplate(String)
,
setTemplate(java.io.File)
,
setTemplate(java.io.InputStreamReader)
public void setTemplate(java.lang.String template)
setTemplate
in interface TemplateInterface
a
- string that contains keys %SOME_KEY
for template substitutiongetTemplate()
public void setTemplate(java.io.File file)
setTemplate
in interface TemplateInterface
file
- 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 setTemplateFileName(java.lang.String file)
setTemplateFileName
in interface TemplateInterface
template
- the file name containing the templategetTemplateFileName()
public java.lang.String getTemplateFileName()
getTemplateFileName
in interface TemplateInterface
setTemplateFileName(String)
public void setTemplateLocation(java.lang.String location)
setTemplateLocation
in interface TemplateInterface
location
- the location of the template filegetTemplateLocation()
public java.lang.String getTemplateLocation()
getTemplateLocation
in interface TemplateInterface
setTemplateLocation(String)
public java.util.HashMap getTemplateDictionary()
getTemplateDictionary
in interface TemplateInterface
setTemplateDictionary(HashMap)
public void setTemplateDictionary(java.util.HashMap dictionary)
setTemplateDictionary
in interface TemplateInterface
dictionary
- a user defined dictionarygetTemplateDictionary()
public int getNumberOfMenuItems()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |