|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.form.BaseListBoxView
public abstract class BaseListBoxView
The BaseListBox is an abstract TransformationBean for creating a ListBoxView input field. A ListBoxView is a menu that allows either a single selection or multiple selections. The ListBoxView can contain text only, images only, or both text and images together.
The ListBoxView TransformationBean gathers the selections from a model via the ListModel. A model must implement the javax.swing.ListModel interface in order to be used. The model can only contain com.sas.servlet.tbeans.models.JavaScriptNode items.
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:ListBoxView 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 .
Field Summary |
---|
Fields inherited from class com.sas.servlet.tbeans.form.BaseListBox |
---|
model, RB_KEY |
Constructor Summary | |
---|---|
BaseListBoxView()
Construct a new ListBox |
Method Summary | |
---|---|
java.lang.String |
getDeselectNodeFunctionName()
Gets the deselect node function name for when the node is deselected. |
java.lang.String |
getImageLocation()
Gets the image location for the images in the ListBoxView. |
java.lang.String |
getListConstructorName()
Gets the javascript function name that's used as the constructor for the ListBoxView. |
java.lang.String |
getOnMouseDown()
Gets the onMouseDown event value. |
java.lang.String |
getSelectNodeFunctionName()
Gets the select node function name for when the node is selected. |
java.lang.String |
getType()
Gets the type of ListBoxView being displayed. |
boolean |
isImagesEnabled()
Gets the imagesEnabled attribute |
boolean |
isImagesOnly()
Determines if images only should be displayed. |
void |
setDeselectNodeFunctionName(java.lang.String value)
Sets the name of the javascript function to use when node is deselected. |
void |
setImageLocation(java.lang.String value)
Sets the image location for the images in the ListBoxView. |
void |
setImagesEnabled(boolean value)
Sets the whether or not images are used in ListBoxView The default is true. |
void |
setImagesOnly(boolean value)
Sets whether or not to display images only. |
void |
setListConstructorName(java.lang.String value)
Sets the name of the javascript function to use as the constructor for this object. |
void |
setOnMouseDown(java.lang.String value)
Sets the onMouseDown event value. |
void |
setSelectNodeFunctionName(java.lang.String value)
Sets the name of the javascript function to use when node is selected. |
void |
setType(java.lang.String value)
Sets the type of ListBoxView being displayed. |
Methods inherited from class com.sas.servlet.tbeans.form.BaseListBox |
---|
getModel, getMultipleSelections, getSelectedIndex, getSelectedIndexes, getSelectedItem, getSelectedItems, getSize, isSelected, isSelected, isValidateSelection, setModel, setMultipleSelections, setSelectedIndex, setSelectedIndexes, setSelectedItem, setSelectedItem, setSelectedItems, setSelectedItems, setSize, setValidateSelection |
Constructor Detail |
---|
public BaseListBoxView()
Method Detail |
---|
public void setOnMouseDown(java.lang.String value)
setOnMouseDown
in class BaseFormElement
value
- The onMouseDown valuepublic java.lang.String getOnMouseDown()
getOnMouseDown
in class BaseFormElement
public void setImagesEnabled(boolean value)
useImages
- true if images are allowedpublic boolean isImagesEnabled()
public void setImageLocation(java.lang.String value)
value
- The image locationpublic java.lang.String getImageLocation()
public void setType(java.lang.String value)
value
- The typepublic java.lang.String getType()
public void setListConstructorName(java.lang.String value)
value
- The javascript function name used as for the constructorpublic java.lang.String getListConstructorName()
public void setSelectNodeFunctionName(java.lang.String value)
value
- The select node function namepublic java.lang.String getSelectNodeFunctionName()
public void setDeselectNodeFunctionName(java.lang.String value)
value
- The deselect node function namepublic java.lang.String getDeselectNodeFunctionName()
public void setImagesOnly(boolean value)
value
- TRUE to display images only.public boolean isImagesOnly()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |