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