@Override
 public void resetQuestionView() {
   openEndedQuestionText.setHTML("");
   hintsButton.setText(i18n.GL0667());
   hintsButton.getElement().setAttribute("alt", i18n.GL0667());
   hintsButton.getElement().setAttribute("title", i18n.GL0667());
   hintsButton.setStyleName(oeStyle.hintsActiveButton());
   explanaionButton.setStyleName(oeStyle.hintsActiveButton());
   explanationContainer.removeStyleName(oeStyle.explanationTextBorder());
   hintsContainer.clear();
   explanationContainer.clear();
   clearAnswerOptionsContainer();
   openEndedQuestionImage.getElement().removeAttribute("src");
 }
예제 #2
0
  public void setType(String type) {
    this.type = type;
    switch (type) {
      case "fixed":
        navBar.addStyleName("navbar-" + type);
        break;

      default:
        navBar.addStyleName("navbar-fixed");
        anchor.addStyleName("left");
        navigation.addStyleName("right");
        break;
    }

    if (type.contains("no-padding")) {
      wrapper.removeStyleName("container");
    }
  }
예제 #3
0
 @Override
 public void deactivate() {
   root.removeStyleName("active"); // $NON-NLS-1$
 }