Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.GuestBook


    // get the selected object
    Listitem item = listbox_GuestBookList.getSelectedItem();

    if (item != null) {

      GuestBook aGuestBook = (GuestBook) item.getValue();

      // CAST AND STORE THE SELECTED OBJECT
      textbox_GuestBook_gubText.setValue(aGuestBook.getGubText());
    }
  }
View Full Code Here


    // create a new GuestBook object
    /** !!! DO NOT BREAK THE TIERS !!! */
    // We don't create a new DomainObject() in the frontend.
    // We GET it from the backend.
    GuestBook aGuestBook = getGuestBookService().getNewGuestBook();
    aGuestBook.setGubDate(new Date());

    showDetailView(aGuestBook);

  }
View Full Code Here

    // get the selected object
    Listitem item = listbox_GuestBookList.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      GuestBook aGuestBook = (GuestBook) item.getValue();

      showDetailView(aGuestBook);
    }
  }
View Full Code Here

  private final static Logger logger = Logger.getLogger(GuestBookListtemRenderer.class);

  @Override
  public void render(Listitem item, Object data) throws Exception {

    final GuestBook guestBook = (GuestBook) data;

    Listcell lc = null;

    lc = new Listcell(getFormattedDateTime(guestBook.getGubDate()));
    lc.setParent(item);
    lc = new Listcell(guestBook.getGubUsrname());
    lc.setParent(item);
    lc = new Listcell(guestBook.getGubSubject());
    lc.setParent(item);

    item.setValue(data);
    ComponentsCtrl.applyForward(item, "onDoubleClick=onDoubleClickedGuestBookItem");
  }
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.GuestBook

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.