com.sas.servlet.tbeans.form
Class BaseInput

com.sas.servlet.tbeans.form.BaseInput
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, FormElementModificationEventInterface, com.sas.servlet.tbeans.form.JavaScriptObjectCreationInterface, com.sas.servlet.tbeans.JavaScriptEventHandlerInterface, RenderableInterface, TransformationInterface, GenericValidatorInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable
Direct Known Subclasses:
BaseTextEntry

public abstract class BaseInput

The BaseInput is an abstract TransformationBean™ for creating INPUT elements.

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:Input 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
 
Fields inherited from class com.sas.servlet.tbeans.form.BaseFormElement
RB_KEY
 
Constructor Summary
BaseInput()
          Construct a new Input control
 
Method Summary
 java.lang.String getInitialText()
          Gets the initial text attribute
 int getMaximumLength()
          Gets the maximum number of characters permitted in a input field.
 int getSize()
          Gets the visible size of input fields to a given number of average character widths.
 java.lang.String getText()
          Gets the text, or value, attribute
 boolean isReadOnly()
          Determines the readOnly value associated with the input field.
 void setInitialText(java.lang.String value)
          Sets the initial text attribute.
 void setMaximumLength(int value)
          Sets the maximum number of characters permitted in a input field.
 void setReadOnly(boolean value)
          Sets the readOnly attribute associated with the input field.
 void setSize(int value)
          Sets the visible size of input fields to a given number of average character widths.
 void setText(java.lang.String value)
          Sets the text, or value, attribute.
 
Methods inherited from class com.sas.servlet.tbeans.form.BaseFormElement
getAccessKey, getErrorHandler, getModificationEventName, getName, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyleInfo, getTabIndex, getTitle, getValidationFunctions, getValidator, isEnabled, isValid, isValidationEnabled, setAccessKey, setEnabled, setErrorHandler, setId, setModificationEventName, setName, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyleInfo, setTabIndex, setTitle, setValidator, write, writeJavaScriptObject, writeJavaScriptObjectValidate, writeJavaScriptValidatorObject, writeValidationScript
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCleanUpResourcesOn, setCustomAttributes, setDescription, setInputTransform, setLocale, setLocaleDependentProperties, setObjectData, setObjectDataProperty, setOutputTransform, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 

Constructor Detail

BaseInput

public BaseInput()
Construct a new Input control

Method Detail

setSize

public void setSize(int value)
Sets the visible size of input fields to a given number of average character widths.

Parameters:
size - The size of the input field

getSize

public int getSize()
Gets the visible size of input fields to a given number of average character widths.

Returns:
The size of the input field

setText

public void setText(java.lang.String value)
Sets the text, or value, attribute.

Parameters:
value - The text value

getText

public java.lang.String getText()
Gets the text, or value, attribute

Returns:
The text value

setMaximumLength

public void setMaximumLength(int value)
Sets the maximum number of characters permitted in a input field.

Parameters:
value - The maximum number of characters

getMaximumLength

public int getMaximumLength()
Gets the maximum number of characters permitted in a input field.

Returns:
The maximum number of characters

setReadOnly

public void setReadOnly(boolean value)
Sets the readOnly attribute associated with the input field.

Parameters:
value - The readOnly value

isReadOnly

public boolean isReadOnly()
Determines the readOnly value associated with the input field.

Returns:
The readOnly value

setInitialText

public void setInitialText(java.lang.String value)
Sets the initial text attribute.

Parameters:
value - The initial text value

getInitialText

public java.lang.String getInitialText()
Gets the initial text attribute

Returns:
The iinitial text value



Copyright © 2009 SAS Institute Inc. All Rights Reserved.