Example #1
0
 private SimplePanel horizontalWrapper(IsWidget child, String width) {
   SimplePanel wrapper = new SimplePanel(child.asWidget());
   wrapper.setStyleName("goon-horizontalWrapper");
   Style style = wrapper.getElement().getStyle();
   style.setProperty("display", "table-cell");
   if (childTextAlign != null) style.setTextAlign(childTextAlign);
   if (width != null) wrapper.setWidth(width);
   return wrapper;
 }
  @Override
  public void setInSlot(Object slot, IsWidget content) {
    Widget wContent = content.asWidget();

    if (slot == Slots.Test) {
      scriptWidgetPanel.add(wContent);
    } else if (slot == Slots.Categories) {
      categories.add(wContent);
    } else if (slot == Slots.Attributes) {
      attributes.add(wContent);
    }
  }
 /**
  * animate to a given widget. If this is called while an animation is running this is a noop.
  *
  * @param w the widget to animate to
  * @param animation the animation to use
  * @param callback a callback that will be called once the animation is finished
  */
 public void goTo(IsWidget w, Animation animation, AnimationEndCallback callback) {
   goTo(w.asWidget(), animation, callback);
 }
Example #4
0
 /**
  * Hides button on part toolbar.
  *
  * @param button button
  */
 public final void hideToolButton(@NotNull IsWidget button) {
   if (button != null) {
     toolbarHeader.setWidgetHidden(button.asWidget(), true);
   }
 }
Example #5
0
 /**
  * Sets button visible on part toolbar.
  *
  * @param button button
  */
 public final void showToolButton(@NotNull IsWidget button) {
   if (button != null) {
     toolbarHeader.setWidgetHidden(button.asWidget(), false);
   }
 }
Example #6
0
 @Override
 public void setWidgetPosition(com.google.gwt.user.client.ui.IsWidget w, int left, int top) {
   setWidgetPosition(w.asWidget(), left, top);
 }
Example #7
0
 @Override
 public void insert(com.google.gwt.user.client.ui.IsWidget w, int left, int top, int beforeIndex) {
   insert(w.asWidget(), left, top, beforeIndex);
 }
Example #8
0
 @Override
 public int getIsWidgetTop(com.google.gwt.user.client.ui.IsWidget w) {
   return getWidgetTop(w.asWidget());
 }
Example #9
0
 /**
  * Overloaded version for IsWidget.
  *
  * @see #addWest(Widget,double)
  */
 public void addWest(IsWidget widget, double size) {
   this.addWest(widget.asWidget(), size);
 }
Example #10
0
 /**
  * Overloaded version for IsWidget.
  *
  * @see #addSouth(Widget,double)
  */
 public void addSouth(IsWidget widget, double size) {
   this.addSouth(widget.asWidget(), size);
 }
 @Override
 public void startDropController(PickupDragController controller, IsWidget layout) {
   controller.registerDropController(new DropFormItemController(layout.asWidget(), this));
 }
Example #12
0
 @Override
 public void setWidget(final IsWidget w) {
   widget = (w == null) ? null : w.asWidget();
 }
Example #13
0
 @Override
 public void setInSlot(Object slot, IsWidget content) {
   if (slot == DeriveVariablePresenter.Display.Slots.Summary) {
     scriptEvaluationStep.add(content.asWidget());
   }
 }
 protected void setWidget(IsWidget view) {
   display.setWidget(view.asWidget());
 }
Example #15
0
 @Override
 public void insert(IsWidget w, int beforeIndex) {
   w.asWidget().getElement().getStyle().setDisplay(Display.BLOCK);
   super.insert(w, beforeIndex);
 }