public class Login
extends Activity
Modifier and Type | Field and Description |
---|---|
(package private) TextView |
client
TextView corresponding to the inputs visible to user on the login screen.
|
(package private) TextView |
date
TextView corresponding to the inputs visible to user on the login screen.
|
(package private) java.lang.String |
dateStringNOSLASH
String representation of the generated date string without slashes.
|
(package private) java.lang.String |
finalHeaders
String that holds the values to be output to the saved data file.
|
(package private) java.lang.String |
finalValues
String that holds the values to be output to the saved data file.
|
(package private) TextView |
raid
TextView corresponding to the inputs visible to user on the login screen.
|
(package private) SSJsonReader |
reader
SSJsonReader used temporarily for the login screen to retrieve
the current version number. |
(package private) TextView |
session
TextView corresponding to the inputs visible to user on the login screen.
|
(package private) TextView |
site
TextView corresponding to the inputs visible to user on the login screen.
|
Constructor and Description |
---|
Login() |
Modifier and Type | Method and Description |
---|---|
private void |
addData(java.lang.String key,
java.lang.String value)
Convenience method to add data to a single string variable to be
concatenated and then output to research data file.
|
boolean |
approveNext()
This method is called when the user presses the next button by
onLoginNext(View) method. |
void |
onBackPressed()
Android call to eliminate the back soft button functionality.
|
void |
onCreate(Bundle savedInstanceState)
This method is called by the system to inflate the layout for the Login
screen.
|
void |
onLoginNext(View v)
Method to be run when the user is presses the next button.
|
void |
showError(java.lang.String error)
Called when an error is detected in
approveNext() . |
TextView client
TextView date
java.lang.String dateStringNOSLASH
java.lang.String finalHeaders
java.lang.String finalValues
TextView raid
SSJsonReader reader
SSJsonReader
used temporarily for the login screen to retrieve
the current version number.TextView session
TextView site
private void addData(java.lang.String key, java.lang.String value)
key
- The header for the data.value
- The corresponding data value.public boolean approveNext()
onLoginNext(View)
method. This method makes sure all values
entered into the TextViews are valid.public void onBackPressed()
public void onCreate(Bundle savedInstanceState)
public void onLoginNext(View v)
Template1
,
Template2
, or Template3
)v
- The view to which the method call was generated from.public void showError(java.lang.String error)
approveNext()
. This method
uses the ErrorFragment
class to show error messages to the user.error
- The error string to be displayed.