Exemplo n.º 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;
 }
Exemplo n.º 2
0
  @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);
    }
  }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 6
0
 @Override
 public void setWidgetPosition(com.google.gwt.user.client.ui.IsWidget w, int left, int top) {
   setWidgetPosition(w.asWidget(), left, top);
 }
Exemplo n.º 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);
 }
Exemplo n.º 8
0
 @Override
 public int getIsWidgetTop(com.google.gwt.user.client.ui.IsWidget w) {
   return getWidgetTop(w.asWidget());
 }
Exemplo n.º 9
0
 /**
  * Overloaded version for IsWidget.
  *
  * @see #addWest(Widget,double)
  */
 public void addWest(IsWidget widget, double size) {
   this.addWest(widget.asWidget(), size);
 }
Exemplo n.º 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));
 }
Exemplo n.º 12
0
 @Override
 public void setWidget(final IsWidget w) {
   widget = (w == null) ? null : w.asWidget();
 }
Exemplo n.º 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());
 }
Exemplo n.º 15
0
 @Override
 public void insert(IsWidget w, int beforeIndex) {
   w.asWidget().getElement().getStyle().setDisplay(Display.BLOCK);
   super.insert(w, beforeIndex);
 }