/** {@inheritDoc} */
 @Override
 public void paintContent(PaintTarget target) throws PaintException {
   super.paintContent(target);
   if (dropHandler != null && isEnabled()) {
     dropHandler.getAcceptCriterion().paint(target);
   }
 }
  /*
   * (non-Javadoc)
   *
   * @see
   * com.vaadin.ui.AbstractOrderedLayout#translateDropTargetDetails(java.util
   * .Map)
   */
  @Override
  public void paintContent(PaintTarget target) throws PaintException {
    super.paintContent(target);

    if (dropHandler != null) {
      dropHandler.getAcceptCriterion().paint(target);
    }

    // Drop ratio
    target.addAttribute(Constants.ATTRIBUTE_VERTICAL_DROP_RATIO, verticalDropRatio);

    // Drop ratio
    target.addAttribute(VHasDragMode.DRAGMODE_ATTRIBUTE, dragMode.ordinal());

    // Shims
    target.addAttribute(IframeCoverUtility.SHIM_ATTRIBUTE, iframeShims);

    // Paint the dragfilter into the paint target
    new DragFilterPaintable(this).paint(target);
  }