public class MainActivity
extends android.support.v7.app.AppCompatActivity
Modifier and Type | Field and Description |
---|---|
static Order |
currentOrder |
static int |
currentOrderNumber |
static java.text.DecimalFormat |
format |
static StoreOrder |
storeOrders |
Constructor and Description |
---|
MainActivity() |
Modifier and Type | Method and Description |
---|---|
static void |
addToOrder(java.lang.Object object)
Adds a pizza to the current order.
|
protected void |
onCreate(Bundle savedInstanceState)
Prepares and displays the view.
|
static void |
placeOrder()
Places the current order to store orders.
|
void |
toOrderForum(View view)
Starts the order forum activity.
|
void |
toOrders(View view)
Starts the current order activity.
|
void |
toStore(View view)
Starts the store order activity.
|
addContentView, closeOptionsMenu, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onDestroy, onKeyDown, onMenuItemSelected, onMenuOpened, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onSaveInstanceState, onStart, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, openOptionsMenu, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getLastCustomNonConfigurationInstance, getLifecycle, getSupportFragmentManager, getSupportLoaderManager, getViewModelStore, onActivityResult, onAttachFragment, onBackPressed, onCreatePanelMenu, onCreateView, onCreateView, onLowMemory, onMultiWindowModeChanged, onNewIntent, onPause, onPictureInPictureModeChanged, onPrepareOptionsPanel, onPreparePanel, onRequestPermissionsResult, onResume, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, startActivityForResult, startActivityForResult, startActivityFromFragment, startActivityFromFragment, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
public static Order currentOrder
public static int currentOrderNumber
public static java.text.DecimalFormat format
public static StoreOrder storeOrders
public static void addToOrder(java.lang.Object object)
object
- the pizza object to add to the order.protected void onCreate(Bundle savedInstanceState)
onCreate
in class android.support.v7.app.AppCompatActivity
savedInstanceState
- any information from the last time this page was accessed.public static void placeOrder()
public void toOrderForum(View view)
view
- the current view.public void toOrders(View view)
view
- the current view.public void toStore(View view)
view
- the current view.