|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dataselectors.html.ActionProviderMenuBar
public abstract class ActionProviderMenuBar
The ActionProviderMenuBar is an abstract TransformationBean that provides a menubar representation of the actions defined for an area of a viewer. Menus can be appended to the end via the add method. The default behavior for a menubar selector can be overridden by retrieving the instance of the selector from the appropriate default action and making changes to that instance. Custom selectors can also be set by passing in a custom selector instance on a setAction call to the ActionProvider.
For More Information:
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 .
Constructor Summary | |
---|---|
ActionProviderMenuBar()
Default Constructor |
Method Summary | |
---|---|
SelectorMenuBar |
buildMenuBar()
Build a menubar from the actions defined for the area on the menubar default filter and set initial properties on the menubar. |
int |
getBorderWidth()
Gets the width of the outer border around the Table. |
int |
getCellPadding()
Gets the number of pixels between the border of a cell and the cell's contents. |
int |
getCellSpacing()
Gets the number of pixels between the border of each cell. |
SelectorMenuBar |
getDefaultSelectorMenubar()
Returns a default SelectorMenuBar |
int |
getFirstTabIndex()
Returns the first tab index set on the first menu |
int |
getHeight()
Gets the height of the MenuBar/Table in pixels. |
int |
getHeightPercentage()
Gets the height of the Table/MenuBar as a percentage |
boolean |
getHorizontalOrientation()
Returns the orientation of the menu bar |
int |
getLastTabIndex()
Returns the last tab index used on this MenuBar |
java.lang.String |
getLeftImage()
Returns the image displayed on the left side of the button |
int |
getMenuCount()
Returns the number of menus that havve been added to this menubar |
java.util.ArrayList |
getMenus()
|
java.lang.String |
getRightImage()
Returns the image displayed on the right side of the button |
ActionList |
getSelectorActions(ActionSupportFilter menuBarFilter)
Return the list of actions that represent the valid selectors to be placed on the menubar. |
SelectorMenuBar |
getSelectorMenubar()
Gets the selectorMenubar value |
java.lang.String |
getSeparator()
Returns the separator of the menu |
java.lang.String |
getSeparatorImage()
Returns the separator image of the menu |
java.lang.String |
getStyleClassPrefix()
Returns the styleClassPrefix of the menu bar |
java.lang.String |
getTarget()
getTarget returns the value of the TARGET= argument used on the anchor tags generated. |
java.lang.String |
getTemplate()
Returns the menubar template |
BaseActionTransformation |
getViewer()
Get the viewer that contains the menubar |
int |
getWidth()
Gets the width of the MenuBar/Table in pixels. |
int |
getWidthPercentage()
Gets the width of the Table/MenuBar as a percentage |
void |
setBorderWidth(int border)
Sets the width of the outer border around the Table in pixels. |
void |
setCellPadding(int padding)
Sets the number of pixels between the border of a cell and the cell's contents. |
void |
setCellSpacing(int spacing)
Sets the number of pixels between the border of each cell. |
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 Table/MenuBar in pixels. |
void |
setHeightPercentage(int value)
Sets the height of the Table/MenuBar as a percentage |
void |
setHorizontalOrientation(boolean orientation)
Sets the orientation of the menu bar |
void |
setLeftImage(java.lang.String image)
Sets the image displayed on the left side of the button |
void |
setRightImage(java.lang.String image)
Sets the image displayed on the right side of the button |
void |
setSelectorMenubar(SelectorMenuBar selectorMenubar)
Set the selectorMenubar |
void |
setSeparator(java.lang.String value)
Sets the separator of the menu |
void |
setSeparatorImage(java.lang.String value)
Sets the separator image of the menu |
void |
setStyleClassPrefix(java.lang.String styleClassPrefix)
Sets the styleClassPrefix of the menu bar |
void |
setTarget(java.lang.String value)
Sets the value of the TARGET= argument used on the anchor tags generated. |
void |
setTemplate(java.io.File f)
Sets the menubar template as a file |
void |
setTemplate(java.io.InputStreamReader isr)
Sets the menubar template as an InputStreamReader |
void |
setTemplate(java.lang.String template)
Sets the menubar template as a string |
void |
setViewer(BaseActionTransformation viewer)
Set the viewer that the menu bar is attached to |
void |
setWidth(int value)
Sets the width of the Table/MenuBar in pixels. |
void |
setWidthPercentage(int value)
Sets the width of the Table/MenuBar as a percentage |
Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
---|
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionProvider, setActionSupportType, setActionVisible, setUniqueId |
Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface |
---|
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, isVisible, setCustomAttributes, setDescription, setId, setLocale, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
---|
getRequest, setRequest |
Constructor Detail |
---|
public ActionProviderMenuBar()
Method Detail |
---|
public void setLeftImage(java.lang.String image)
image
- the name of the imagepublic java.lang.String getLeftImage()
public void setRightImage(java.lang.String image)
image
- the name of the imagepublic java.lang.String getRightImage()
public void setViewer(BaseActionTransformation viewer)
viewer
- The viewer containing the menubarpublic BaseActionTransformation getViewer()
public ActionList getSelectorActions(ActionSupportFilter menuBarFilter)
menuBarFilter
- Determines the type of actions returned
from the action providerActionList
public SelectorMenuBar buildMenuBar()
public void setSelectorMenubar(SelectorMenuBar selectorMenubar)
selectorMenubar
- The value for selectormenubarpublic SelectorMenuBar getSelectorMenubar()
public SelectorMenuBar getDefaultSelectorMenubar()
public void setStyleClassPrefix(java.lang.String styleClassPrefix)
styleClassPrefix
- The styleClassPrefix to use for the menubar.public java.lang.String getStyleClassPrefix()
public boolean getHorizontalOrientation()
public void setHorizontalOrientation(boolean orientation)
orientation
- A value of false indicates verical menu bar orientation.public void setSeparator(java.lang.String value)
value
- The separator of the menupublic java.lang.String getSeparator()
public void setSeparatorImage(java.lang.String value)
value
- The separator image of the menupublic java.lang.String getSeparatorImage()
public int getMenuCount()
public java.lang.String getTarget()
public void setTarget(java.lang.String value)
value
- The value of the TARGET= argrument on the anchor tagpublic void setBorderWidth(int border)
border
- The border width in pixelspublic int getBorderWidth()
public void setWidth(int value)
value
- The width in pixelspublic int getWidth()
public void setWidthPercentage(int value)
value
- The width as a percentagepublic int getWidthPercentage()
public void setHeight(int value)
value
- The height in pixelspublic int getHeight()
public void setHeightPercentage(int value)
value
- The height as a percentagepublic int getHeightPercentage()
public void setCellSpacing(int spacing)
spacing
- The number of pixels between each cellpublic int getCellSpacing()
public void setCellPadding(int padding)
padding
- The number of pixels between the cell border and the cell
contentpublic int getCellPadding()
public int getFirstTabIndex()
setFirstTabIndex(int)
public void setFirstTabIndex(int tabindex)
public int getLastTabIndex()
setFirstTabIndex(int)
,
getFirstTabIndex()
public java.lang.String getTemplate()
public void setTemplate(java.lang.String template)
templatestring
- The template stringpublic void setTemplate(java.io.File f)
templatefile
- The template filepublic void setTemplate(java.io.InputStreamReader isr)
inputstream
- The template inputstreampublic java.util.ArrayList getMenus()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |