Menu

Form

Stephen Bromley

Form Class

Wrapper class for database form objects. passed forward to the session when the user logs in.

Constructors

Form(int id, String name, String theFormHtml, String userId, Date lastEdited)

  1. name: the name of the form.
  2. theFormHtml: the stored html of the form.
  3. id: id of the form.
  4. userID: the user ID linked to the form.
  5. lastEdited: the date the form was last edited.

Methods

getName:
Return type: String

returns name of form

setName:
Expected arguments: String name
Return type: Void

Sets the name of the form.

getUserId:
Return type: String

returns the linked user id

setUserId:
Expected arguments: Boolean isActive
Return type: void

Sets the linked user id

getTheFormHTML:
Return type: String

returns the HTML of the form

setTheFormHTML:
Expected arguments: String theHTML
Return type: void

Sets the form HTML

getId:
Return type: String

Returns form id.

setId:
Expected arguments: int id
Return type: Void

Sets the form id.

getLastEdited:
Return type: Date

Returns the date the form was last edited.

setLastEdited:
Expected arguments: Date lastEdited
Return type: Void

Sets the forms last edit date.


Related

Wiki: Home