コード例 #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;
 }
コード例 #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);
    }
  }
コード例 #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);
 }
コード例 #4
0
ファイル: BaseView.java プロジェクト: raphsoft/che
 /**
  * Hides button on part toolbar.
  *
  * @param button button
  */
 public final void hideToolButton(@NotNull IsWidget button) {
   if (button != null) {
     toolbarHeader.setWidgetHidden(button.asWidget(), true);
   }
 }
コード例 #5
0
ファイル: BaseView.java プロジェクト: raphsoft/che
 /**
  * Sets button visible on part toolbar.
  *
  * @param button button
  */
 public final void showToolButton(@NotNull IsWidget button) {
   if (button != null) {
     toolbarHeader.setWidgetHidden(button.asWidget(), false);
   }
 }
コード例 #6
0
 @Override
 public void setWidgetPosition(com.google.gwt.user.client.ui.IsWidget w, int left, int top) {
   setWidgetPosition(w.asWidget(), left, top);
 }
コード例 #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);
 }
コード例 #8
0
 @Override
 public int getIsWidgetTop(com.google.gwt.user.client.ui.IsWidget w) {
   return getWidgetTop(w.asWidget());
 }
コード例 #9
0
 /**
  * Overloaded version for IsWidget.
  *
  * @see #addWest(Widget,double)
  */
 public void addWest(IsWidget widget, double size) {
   this.addWest(widget.asWidget(), size);
 }
コード例 #10
0
 /**
  * Overloaded version for IsWidget.
  *
  * @see #addSouth(Widget,double)
  */
 public void addSouth(IsWidget widget, double size) {
   this.addSouth(widget.asWidget(), size);
 }
コード例 #11
0
 @Override
 public void startDropController(PickupDragController controller, IsWidget layout) {
   controller.registerDropController(new DropFormItemController(layout.asWidget(), this));
 }
コード例 #12
0
ファイル: Tooltip.java プロジェクト: jiakuan/gwtbootstrap3
 @Override
 public void setWidget(final IsWidget w) {
   widget = (w == null) ? null : w.asWidget();
 }
コード例 #13
0
ファイル: DeriveVariableView.java プロジェクト: kazoompa/opal
 @Override
 public void setInSlot(Object slot, IsWidget content) {
   if (slot == DeriveVariablePresenter.Display.Slots.Summary) {
     scriptEvaluationStep.add(content.asWidget());
   }
 }
コード例 #14
0
 protected void setWidget(IsWidget view) {
   display.setWidget(view.asWidget());
 }
コード例 #15
0
 @Override
 public void insert(IsWidget w, int beforeIndex) {
   w.asWidget().getElement().getStyle().setDisplay(Display.BLOCK);
   super.insert(w, beforeIndex);
 }