public class PetStoreApp extends WApplication implements MessageContainer
WApplication.ApplicationResource, WApplication.WApplicationModelAbstractWComponent.WComponentRefDEFAULT_APPLICATION_ID, DEFAULT_INTERNAL_ID, DEFAULT_NO_ID, ID_CONTEXT_SEPERATOR, ID_FRAMEWORK_ASSIGNED_SEPERATOR, ID_VALIDATION_PATTERN| Constructor and Description |
|---|
PetStoreApp()
Creates a PetStoreApp.
|
| Modifier and Type | Method and Description |
|---|---|
protected WComponent |
getActiveSection()
Retrieves the current active section in the application.
|
List<CartBean> |
getCart()
Retrieves the contents of the given user's cart.
|
WMessages |
getMessages() |
void |
placeOrder()
Places a user's order.
|
void |
showCart()
Displays the shopping cart for a single user.
|
void |
showOrderConfirmation()
Displays the order confirmation screen for a single user.
|
void |
showProductDetails(int productId)
Displays the product details for a single user.
|
void |
showProductListing()
Displays the product listing for a single user.
|
addCssFile, addCssResource, addCssUrl, addJsFile, addJsResource, addJsUrl, getComponentModel, getCssResources, getIcon, getIdName, getJsResources, getNamingContextId, getOrCreateComponentModel, getTitle, getUiVersionKey, handleStepError, hasUnsavedChanges, instance, isAppendID, isNamingContext, newComponentModel, removeAllCssResources, removeAllJsResources, removeCssResource, removeJsResource, setAppendID, setTitle, setUnsavedChanges, toStringadd, add, remove, removeAllsetNamingContextgetChildAt, getChildCount, getChildren, getIndexOfChildaddHtmlClass, addHtmlClass, addNotify, afterPaint, assertAddSupported, beforePaint, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getInternalId, getLabel, getName, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, handleRequest, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, paintComponent, preparePaint, preparePaintComponent, removeAttribute, removeComponentModel, removeHtmlClass, removeHtmlClass, removeNotify, replaceWComponent, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFlag, setFocussed, setHidden, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showErrorIndicatorsForComponent, showWarningIndicators, showWarningIndicatorsForComponent, tidyUpUIContext, tidyUpUIContextForTree, validate, validateComponent, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validategetChildAt, getChildCount, getChildren, getIndexOfChildprotected WComponent getActiveSection()
public void showProductListing()
public void showProductDetails(int productId)
productId - the id of the product to display.public void showOrderConfirmation()
public void showCart()
public void placeOrder()
public List<CartBean> getCart()
public WMessages getMessages()
getMessages in interface MessageContainerCopyright © 2017. All rights reserved.