/**
 * abstract cell class for rendering recommendation icon
 *
 * @author Lucas Reeh
 */
public class RecommendedChartCell extends AbstractCell<Boolean> {

  final AbstractImagePrototype imageRes =
      AbstractImagePrototype.create(COModuleRecommenderResources.IMAGES.star_16());

  final Image image = imageRes.createImage();

  /** @param consumedEvents */
  public RecommendedChartCell(Set<String> consumedEvents) {
    super(consumedEvents);
    image.setTitle(COModuleRecommenderResources.TEXT.recommendationFromStudentsLong());
  }

  /** @param consumedEvents */
  public RecommendedChartCell(String... consumedEvents) {
    super(consumedEvents);
    image.setTitle(COModuleRecommenderResources.TEXT.recommendationFromStudentsLong());
  }

  @Override
  public void render(Context context, Boolean value, SafeHtmlBuilder sb) {
    if (value) {
      SafeHtml html = SafeHtmlUtils.fromTrustedString(image.toString());
      sb.append(html);
    }
  }
}
  public TeachersUI() {
    setScrollMode(Scroll.AUTO);
    setId("centerPanelBackground");
    addStyleName("uiContainer");
    setHeaderVisible(false);

    image = Resources.ICONS.image();
    add(image.createImage());

    String text = "<br><center><font color='orange' size='5px'>Teachers</font></center>";
    text += "<h2>Teachers directions here </h2> ";
    label = new Label();
    label.setText(text);
    add(label);

    videoPanel = new ContentPanel();
    videoPanel.setId("jwplayer");
    videoPanel.setHeaderVisible(false);
    videoPanel.setBodyBorder(false);
    add(videoPanel);

    Timer timer =
        new Timer() {

          @Override
          public void run() {
            loadVideoPlayer();
          }
        };

    timer.schedule(50);
  }
 protected Widget createFalseWidget() {
   return falsePrototype.createImage();
 }
 protected Widget createTrueWidget() {
   return truePrototype.createImage();
 }