com.sas.servlet.tbeans.menubar
Class BaseSelectorMenuItem

com.sas.servlet.tbeans.menubar.BaseSelectorMenuItem
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, AlternateTextInterface, DisabledImageInterface, com.sas.servlet.tbeans.DisabledImageKeyInterface, EnabledInterface, ImageInterface, com.sas.servlet.tbeans.ImageKeyInterface, ImagePositionInterface, LabelInterface, RenderableInterface, com.sas.servlet.tbeans.ScriptActivatedInterface, TemplateInterface, com.sas.servlet.tbeans.TemplateKeyInterface, com.sas.servlet.tbeans.TitleInterface, TransformationInterface, URLInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable
Direct Known Subclasses:
SelectorMenuItem

public abstract class BaseSelectorMenuItem

BaseSelectorMenuItem TransformationBean™ used to create a SelectorMenuItem. SelectorMenuItems 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:MenuBar 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 .

See Also:
Serialized Form

Field Summary
protected  boolean modal
           
 
Fields inherited from class com.sas.servlet.tbeans.menubar.BaseMenuItem
submenu
 
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
BaseSelectorMenuItem()
           
 
Method Summary
 int getMenuType()
          Returns the menuType of the menu bar
 BaseTransformation getSelector()
          Returns the selector associated with the menu item
 int getSelectorHeight()
          Returns the height of the selector's window when the menuType is set to SELECTOR_EXTERNAL
 int getSelectorWidth()
          Returns the width of the selector's window when the menuType is set to SELECTOR_EXTERNAL
 boolean isModal()
           
 void setMenuType(int type)
          Sets the menu style of the menu bar
 void setModal(boolean modal)
           
 void setSelector(BaseTransformation selector)
          Sets the selector associated with the SelectorMenuItem
 void setSelectorHeight(int height)
          Sets the height of the selector's window when the menuType is set to SELECTOR_EXTERNAL
 void setSelectorWidth(int width)
          Sets the width of the selector's window when the menuType is set to SELECTOR_EXTERNAL
 
Methods inherited from class com.sas.servlet.tbeans.menubar.BaseMenuItem
getDefaultTemplate, getMenu, getNextMenu, getNextMenuItem, getPreviousMenu, getPreviousMenuItem, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, isDivider, isSelected, setNextMenu, setNextMenuItem, setPreviousMenu, setPreviousMenuItem, setSelected, setTemplate, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation
 
Methods inherited from class com.sas.servlet.tbeans.BaseButton
getAccessKey, getAlternateText, getBottomImage, getBottomLeftImage, getBottomRightImage, getDisabledAlternateText, getDisabledImage, getDynamicButtonArea, getDynamicRootName, getHeight, getHeightPercentage, getImage, getImageLocation, getImagePosition, getLabel, getLeftImage, getOnBlur, getOnClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseOut, getOnMouseOver, getOnMouseUp, getRightImage, getRolloverImage, getTabIndex, getTarget, getTitle, getTopImage, getTopLeftImage, getTopRightImage, getURL, getWidth, getWidthPercentage, isActive, isEnabled, isFocused, isVerifyEnabled, isWrapped, setAccessKey, setActive, setAlternateText, setBottomImage, setBottomLeftImage, setBottomRightImage, setDisabledAlternateText, setDisabledImage, setDynamicButtonArea, setDynamicRootName, setEnabled, setFocus, setHeight, setHeightPercentage, setImage, setImage, setImageLocation, setImagePosition, setLabel, setLeftImage, setOnBlur, setOnClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseOut, setOnMouseOver, setOnMouseUp, setRightImage, setRolloverImage, setTabIndex, setTarget, setTitle, setTopImage, setTopLeftImage, setTopRightImage, setURL, setVerifyEnabled, setWidth, setWidthPercentage, setWrap
 
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

modal

protected boolean modal
Constructor Detail

BaseSelectorMenuItem

public BaseSelectorMenuItem()
Method Detail

getSelectorWidth

public int getSelectorWidth()
Returns the width of the selector's window when the menuType is set to SELECTOR_EXTERNAL

Returns:
the width of the selector window
See Also:
setSelectorWidth(int), getSelectorHeight(), setSelectorHeight(int)

setSelectorWidth

public void setSelectorWidth(int width)
Sets the width of the selector's window when the menuType is set to SELECTOR_EXTERNAL

See Also:
getSelectorWidth(), getSelectorHeight(), setSelectorHeight(int)

getSelectorHeight

public int getSelectorHeight()
Returns the height of the selector's window when the menuType is set to SELECTOR_EXTERNAL

Returns:
the height of the selector window
See Also:
setSelectorHeight(int), getSelectorWidth(), setSelectorWidth(int)

setSelectorHeight

public void setSelectorHeight(int height)
Sets the height of the selector's window when the menuType is set to SELECTOR_EXTERNAL

See Also:
getSelectorHeight(), getSelectorWidth(), setSelectorWidth(int)

setSelector

public void setSelector(BaseTransformation selector)
Sets the selector associated with the SelectorMenuItem

Parameters:
selector - The selector associated with the SelectorMenuItem
See Also:
getSelector()

getSelector

public BaseTransformation getSelector()
Returns the selector associated with the menu item

Returns:
the selector associated with the menu item
See Also:
setSelector(BaseTransformation)

setMenuType

public void setMenuType(int type)
Sets the menu style of the menu bar

Parameters:
The - menu style of the menu bar. Acceptable values are: com.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.
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
See Also:
getMenuType()

getMenuType

public int getMenuType()
Returns the menuType of the menu bar

Returns:
The menu bar menu type
See Also:
setMenuType(int)

isModal

public boolean isModal()
Returns:
Returns the modal.

setModal

public void setModal(boolean modal)
Parameters:
modal - The modal to set.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.