Пример #1
0
  @Override
  public void onDroppingMove(DroppingEvent e) {

    Utils.Widgets.setExtensionCssClass(this, ThemeConstants.Extension.crossing);

    new Timer() {

      @Override
      public void run() {

        com.google.gwt.dom.client.Element e0 =
            Utils.Html.getElementFromPoint(
                (int) InputController.get().getCurrentPointingPosition().getX(),
                (int) InputController.get().getCurrentPointingPosition().getY());
        if (!e0.equals(getElement())) {
          Utils.Widgets.removeExtensionCssClass(
              DroppablePanel.this, ThemeConstants.Extension.crossing);
        }
      }
    }.schedule(500);
  }
Пример #2
0
 @Override
 public void onDroppingStart(DroppingEvent e) {
   Utils.Widgets.setExtensionCssClass(this, ThemeConstants.Extension.highlight);
 }