public class CreateEventActivity
extends AppCompatActivity
Modifier and Type | Class and Description |
---|---|
static class |
CreateEventActivity.DatePickerFragment
DatePicker static class that handles operations of the time selection fragment
|
static class |
CreateEventActivity.TimePickerFragment
TimePicker static class that handles operations of the time selection fragment
|
Modifier and Type | Field and Description |
---|---|
private android.widget.EditText |
address1Ref
Reference to the similarly-named UI element
|
private android.widget.EditText |
address2Ref
Reference to the similarly-named UI element
|
private android.widget.EditText |
cityRef
Reference to the similarly-named UI element
|
private android.widget.EditText |
countryRef
Reference to the similarly-named UI element
|
private CreateEventActivity.DatePickerFragment |
dateFrag
System-generated pop-up window that allows for selection of a date for the event.
|
private android.widget.TextView |
dateRef
Reference to the similarly-named UI element
|
private android.widget.EditText |
descriptionRef
Reference to the similarly-named UI element
|
private android.app.Activity |
myActivity
Reference to this activity (
CreateEventActivity ) |
private android.widget.EditText |
nameRef
Reference to the similarly-named UI element
|
private RequestQueue |
queue
Queue for asynchronous processes
|
private android.widget.EditText |
regionRef
Reference to the similarly-named UI element
|
private CreateEventActivity.TimePickerFragment |
timeFrag
System-generated pop-up window that allows for selection of a time for the event
|
private android.widget.TextView |
timeRef
Reference to the similarly-named UI element
|
Constructor and Description |
---|
CreateEventActivity() |
Modifier and Type | Method and Description |
---|---|
void |
createEvent(android.view.View v)
Create an event based on the entered data after validating it
|
boolean |
isValid()
Check whether the data entered by the user (if any) is valid and complete
|
protected void |
onCreate(android.os.Bundle savedInstanceState)
Initialize activity with saved state
|
void |
showDatePickerDialog(android.view.View v)
Show the calendar dialog to let the user select the event date
Intended to be called when the user presses button to set date
|
void |
showTimePickerDialog(android.view.View v)
Show the clock dialog to let the user select the event start time
Intended to be called when user presses button to set time
|
private CreateEventActivity.DatePickerFragment dateFrag
CreateEventActivity.DatePickerFragment
private CreateEventActivity.TimePickerFragment timeFrag
CreateEventActivity.TimePickerFragment
private android.widget.TextView dateRef
private android.widget.TextView timeRef
private android.widget.EditText nameRef
private android.widget.EditText address1Ref
private android.widget.EditText address2Ref
private android.widget.EditText cityRef
private android.widget.EditText regionRef
private android.widget.EditText countryRef
private android.widget.EditText descriptionRef
private RequestQueue queue
private android.app.Activity myActivity
CreateEventActivity
)protected void onCreate(android.os.Bundle savedInstanceState)
savedInstanceState
- State to use for initializationpublic void showTimePickerDialog(android.view.View v)
v
- The button that was clicked to show the time pickerpublic void showDatePickerDialog(android.view.View v)
v
- The button that was clicked to show the date pickerpublic void createEvent(android.view.View v)
v
- The button that was clicked to create the eventpublic boolean isValid()