com.google.gwt.user.client.ui.Widget.onLoad()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中com.google.gwt.user.client.ui.Widget.onLoad()方法的一些代码示例,展示了Widget.onLoad()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Widget.onLoad()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Widget
类名称:Widget
方法名:onLoad

Widget.onLoad介绍

[英]This method is called immediately after a widget becomes attached to the browser's document.
[中]此方法在小部件连接到浏览器文档后立即调用。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

@Override
protected void onLoad() {
 super.onLoad();
 // Issue 863: the state may need to fire a synthetic event if the native
 // onload event fired while the image was detached.
 state.onLoad(this);
}

代码示例来源:origin: com.google.gwt/gwt-servlet

onLoad();
AttachEvent.fire(this, true);

代码示例来源:origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
@Override
protected void onLoad() {
  super.onLoad();
  configure();
}

代码示例来源:origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
@Override
protected void onLoad() {
  super.onLoad();
  configure();
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras

/** {@inheritDoc} */
@Override
protected void onLoad() {
  super.onLoad();
  configure();
}

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

@Override
protected void onLoad() {
  super.onLoad();
  bindHandlers();
}

代码示例来源:origin: net.wetheinter/gwt-user

@Override
protected void onLoad() {
 super.onLoad();
 // Issue 863: the state may need to fire a synthetic event if the native
 // onload event fired while the image was detached.
 state.onLoad(this);
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

@Override
protected void onLoad() {
 super.onLoad();
 // Issue 863: the state may need to fire a synthetic event if the native
 // onload event fired while the image was detached.
 state.onLoad(this);
}

代码示例来源:origin: nmorel/gflot

@Override
protected void onLoad()
{
  super.onLoad();
  if ( !loaded )
  {
    createPlot();
  }
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras

/** {@inheritDoc} */
@Override
protected void onLoad() {
  super.onLoad();
  configure();
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras

@Override
protected void onLoad() {
  super.onLoad();
  switchInit(getElement());
}

代码示例来源:origin: VueGWT/vue-gwt

@Override
protected void onLoad() {
 super.onLoad();
 if (!isMounted()) {
  mountVueComponent();
 }
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras

@Override
protected void onLoad() {
  super.onLoad();
  switchInit(getElement());
}

代码示例来源:origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
@Override
protected void onLoad() {
  super.onLoad();
  configure(getElement(), template.name().toLowerCase(), defaultTime.name().toLowerCase(), minuteStep, showSeconds, secondStep, showMeridian,
      showInputs, disableFocus, modalBackdrop);
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras

@Override
protected void onLoad() {
  super.onLoad();
  final JavaScriptObject options = JavaScriptObject.createObject();
  if (formatterCallback != null) {
    setFormatterOption(options);
  }
  sliderNamespaceAvailable = isSliderNamespaceAvailable();
  initSlider(getElement(), options);
  bindSliderEvents(getElement());
}

代码示例来源:origin: com.extjs/gxt

@Override
protected void onLoad() {
 super.onLoad();
 if (disableTextSelection > 0) {
  disableTextSelection(disableTextSelection == 1);
 }
 DeferredCommand.addCommand(new Command() {
  public void execute() {
   if (monitorWindowResize && isAttached()) {
    if (windowResizeTask == null) {
     windowResizeTask = new DelayedTask(new Listener<BaseEvent>() {
      public void handleEvent(BaseEvent be) {
       onWindowResize(Window.getClientWidth(), Window.getClientHeight());
      }
     });
    }
    resizeHandler = Window.addResizeHandler(new ResizeHandler() {
     public void onResize(ResizeEvent event) {
      windowResizeTask.delay(windowResizeDelay);
     }
    });
   }
  }
 });
 fireEvent(Events.Attach);
 ComponentManager.get().register(this);
}

代码示例来源:origin: org.gwtbootstrap3/gwtbootstrap3-extras

/** {@inheritDoc} */
@Override
protected void onLoad() {
  super.onLoad();
  configure();
  // With the new update the parent must have position: relative for positioning to work
  if (getElement().getParentElement() != null) {
    getElement().getParentElement().getStyle().setPosition(Style.Position.RELATIVE);
  }
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras

/** {@inheritDoc} */
@Override
protected void onLoad() {
  super.onLoad();
  configure();
  // With the new update the parent must have position: relative for positioning to work
  if (getElement().getParentElement() != null) {
    getElement().getParentElement().getStyle().setPosition(Style.Position.RELATIVE);
  }
}

代码示例来源:origin: gwtbootstrap3/gwtbootstrap3-extras

@Override
protected void onLoad() {
  super.onLoad();
  final JavaScriptObject options = JavaScriptObject.createObject();
  if (formatterCallback != null) {
    setFormatterOption(options);
  }
  sliderNamespaceAvailable = isSliderNamespaceAvailable();
  initSlider(getElement(), options);
  bindSliderEvents(getElement());
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

onLoad();
AttachEvent.fire(this, true);

相关文章