|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.form.BaseFormElement
public abstract class BaseFormElement
The BaseFormElement is an abstract TransformationBean used to create the Form Element.
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:Form 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 | |
---|---|
static java.lang.String |
RB_KEY
Key used to lookup resources in the resource bundle. |
Constructor Summary | |
---|---|
BaseFormElement()
Construct a new BaseFormElement object |
Method Summary | |
---|---|
java.lang.String |
getAccessKey()
Gets the accesskey of the form element. |
GenericErrorHandlerInterface |
getErrorHandler()
Returns the errorHandler or null if none is set |
java.lang.String |
getModificationEventName()
Gets the modification event name. |
java.lang.String |
getName()
Gets the name that will be used to identify the content when it is submitted to the server |
java.lang.String |
getOnBlur()
Gets the onBlur event for the form element. |
java.lang.String |
getOnChange()
Gets the onChange event for the form element. |
java.lang.String |
getOnClick()
Gets the onClick event for the form element. |
java.lang.String |
getOnDblClick()
Gets the onDblClick event for the form element |
java.lang.String |
getOnFocus()
Gets the onFocus event for the form element. |
java.lang.String |
getOnKeyDown()
Gets the onKeyDown event for the form element |
java.lang.String |
getOnKeyPress()
Gets the onKeyPress event for the form element |
java.lang.String |
getOnKeyUp()
Gets the onKeyUp event for the form element |
java.lang.String |
getOnMouseDown()
Gets the onMouseDown event for the form element. |
java.lang.String |
getOnMouseMove()
Gets the onMouseMove event for the form element. |
java.lang.String |
getOnMouseOut()
Gets the onMouseOut event for the form element. |
java.lang.String |
getOnMouseOver()
Gets the onMouseOver event for the form element. |
java.lang.String |
getOnMouseUp()
Gets the onMouseUp event for the form element |
java.lang.String |
getOnSelect()
Gets the onSelect event for the form element. |
StyleInfo |
getStyleInfo()
Returns the style info for this form element. |
java.lang.String |
getTabIndex()
Gets the tabindex of the form element. |
java.lang.String |
getTitle()
Gets the title of the form element. |
protected java.lang.String |
getValidationFunctions(ValidationInterface validator,
boolean conditional)
|
ValidationInterface |
getValidator()
Returns the name of the validator or null if none is set |
boolean |
isEnabled()
Determines the enabled value associated with the form element. |
boolean |
isValid()
Routine that checks if a validator is set. |
protected boolean |
isValidationEnabled()
|
void |
setAccessKey(java.lang.String value)
Sets the accesskey of the form element. |
void |
setEnabled(boolean value)
Sets the enabled attribute associated with the form element. |
void |
setErrorHandler(GenericErrorHandlerInterface errorHandler)
Sets the errorHandler for validation. |
void |
setId(java.lang.String value)
Sets the id. |
void |
setModificationEventName(java.lang.String eventName)
Sets the modification event name for the form element. |
void |
setName(java.lang.String value)
Sets the name that will be used to identify the content when it is submitted to the server |
void |
setOnBlur(java.lang.String value)
Sets the onBlur event for the form element. |
void |
setOnChange(java.lang.String value)
Sets the onChange event for the form element. |
void |
setOnClick(java.lang.String value)
Sets the onClick event for the form element. |
void |
setOnDblClick(java.lang.String value)
Sets the onDblClick event for the form element. |
void |
setOnFocus(java.lang.String value)
Sets the onFocus event for the form element. |
void |
setOnKeyDown(java.lang.String value)
Sets the onKeyDown event for the form element. |
void |
setOnKeyPress(java.lang.String value)
Sets the onKeyPress event for the form element. |
void |
setOnKeyUp(java.lang.String value)
Sets the onKeyUp event for the form element. |
void |
setOnMouseDown(java.lang.String value)
Sets the onMouseDown event for the form element. |
void |
setOnMouseMove(java.lang.String value)
Sets the onMouseMove event for the form element. |
void |
setOnMouseOut(java.lang.String value)
Sets the onMouseOut event for the form element. |
void |
setOnMouseOver(java.lang.String value)
Sets the onMouseOver event for the form element. |
void |
setOnMouseUp(java.lang.String value)
Sets the onMouseUp event for the form element. |
void |
setOnSelect(java.lang.String value)
Sets the onSelect event for the form element. |
void |
setStyleInfo(StyleInfo styleInfo)
Sets the style info for this form element. |
void |
setTabIndex(java.lang.String value)
Sets the tabindex of the form element. |
void |
setTitle(java.lang.String value)
Sets the title for the form element. |
void |
setValidator(ValidationInterface validator)
Sets a validator for a form element. |
void |
write(java.io.PrintWriter out)
Writes the attributes of the object. |
protected void |
writeJavaScriptObject(java.io.PrintWriter out)
|
protected void |
writeJavaScriptObjectValidate(java.io.PrintWriter out)
|
protected void |
writeJavaScriptValidatorObject(java.io.PrintWriter out)
|
protected void |
writeValidationScript(java.io.PrintWriter out)
|
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public BaseFormElement()
Method Detail |
---|
public void setId(java.lang.String value)
setId
in interface TransformationInterface
setId
in class BaseTransformation
value
- The idpublic void setName(java.lang.String value)
setName
in interface TransformationInterface
setName
in class BaseTransformation
value
- The nameBaseTransformation.setId(java.lang.String)
public java.lang.String getName()
getName
in interface TransformationInterface
getName
in class BaseTransformation
BaseTransformation.getId()
public void setTabIndex(java.lang.String value)
value
- The form element tabindexpublic java.lang.String getTabIndex()
public void setAccessKey(java.lang.String value)
value
- The accesskey of the form elementpublic java.lang.String getAccessKey()
public void setModificationEventName(java.lang.String eventName)
setModificationEventName
in interface FormElementModificationEventInterface
eventName
- The modification event namepublic java.lang.String getModificationEventName()
getModificationEventName
in interface FormElementModificationEventInterface
public void setOnBlur(java.lang.String value)
setOnBlur
in interface com.sas.servlet.tbeans.JavaScriptEventHandlerInterface
value
- The onBlur eventpublic java.lang.String getOnBlur()
getOnBlur
in interface com.sas.servlet.tbeans.JavaScriptEventHandlerInterface
public void setOnChange(java.lang.String value)
setOnChange
in interface com.sas.servlet.tbeans.JavaScriptEventHandlerInterface
value
- The onChange eventpublic java.lang.String getOnChange()
getOnChange
in interface com.sas.servlet.tbeans.JavaScriptEventHandlerInterface
public void setOnClick(java.lang.String value)
value
- The onClick eventpublic java.lang.String getOnClick()
public void setOnDblClick(java.lang.String value)
value
- The onDblClick eventpublic java.lang.String getOnDblClick()
public void setOnFocus(java.lang.String value)
setOnFocus
in interface com.sas.servlet.tbeans.JavaScriptEventHandlerInterface
value
- The onFocus eventpublic java.lang.String getOnFocus()
getOnFocus
in interface com.sas.servlet.tbeans.JavaScriptEventHandlerInterface
public void setOnMouseOut(java.lang.String value)
value
- The onMouseOut eventpublic java.lang.String getOnMouseOut()
public void setOnMouseOver(java.lang.String value)
value
- The onMouseOver eventpublic java.lang.String getOnMouseOver()
public void setOnMouseDown(java.lang.String value)
value
- The onMouseDown eventpublic java.lang.String getOnMouseDown()
public void setOnMouseUp(java.lang.String value)
value
- The onMouseUp eventpublic java.lang.String getOnMouseUp()
public void setOnMouseMove(java.lang.String value)
value
- The onMouseMove eventpublic java.lang.String getOnMouseMove()
public void setOnKeyDown(java.lang.String value)
value
- The onKeyDown eventpublic java.lang.String getOnKeyDown()
public void setOnKeyPress(java.lang.String value)
value
- The onKeyPress eventpublic java.lang.String getOnKeyPress()
public void setOnKeyUp(java.lang.String value)
value
- The onKeyUp eventpublic java.lang.String getOnKeyUp()
public void setOnSelect(java.lang.String value)
value
- The onSelect eventpublic java.lang.String getOnSelect()
public void setTitle(java.lang.String value)
value
- The title of the form elementpublic java.lang.String getTitle()
public void setValidator(ValidationInterface validator)
ValidationInterface
.
setValidator
in interface GenericValidatorInterface
validator
- validatorgetValidator()
public ValidationInterface getValidator()
getValidator
in interface GenericValidatorInterface
setValidator(com.sas.util.validators.ValidationInterface)
public boolean isValid()
isValid
in interface GenericValidatorInterface
setValidator(com.sas.util.validators.ValidationInterface)
,
setErrorHandler(com.sas.util.errorhandlers.GenericErrorHandlerInterface)
public void setErrorHandler(GenericErrorHandlerInterface errorHandler)
GenericErrorHandlerInterface
.
setErrorHandler
in interface GenericValidatorInterface
errorHandler
- name of an errorHandlersetValidator(com.sas.util.validators.ValidationInterface)
public GenericErrorHandlerInterface getErrorHandler()
getErrorHandler
in interface GenericValidatorInterface
setErrorHandler(com.sas.util.errorhandlers.GenericErrorHandlerInterface)
public StyleInfo getStyleInfo()
public void setStyleInfo(StyleInfo styleInfo)
styleInfo
- The style for this form elementpublic void setEnabled(boolean value)
value
- The enabled valuepublic boolean isEnabled()
protected void writeValidationScript(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
protected boolean isValidationEnabled()
protected java.lang.String getValidationFunctions(ValidationInterface validator, boolean conditional)
protected void writeJavaScriptObject(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
protected void writeJavaScriptValidatorObject(java.io.PrintWriter out)
protected void writeJavaScriptObjectValidate(java.io.PrintWriter out)
public void write(java.io.PrintWriter out) throws java.io.IOException
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseTransformation
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |