|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.form.BaseComboBoxView
public abstract class BaseComboBoxView
The BaseComboBoxView is an abstract TransformationBean for creating a ComboBoxView. A ComboBoxView is a drop-down combo that allows a single selection when editable is set to false (default).
When editable is set to true, then the combo box includes a text field into which the user can type a value.
The non-editable ComboBoxView can contain text only, images only, or both text and images together. An editable ComboBoxView can only contain text
The ChoiceBox TransformationBean gathers the selections from a
model via the setModel method. A model must implement the
javax.swing.ComboBoxModel interface in order to be
used. The model can only contain 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:ComboBoxView 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.BaseChoiceBox |
---|
labelTransform, model, RB_KEY |
Constructor Summary | |
---|---|
BaseComboBoxView()
Construct a new ComboBoxView object |
Method Summary | |
---|---|
java.lang.String |
getImageLocation()
Gets the image location for the images in the ComboBoxView. |
int |
getMaximumRowCount()
Gets the maximum number of rows the ComboBoxView will display. |
boolean |
isEditable()
Returns true if the ComboBoxView is editable. |
boolean |
isImagesOnly()
Determines if images only should be displayed. |
boolean |
isRenderUsingIFrame()
The value which determines if the ComboBoxView is written as an IFRAME, or normally. |
void |
setEditable(boolean value)
Determines whether the ComboBoxView field is editable. |
void |
setImageLocation(java.lang.String value)
Sets the image location for the images in the ComboBoxView. |
void |
setImagesOnly(boolean value)
Sets whether or not to display images only. |
void |
setMaximumRowCount(int value)
Sets the maximum number of rows the ComboBoxView displays. |
void |
setRenderUsingIFrame(boolean value)
Determines if the ComboBoxView is written out as an IFRAME. |
Methods inherited from class com.sas.servlet.tbeans.form.BaseChoiceBox |
---|
getModel, getSelectedIndex, getSelectedItem, getValueItemLabel, isSelected, isSelected, isValidateSelection, setModel, setSelectedIndex, setSelectedItem, setSelectedItem, setValidateSelection |
Constructor Detail |
---|
public BaseComboBoxView()
Method Detail |
---|
public void setEditable(boolean value)
value
- true indicates that the field is editablepublic boolean isEditable()
public void setMaximumRowCount(int value)
value
- The maximumRowCount for the ComboBoxViewpublic int getMaximumRowCount()
public void setImageLocation(java.lang.String value)
value
- The image locationpublic java.lang.String getImageLocation()
public void setImagesOnly(boolean value)
value
- TRUE to display images only.public boolean isImagesOnly()
public void setRenderUsingIFrame(boolean value)
value
- TRUE to render ComboBoxView using an IFrame.public boolean isRenderUsingIFrame()
#setRenderState(int)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |