com.sas.servlet.tbeans.login.html
Class Login

com.sas.servlet.tbeans.login.html.Login
All Implemented Interfaces:
com.sas.beans.PropertyChangeSource, com.sas.lang.ObjectDataInterface, RenderableInterface, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable

public class Login

Login is a TransformationBean™ that is composed of other TransformationBeans™ which are used to generate HTML code which can render the login bean. This is a composite tbean consisting of a form, labels, textentry and password, and a pushbutton.

The Login is one of several TransformationBeans™ that are considered composite components. A composite component allows a developer to design custom components that are made up of a combination of other components, such as TextEntry, ListBox, and Label TransformationBeans™. The visual layout of a composite component can be easily controlled through a template. For more information on composite TransformationBeans™, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Composite TransformationBeans™ as well as the TransformationBean™ Component and Style Reference.

Note that the toString() method on this class calls the write method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging

For More Information:

Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.

Examples for this class may be found on the Examples Site.

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:
BaseLogin, Serialized Form

Field Summary
protected  Label passwordLabelBean
           
protected  Password passwordTextEntryBean
           
protected  PushButton submitButtonBean
           
protected  Label titleLabelBean
           
protected  Label usernameLabelBean
           
protected  TextEntry usernameTextEntryBean
           
 
Fields inherited from class com.sas.servlet.tbeans.login.BaseLogin
failureURL, loginBean, submitURL, successURL
 
Constructor Summary
Login()
          Constructor of the Login
 
Method Summary
protected  void init()
          Initialization.
 void setId(java.lang.String id)
          Sets the id for this Login component.
 void write(java.io.PrintWriter out)
          Writes the HTML representation of the Login bean.
 
Methods inherited from class com.sas.servlet.tbeans.login.BaseLogin
getFailureURL, getModel, getSubmitURL, getSuccessURL, setFailureURL, setModel, setSubmitURL, setSuccessURL
 
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, setInputTransform, setLocale, setLocaleDependentProperties, setName, setObjectData, setObjectDataProperty, setOutputTransform, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 

Field Detail

titleLabelBean

protected Label titleLabelBean

usernameLabelBean

protected Label usernameLabelBean

usernameTextEntryBean

protected TextEntry usernameTextEntryBean

passwordLabelBean

protected Label passwordLabelBean

passwordTextEntryBean

protected Password passwordTextEntryBean

submitButtonBean

protected PushButton submitButtonBean
Constructor Detail

Login

public Login()
Constructor of the Login

Method Detail

init

protected void init()
Initialization.


write

public void write(java.io.PrintWriter out)
           throws java.io.IOException
Writes the HTML representation of the Login bean. This method calls the cleanUpResources method at the end to reset the request and response back to null.

Specified by:
write in interface TransformationInterface
Specified by:
write in interface com.sas.util.WriteToPrintWriterInterface
Overrides:
write in class BaseTransformation
Parameters:
out - The output stream
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

setId

public void setId(java.lang.String id)
Sets the id for this Login component. The new id is applied to the child components.

Specified by:
setId in interface TransformationInterface
Overrides:
setId in class BaseTransformation
Parameters:
id - the new id for this component



Copyright © 2009 SAS Institute Inc. All Rights Reserved.