示例#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
 public VerticalPanel() {
   super(BoxOrient.vertical, BoxPack.start, BoxAlign.baseline);
   Utils.Widgets.setPrimaryCssClass(this, ThemeManager.getTheme().verticalpanel());
   updateUi(this);
 }
示例#3
0
 @Override
 public void onDroppingEnd(DroppingEvent e) {
   Utils.Widgets.removeExtensionCssClass(DroppablePanel.this, ThemeConstants.Extension.crossing);
   Utils.Widgets.removeExtensionCssClass(DroppablePanel.this, ThemeConstants.Extension.highlight);
 }
示例#4
0
 @Override
 public void onDroppingStart(DroppingEvent e) {
   Utils.Widgets.setExtensionCssClass(this, ThemeConstants.Extension.highlight);
 }
示例#5
0
 public DroppablePanel() {
   Utils.Widgets.setPrimaryCssClass(this, ThemeManager.getTheme().droppablepanel());
 }