Package org.cast.cwm.components

Examples of org.cast.cwm.components.ClassAttributeModifier


  public void setTeacherLinks() {
    // teacher links for notebook and glossary should be turned off and disabled if there is no student selected
    super.glossaryLink.setEnabled(false);
    super.notebookLink.setEnabled(false);
   
    super.glossaryLink.add(new ClassAttributeModifier("off"));
    super.notebookLink.add(new ClassAttributeModifier("off"));
  }
View Full Code Here


    ISIXmlSection target = ISIApplication.get().getPageNum(targetPageNum);
    if (target!=null)
      setParameter("loc", target.getContentLoc().getLocation());
    else {
      setEnabled(false);
      this.add(new ClassAttributeModifier("off"));
    }
  }
View Full Code Here

      }
      else
        item.add(new SimpleAttributeModifier("class", "questionP"));
    } else {
      if (isCurrent)
        link.add(new ClassAttributeModifier("selected"));

    }
  }
View Full Code Here

        rootSectionContainer.add(new Label("title", rs.getTitle()));
        rootSectionContainer.add(new Label("subtitle", rootSection.getSubTitle()));

        if (rootSection.equals(currentRootSection))
          rootSectionContainer.add(new ClassAttributeModifier("open"));

        WebMarkupContainer table = new WebMarkupContainer("periodTable");
        rootSectionContainer.add(table);

        table.add(new Label("periodName", new PropertyModel<String>(ISISession.get().getCurrentPeriodModel(), "name")));
View Full Code Here

  protected void addTaggingPanel () {
    WebMarkupContainer tagBox = new WebMarkupContainer("tagBox");
    add(tagBox);
    Boolean toggleState = userPreferenceService.getUserPreferenceBoolean(ISISession.get().getUserModel(), "tagToggle");
    if (toggleState != null) {
      tagBox.add(new ClassAttributeModifier("open", !toggleState));
    }       
    tagBox.setVisible(ISIApplication.get().isTagsOn());

    StateSavingCollapseBoxBehavior behavior = new StateSavingCollapseBoxBehavior("tagToggle", getPageName(), "tagToggle");
    tagBox.add(new WebMarkupContainer("tagBoxToggle").add(behavior));
View Full Code Here

    String crumbTrail = prompt.getContentElement().getContentLocObject().getSection().getCrumbTrailAsString(1, 1);
    add(new Label("crumbTrail", crumbTrail));
    // TODO: should target link to main window, not in popup
    BookmarkablePageLink<ISIStandardPage> link = new SectionLinkFactory().linkToPage("titleLink", prompt.getContentElement().getContentLocObject().getSection());
    link.add(new Label("title", prompt.getContentElement().getContentLocObject().getSection().getTitle()));
    link.add(new ClassAttributeModifier("sectionLink"));
    add(link);
    add(ISIApplication.get().iconFor(prompt.getContentElement().getContentLocObject().getSection().getSectionAncestor()));   
    add(makeSummary("promptResponseSummary", mPrompt));
   
    // Add the text associated with Prompt
View Full Code Here

        // Link back to content
        BookmarkablePageLink<ISIStandardPage> editLink = new SectionLinkFactory().linkTo(
            "editLink",
            prompt.getContentElement().getContentLocObject().getSection(),
            prompt.getContentElement().getXmlId());
        editLink.add(new ClassAttributeModifier("sectionLink"));
        item.add(editLink);
      }

    };
  }
View Full Code Here

          currentPrompt.getContentElement().getContentLocObject().getSection().getSectionAncestor()));

      // Add the title and link to the page where this note is located
      BookmarkablePageLink<ISIStandardPage> link = new SectionLinkFactory().linkToPage("titleLink", currentPrompt.getContentElement().getContentLocObject().getSection());
      link.add(new Label("sectionTitle", currentPrompt.getContentElement().getContentLocObject().getSection().getTitle()));
      link.add(new ClassAttributeModifier("sectionLink"));
      promptGroup.add(link);

      // Show the score
      promptGroup.add(new StudentScorePanel("responseScore", getModels(entry.getValue())));
View Full Code Here

        // Link back to content
        BookmarkablePageLink<ISIStandardPage> editLink = new SectionLinkFactory().linkTo(
            "editLink",
            currentPrompt.getContentElement().getContentLocObject().getSection(),
            currentPrompt.getContentElement().getXmlId());
        editLink.add(new ClassAttributeModifier("sectionLink"));
        item.add(editLink);
      }

    };
  }
View Full Code Here

        BookmarkablePageLink<ISIStandardPage> link = new SectionLinkFactory().linkToPage("sectionLink", section);
        sectionContainer.add(link);
        if (current) {
          link.setEnabled(false);
          link.add(new ClassAttributeModifier("current"));
          link.add(new IconContainer("iconContainer", section, iconFactory));
          sectionContainer.add(new WebMarkupContainer("current"));
        } else {
          WebMarkupContainer iconContainer = new WebMarkupContainer("iconContainer");
          link.add(iconContainer);
View Full Code Here

TOP

Related Classes of org.cast.cwm.components.ClassAttributeModifier

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.