Package org.cast.isi

Examples of org.cast.isi.ISIApplication


  }
 
  protected ISortableDataProvider<Response> getResponseProvider() {
     ISortableDataProvider<Response> provider = responseService.getResponseProviderForPrompt(promptModel, mTargetUser);
    // response list sort order is set by application configuration
    ISIApplication app = ISIApplication.get();
    provider.getSortState().setPropertySortOrder(app.getResponseSortField(), app.getResponseSortState());
    return provider;
  }
View Full Code Here


  @Override
  protected ISortableDataProvider<Response> getResponseProvider() {
     ISortableDataProvider<Response> provider = responseService.getResponseProviderForPromptAndPeriod(promptModel, mPeriod);
    // response list sort order is set by application configuration
    ISIApplication app = ISIApplication.get();
    provider.getSortState().setPropertySortOrder(app.getResponseSortField(), app.getResponseSortState());
    return provider;
  }
View Full Code Here

  }

  @Override
  public void addButtons() {

    ISIApplication application = ISIApplication.get();
    BookmarkablePageLink<Void> homeLink = new BookmarkablePageLink<Void>("homeLink", application.getHomePage());
    application.setLinkProperties(homeLink);
    add(homeLink);
   
    BookmarkablePageLink<Void> contentsLink = new BookmarkablePageLink<Void>("contentsLink", application.getReadingPageClass());
    application.setLinkProperties(contentsLink);
    add(contentsLink);
   
    BookmarkablePageLink<Void> rcLink = new BookmarkablePageLink<Void>("myResponseCollectionsLink", application.getResponseCollectionsPageClass());
    rcLink.setVisible(application.isResponseCollectionsOn());
    application.setLinkProperties(rcLink);
    add(rcLink);

    BookmarkablePageLink<Void> questionsLink = new BookmarkablePageLink<Void>("myQuestionsLink", application.getMyQuestionsPageClass());
    questionsLink.setVisible(application.isMyQuestionsOn());
    application.setLinkProperties(questionsLink);
    add(questionsLink);

    BookmarkablePageLink<Void> tagsLink = new BookmarkablePageLink<Void>("myTagsLink", application.getTagsPageClass());
    tagsLink.setVisible(application.isTagsOn());
    application.setLinkProperties(tagsLink);
    add(tagsLink);

    notebookLink = new BookmarkablePageLink<Page>("notebookLink", application.getNotebookPageClass());
    application.setLinkProperties(notebookLink);
    notebookLink.setVisible(application.isNotebookOn());
    add(notebookLink);

    whiteboardLink = new BookmarkablePageLink<Page>("whiteboardLink", application.getWhiteboardPageClass());
    application.setLinkProperties(whiteboardLink);
    whiteboardLink.setVisible(application.isWhiteboardOn());
    add(whiteboardLink);
   
    glossaryLink = new GlossaryLink("glossaryLink", null);
    application.setLinkProperties(glossaryLink);
    glossaryLink.setVisible(application.isGlossaryOn());
    add(glossaryLink);
   

  }
View Full Code Here

  }

  @Override
  public void onBeforeRender() {
   
    ISIApplication application = ISIApplication.get();

    // Set the selected button to "current" button based on parent page
    Class<? extends Page> pageClass = getPage().getClass();
    String prefix = null;
   
    if (application.getHomePage().isAssignableFrom(pageClass))
      prefix="home";
    else if (application.getReadingPageClass().isAssignableFrom(pageClass))
      prefix = "contents";
    else if (application.getResponseCollectionsPageClass().isAssignableFrom(pageClass))
      prefix= "myResponseCollections";
    else if (application.getMyQuestionsPageClass().isAssignableFrom(pageClass))
      prefix = "myQuestions";
    else if (application.getTagsPageClass().isAssignableFrom(pageClass))
      prefix = "myTags";
   
    if (prefix != null) {
      WebMarkupContainer link = (WebMarkupContainer) get(prefix + "Link");
      link.add(new ClassAttributeModifier("current"));
View Full Code Here

TOP

Related Classes of org.cast.isi.ISIApplication

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.