Package org.eclipse.wb.core.model.broadcast

Examples of org.eclipse.wb.core.model.broadcast.JavaInfoSetObjectAfter


  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void setJavaInfo(JavaInfo javaInfo) throws Exception {
    super.setJavaInfo(javaInfo);
    m_container.addBroadcastListener(new JavaInfoSetObjectAfter() {
      public void invoke(JavaInfo target, Object o) throws Exception {
        if (target == m_container) {
          Object layout = ReflectionUtils.invokeMethod(o, "getLayout()");
          m_javaInfo.setObject(layout);
        }
View Full Code Here


  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void setJavaInfo(JavaInfo javaInfo) throws Exception {
    super.setJavaInfo(javaInfo);
    m_javaInfo.setObject(m_dataObject);
    m_component.addBroadcastListener(new JavaInfoSetObjectAfter() {
      public void invoke(JavaInfo target, Object object) throws Exception {
        // check, may be this creation support is not active
        if (m_javaInfo.getCreationSupport() != VirtualLayoutDataCreationSupport.this) {
          m_component.removeBroadcastListener(this);
          return;
View Full Code Here

            "  com.google.gwt.user.client.ui.RootPanel __wbp_panel = com.google.gwt.user.client.ui.RootPanel.get();",
            "  __wbp_panel.setPixelSize(800, 600);",});
    // prepare component
    final WidgetInfo widget = createClone();
    // broadcast for set widget as "live"
    widget.addBroadcastListener(new JavaInfoSetObjectAfter() {
      public void invoke(JavaInfo target, Object o) throws Exception {
        if (target == widget) {
          widget.removeBroadcastListener(this);
          m_utils.setLiveWidget(o);
        }
View Full Code Here

    {
      // drop Canvas on RootPanel
      panel.command_CREATE2(parentCanvas, null);
      panel.command_BOUNDS(parentCanvas, new Point(10, 10), new Dimension(700, 500));
      // broadcast for set widget as "live"
      parentCanvas.addBroadcastListener(new JavaInfoSetObjectAfter() {
        public void invoke(JavaInfo target, Object o) throws Exception {
          if (target == parentCanvas) {
            parentCanvas.removeBroadcastListener(this);
            m_utils.setLiveWidget(o);
          }
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void setJavaInfo(JavaInfo javaInfo) throws Exception {
    super.setJavaInfo(javaInfo);
    m_javaInfo.setObject(m_dataObject);
    m_widget.addBroadcastListener(new JavaInfoSetObjectAfter() {
      public void invoke(JavaInfo target, Object object) throws Exception {
        // check, may be this creation support is not active
        if (m_javaInfo.getCreationSupport() != VirtualLayoutDataCreationSupport.this) {
          m_widget.removeBroadcastListener(this);
          return;
View Full Code Here

TOP

Related Classes of org.eclipse.wb.core.model.broadcast.JavaInfoSetObjectAfter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.