Package com.ateam.webstore.ui.views

Examples of com.ateam.webstore.ui.views.ContentView


    osv.setUserAddresses(ah.getUserAddresses());

    ShippingCodeHandler sch = new ShippingCodeHandler(req);
    osv.setShippers(sch.getShippingCodes(2));
   
    osv.addContentView(new ContentView(Constants.JSP_ORDER_SHIPPING, "Shipping Options"));
    osv.addContentView(new ContentView(Constants.JSP_ADDRESS, "Add New Shipping Address"));
   
    osv.setMessage(message);
    osv.setAddress(addr);
   
    return osv;
View Full Code Here


   
    CreditCardHandler cch = new CreditCardHandler(req);
   
    opv.setUserCards(cch.getUsersCards());
   
    opv.addContentView(new ContentView(Constants.JSP_ORDER_PAYMENT, "Payment Options"));
    opv.addContentView(new ContentView(Constants.JSP_CREDIT_CARD, "Add New Credit Card"));

    return opv;
  }
View Full Code Here

  public OrderDetailsView getOrderPreView() {
    OrderDetailsView odv = new OrderDetailsView(getMainView());
   
    odv.setOrder((Orders) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDER));
    odv.setItems((Collection<ItemsOrdered>) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDERED_ITEMS));
    odv.addContentView(new ContentView(JSP_ORDER_DETAILS, "Preview Your Order"));
    odv.setOrderPreview(true);
   
    return odv;
  }
View Full Code Here

      odv.setItems((Collection<ItemsOrdered>) req.getSession().getAttribute(SESSION_ATTRIBUTE_ORDERED_ITEMS));     
    }
   

   
    odv.addContentView(new ContentView(JSP_ORDER_DETAILS, "Order "+order.getId()));
   
    return odv;
  }
View Full Code Here

//    }
    Visitor v = (Visitor) req.getSession().getAttribute(SESSION_ATTRIBUTE_VISITOR);
    title = "All Orders";
    olv.setOrders(service.getByCustomerId(v.getCustomer().getId()))
   
    olv.addContentView(new ContentView(JSP_ORDER_LIST, title));
    return olv;
  }
View Full Code Here

      title = "All Orders";
      olv.setOrders(service.getAll())
    }
   
   
    olv.addContentView(new ContentView(JSP_ORDER_LIST, title));
    return olv;
  }
View Full Code Here

   */
  public View getMessageView(String message, String contentHeader) {
    View v = new View(getMainView());
    v.setMessage(message);
   
    v.addContentView(new ContentView(JSP_MESSAGE, contentHeader));
   
    return v;
   
  }
View Full Code Here

   *
   * @return
   */
  public View getAdminHomeView() {
    View v = getMainAdminView();
    v.addContentView(new ContentView(JSP_ADMIN_HOME, "Admin Home"));
    return v;
  }
View Full Code Here

   */
  public View getLoginView(String loginMessage, View l) {
   
    l.setShowLogonForm(false);
   
    ContentView cv = new ContentView(JSP_LOGIN, "Login");
   
    if (loginMessage != null) {
      l.setMessage(loginMessage);
    }
   
View Full Code Here

 
  public View getFeedbackView() {
   
    View v = new View(getMainView());
   
    v.addContentView(new ContentView(JSP_CUSTOMER_FEEDBACK, "Send Feedback"));
    return v;
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.ui.views.ContentView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.