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