Examples of Guestbook


Examples of de.forsthaus.backend.model.GuestBook

    // get the params map that are overhanded by creation.
    Map<String, Object> args = getCreationArgsMap(event);

    if (args.containsKey("guestBook")) {
      GuestBook guestBook = (GuestBook) args.get("guestBook");
      setGuestBook(guestBook);
    } else {
      setGuestBook(null);
    }
View Full Code Here

Examples of de.forsthaus.backend.model.GuestBook

   *
   * @throws InterruptedException
   */
  private void doDelete() throws InterruptedException {

    final GuestBook guestBook = getGuestBook();

    // Show a confirm box
    String msg = Labels.getLabel("message.Question.Are_you_sure_to_delete_this_record") + "\n\n --> " + guestBook.getGubDate() + "/" + guestBook.getGubSubject();
    String title = Labels.getLabel("message.Deleting.Record");

    MultiLineMessageBox.doSetTemplate();
    if (MultiLineMessageBox.show(msg, title, MultiLineMessageBox.YES | MultiLineMessageBox.NO, Messagebox.QUESTION, new EventListener() {
      @Override
View Full Code Here

Examples of de.forsthaus.backend.model.GuestBook

  private void doNew() {

    /** !!! 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();

    // init with actual date
    aGuestBook.setGubDate(new Date());

    setGuestBook(aGuestBook);

    doClear(); // clear all commponents
    doEdit(); // edit mode
View Full Code Here

Examples of de.forsthaus.backend.model.GuestBook

   */
  @Secured( { btnCtroller_ClassPrefix + "btnSave" })
  public void doSave() throws InterruptedException {
    System.out.println("doSave");

    GuestBook aGuestBook = getGuestBook();

    // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    // force validation, if on, than execute by component.getValue()
    // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    if (!isValidationOn()) {
View Full Code Here

Examples of de.forsthaus.backend.model.GuestBook

      int rowIndex = 0;
      // only for correct showing after Rendering. No effect as an Event
      // yet.
      listbox_GuestBookList.setSelectedIndex(rowIndex);
      // get the first entry and cast them to the needed object
      GuestBook aGuestBook = (GuestBook) lml.get(rowIndex);
      if (aGuestBook != null) {
        textbox_GuestBook_gubText.setValue(aGuestBook.getGubText());
      }
    }

  }
View Full Code Here

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

Examples of de.forsthaus.backend.model.GuestBook

    // 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

Examples of de.forsthaus.backend.model.GuestBook

    // 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

Examples of de.forsthaus.backend.model.GuestBook

  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

Examples of gaej2011.model.Guestbook

    }

    @Test
    public void saveToDatastore_entityの内容() {
        Key key = GuestbookService.saveToDatastore(" 投稿内容");
        Guestbook guestbook = Datastore.get(Guestbook.class, key);
        assertThat(" 投稿内容が保存されている", guestbook.getMessage(), is(" 投稿内容"));
        assertThat(
            " 保存日時が保存されている",
            guestbook.getCreatedAt(),
            is(notNullValue()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.