See: Description
| Class | Description |
|---|---|
| CartPanel |
CartPanel displays the contents of the "shoppping cart" and allows the user to add/remove items and "check out"
(complete) the order.
|
| CartPanel.CartModel |
The cart component model.
|
| CartPanel.CartTableModel |
The data model for the cart table.
|
| ConfirmOrderPanel |
ConfirmOrderPanel allows a user to confirm their order and enter shipping and payment details.
|
| CostRenderer |
CostRenderer renders a dollar amount specified as an int, in cents.
|
| InventoryCostRenderer |
CostRenderer renders the cost of the inventory item, and indicates whether it is on sale.
|
| InventoryCountRenderer |
CostRenderer renders the availability of the inventory item.
|
| NavigationBar |
The navigation bar for the PetStore application.
|
| PetStoreApp |
The Pet Store application main component.
|
| PetStoreLookupTable |
A slightly more realistic example LookupTable implementation.
|
| PetStoreLookupTable.TableEntry |
Represents an entry in a table.
|
| ProductDetailView |
ProductDetailView shows details for a particular product and allows the user to add it to their shopping cart.
|
| ProductImage |
Encapsulation of a product image.
|
| ProductTable |
Displays the list of products in the store and allows a user to view a product or add it to their shopping cart.
|
| ProductTable.ProductLink |
A custom WButton that obtains its text from the bean and views a product when clicked.
|
| ProductTable.ProductTableModel |
The data model for the product table.
|
| UpdateCartComponent |
A component to update the quantity of an item in the user's shopping cart.
|
The application ("PetStoreApp") is a mock-up of an online store, using a format most people are familiar with. The store features a product-listing, from which users can view products and add them to their "shopping cart". To complete an order, users select to "check out" their cart and fill in contact and payment details.
PetStoreApp can be run from the Local Development Environment (LDE). Instructions on setting up the LDE can be found
in the WComponent Maven site documentation.
To configure the LDE to run the PetStoreApp, set the following value in your local_app.properties file:
ui.web.component.to.launch=com.github.bordertech.wcomponents.examples.petstore.PetStoreApp
com.github.bordertech.wcomponents.examples.petstore -- contains the core application classes.com.github.bordertech.wcomponents.examples.petstore.beanprovider -- contains
BeanProviders to provide data to the UI.com.github.bordertech.wcomponents.examples.petstore.model -- contains the PetStore data beans.com.github.bordertech.wcomponents.examples.petstore.resources -- contains various binary
resources.Copyright © 2017. All rights reserved.