Package com.google.livingstories.client

Examples of com.google.livingstories.client.DefaultContentItem


  private Widget createNewContentItemButton() {
    Button newContentItemButton = new Button("New Content Entity");
    newContentItemButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        createOrChangeContentItem(new DefaultContentItem(
            null, livingStorySelector.getSelectedLivingStoryId()), false, null);
      }
    });
    return newContentItemButton;
  }
View Full Code Here


 
  private BaseContentItem toClientObjectImpl() {
    switch (getContentItemType()) {
      case EVENT:
        if (getEventUpdate().isEmpty()) {
          return new DefaultContentItem(getId(), getLivingStoryId());
        } else {
          return new EventContentItem(getId(), getTimestamp(), getContributorIds(),
              getImportance(), getLivingStoryId(), getEventStartDate(), getEventEndDate(),
              getEventUpdate(), getEventSummary(), getContent());
        }
View Full Code Here

TOP

Related Classes of com.google.livingstories.client.DefaultContentItem

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.