Videoautomat

videoautomat.contentcreator
Class RegisterContentCreator

java.lang.Object
  |
  +--sale.FormSheetContentCreator
        |
        +--videoautomat.contentcreator.RegisterContentCreator
All Implemented Interfaces:
Serializable

public class RegisterContentCreator
extends sale.FormSheetContentCreator

Content creator of the register process. Contains methods to set and add data independly from the gui part.

Author:
Tobias Ruch
See Also:
Serialized Form

Constructor Summary
RegisterContentCreator(String message)
          Creates a new content creator with an initial message
 
Method Summary
protected  void createFormSheetContent(sale.FormSheet fs)
          Method will be called from the FormSheet to which this ContentCreator is added.
 char[] getConfirmedPassword()
          Returns the value of the confirmed password.
 char[] getPassword()
          Returns the value of the password.
 String getUserName()
          Returns the value of the username.
 void setErrorMessage(String message)
          Sets the error message to this formsheet.
 void setUserName(String userName)
          Sets the value of the username
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterContentCreator

public RegisterContentCreator(String message)
Creates a new content creator with an initial message

Parameters:
message - - initial message
Method Detail

createFormSheetContent

protected void createFormSheetContent(sale.FormSheet fs)
Method will be called from the FormSheet to which this ContentCreator is added. So the Attribut fs will be this FormSheet. You have to bild the content of your formsheet in this method

Specified by:
createFormSheetContent in class sale.FormSheetContentCreator
Parameters:
fs - - FormSheet to which this ContentCreator was added.

getUserName

public String getUserName()
Returns the value of the username.

Returns:
- the username

getPassword

public char[] getPassword()
Returns the value of the password.

Returns:
- the value of the password as an char array

getConfirmedPassword

public char[] getConfirmedPassword()
Returns the value of the confirmed password.

Returns:
- the value of the password as an char array

setUserName

public void setUserName(String userName)
Sets the value of the username

Parameters:
userName - - value of the username

setErrorMessage

public void setErrorMessage(String message)
Sets the error message to this formsheet.

Parameters:
message - - an error massage.

Videoautomat