Example #1
0
 public void enablePreview() {
   //        if (null != itemDescription) {
   //            itemDescription.activate();
   //            return;
   //        }
   itemDescription =
       new Tooltip(
           this,
           new HTML(
               constants.previewHtml(item.getTitle(), item.getYear(), item.getCreator()), true),
           this.getAbsoluteLeft(),
           this.getAbsoluteTop(),
           dimensions.thumbnailWidth(),
           dimensions.thumbnailHeight());
   itemDescription.setStyleName("tooltip-item");
   itemDescription.addStyleName("invisible");
   itemDescription.setWidth(dimensions.thumbnailWidth() + "px");
   itemDescription.activate();
 }
Example #2
0
 @Override
 public void buildLayout() {
   add(thumbnail);
   width = dimensions.thumbnailWidth();
   height = dimensions.thumbnailHeight();
 }
Example #3
0
 @Override
 public int getHeight() {
   return dimensions.thumbnailHeight();
 }
Example #4
0
 @Override
 public int getWidth() {
   return dimensions.thumbnailWidth();
 }