public class StoreOrdersActivity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private <any> |
adapter |
private java.util.ArrayList<java.lang.Integer> |
adapterList |
private Order |
currentOrder |
private ListView |
currentOrderList |
private Spinner |
orderSelector |
private <any> |
spinnerAdapter |
private StoreOrder |
storeOrder |
Modifier and Type | Method and Description |
---|---|
private void |
cancelButtonSetup()
Sets up the cancel order button.
|
private Order |
findOrder(int targetID)
Helper method to find a specific order.
|
protected void |
onCreate(Bundle savedInstanceState)
Performs necessary setup when activity is created.
|
void |
onItemSelected(<any> parent,
View view,
int position,
long id)
Determines the action when an item is selected.
|
void |
onNothingSelected(<any> parent)
Determines the action when nothing is selected.
|
private void |
update()
Updates the item list for the current order when the order is changed.
|
private <any> adapter
private java.util.ArrayList<java.lang.Integer> adapterList
private Order currentOrder
private ListView currentOrderList
private Spinner orderSelector
private <any> spinnerAdapter
private StoreOrder storeOrder
private void cancelButtonSetup()
private Order findOrder(int targetID)
targetID
- the id of the order.protected void onCreate(Bundle savedInstanceState)
savedInstanceState
- the saved information from the last time the activity was accessed.public void onItemSelected(<any> parent, View view, int position, long id)
parent
- the AdapterView of the order list.view
- the current view.position
- the position of the selected item.id
- the id of the selected item.public void onNothingSelected(<any> parent)
parent
- the AdapterView of the order list.private void update()