Package com.google.livingstories.client

Examples of com.google.livingstories.client.Theme


    ChangeHandler themeSelectionHandler = new ChangeHandler() {
      @Override
      public void onChange(ChangeEvent event) {
        clearEditArea();
        Long selectedContentId = Long.valueOf(themeListBox.getSelectedItemValue());
        Theme selectedContent = idToContentMap.get(selectedContentId);
        nameBox.setText(selectedContent.getName());
       
        deleteButton.setEnabled(true);
      }
    };
    themeListBox.addChangeHandler(themeSelectionHandler);
View Full Code Here


        }
      }
    };
   
    livingStoryService.saveTheme(
        new Theme(createNewTheme ? null : id, name, livingStoryId), callback);
  }
View Full Code Here

  public void setLivingStoryId(Long livingStoryId) {
    this.livingStoryId = livingStoryId;
  }
  public Theme toClientObject() {
    return new Theme(getId(), getName(), getLivingStoryId());
  }
View Full Code Here

    return themeDataService.retrieveById(id);
  }
 
  @Override
  public synchronized Theme saveTheme(Theme theme) {
    Theme result = themeDataService.save(theme);
    // Clear caches
    Caches.clearLivingStoryThemes(theme.getLivingStoryId());
    Caches.clearLivingStoryThemeInfo(theme.getLivingStoryId());
    return result;
  }
View Full Code Here

TOP

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

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.