Package net.sf.jwan.servlet.gui.menu

Examples of net.sf.jwan.servlet.gui.menu.WanMenu


  {
   
    ExampleSublayer exSub = new ExampleSublayer();
      exSub.render(new Properties())
     
    WanMenu wmProgram = new WanMenu();
      wmProgram.setTitle("First Menu")
      AbstractWanServletLayer wdl = (AbstractWanServletLayer)exSub;
      WanMenuEntry wmiSub = new WanMenuEntry();
        wmiSub.setName(wdl.getLayerTitle());
        wmiSub.setHtmlref(wdl.getHtmlHref());
        wmProgram.addItem(wmiSub);
   
    WanDiv div = new WanDiv();
      div.setDivclass(WanDiv.DivClass.iBlock);
      div.addContent(new WanParagraph("This is Paragraph"))
     
View Full Code Here


  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
  {   
    response.setStatus(HttpServletResponse.SC_OK);
    response.setContentType("text/html");
   
    WanMenu wm = new WanMenu();
    wm.setTitle("Main Menu");
   
    WanMenuEntry wmi = new WanMenuEntry();
    wmi.setName("jWAN Item");
   
    HtmlHref href = lyrMenu.getLayerTarget();
    href.setRev(HtmlHref.Rev.async);
   
    wmi.setHtmlref(href);
    wm.addItem(wmi);
   
    WanContentLayer mainLayer = new WanContentLayer("Home");
      mainLayer.setLayerTitle("Home");
      mainLayer.setSubDiv(false);
      mainLayer.addContent(wm);
View Full Code Here

TOP

Related Classes of net.sf.jwan.servlet.gui.menu.WanMenu

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.