Package org.cast.cwm.components

Examples of org.cast.cwm.components.Icon


   * @param wicketId to use for the image
   * @param sectionClass the class attribute of the section, which determines which image to use
   * @return an image component
   */
  public Icon makeIcon (String wicketId, String sectionClass) {
    return new Icon(wicketId, iconPathForSectionClassName(sectionClass));
  }
View Full Code Here


      mAlt = formatAltString(
          "isi.sectionStatusIconAlt.ready",
          "%s is ready for review",
          sectionModel);
    }
    return new Icon("icon", "img/icons/" + imageName + ".png", mAlt, mAlt);
  }
View Full Code Here

      mAlt = formatAltString(
          "isi.sectionStatusIconAlt.complete",
          "%s is completed",
          sectionModel);
    }
    return new Icon("icon", "img/icons/" + imageName + ".png", mAlt, mAlt);
  }
View Full Code Here

      }
     
    };
    link.add(new SimpleAttributeModifier("href", ResponseFeedbackPanel.getDivName()));
   
    button = new Icon("button", new AbstractReadOnlyModel<String>() {
      private static final long serialVersionUID = 1L;

      @Override
      public String getObject() {
        if (role.equals(Role.STUDENT))
View Full Code Here

          }
        };
      }
    };
   
    link.add(new Icon("image", "img/icons/expand_image.png"));
    add(link);
  }
View Full Code Here

  private class NotGotItButton extends WebMarkupContainer {
    private static final long serialVersionUID = 1L;

    private NotGotItButton(String id) {
      super(id);
      add(new Icon("icon", "img/icons/response_negative.png", "Didn't get it"));
    }
View Full Code Here

  private class GotItButton extends WebMarkupContainer {
    private static final long serialVersionUID = 1L;

    private GotItButton(String id) {
      super(id);
      add(new Icon("icon", "img/icons/response_positive.png", "Got it!"));
    }
View Full Code Here

  @Test
  public void hasCorrectImageWhenUnreviewed() {
    sectionStatus.setCompleted(true);
    sectionStatus.setReviewed(false);
    startWicket();
    Icon image = (Icon) wicketTester.getComponentFromLastRenderedPage("panel:component:doneImg");
    assertThat((String) image.getmImagePath().getObject(), equalTo("img/icons/check_notdone.png"));
  }
View Full Code Here

TOP

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

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.