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); }
/** * Hides button on part toolbar. * * @param button button */ public final void hideToolButton(@NotNull IsWidget button) { if (button != null) { toolbarHeader.setWidgetHidden(button.asWidget(), true); } }
/** * Sets button visible on part toolbar. * * @param button button */ public final void showToolButton(@NotNull IsWidget button) { if (button != null) { toolbarHeader.setWidgetHidden(button.asWidget(), false); } }
@Override public void setWidgetPosition(com.google.gwt.user.client.ui.IsWidget w, int left, int top) { setWidgetPosition(w.asWidget(), left, top); }
@Override public void insert(com.google.gwt.user.client.ui.IsWidget w, int left, int top, int beforeIndex) { insert(w.asWidget(), left, top, beforeIndex); }
@Override public int getIsWidgetTop(com.google.gwt.user.client.ui.IsWidget w) { return getWidgetTop(w.asWidget()); }
/** * Overloaded version for IsWidget. * * @see #addWest(Widget,double) */ public void addWest(IsWidget widget, double size) { this.addWest(widget.asWidget(), size); }
/** * 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)); }
@Override public void setWidget(final IsWidget w) { widget = (w == null) ? null : w.asWidget(); }
@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()); }
@Override public void insert(IsWidget w, int beforeIndex) { w.asWidget().getElement().getStyle().setDisplay(Display.BLOCK); super.insert(w, beforeIndex); }