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

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


   * buggy.
   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.php?44153
   */
  private void removeHtmlProperty_whenAddChild() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        if (parent == PanelInfo.this) {
          Property property = getPropertyByTitle("html");
          if (property.isModified()) {
View Full Code Here


   * on <code>RootPanel</code> when we call <code>getElement()</code>, so it will be attached even
   * if there are no association in source code. To solve this we should remove any dangling models
   * directly after parsing. We can not support "unknown" or "binary" associations.
   */
  private void hierarchy_removeIfDangling() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void bindComponents(List<JavaInfo> components) throws Exception {
        removeBroadcastListener(this);
        boolean isThisRoot = getCreationSupport() instanceof ThisCreationSupport;
        boolean isViewportRoot = getArbitraryValue(KEY_ROOT_PANEL) == Boolean.TRUE;
View Full Code Here

            ensureCheckItems_model();
          }
        }
      }
    });
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        // CycleButton must have at least one CheckItem
        if (child == m_this) {
          addDefaultCheckItem();
View Full Code Here

  /**
   * <code>PaddedPanel</code> requires content <code>Panel</code> to be passed as constructor
   * argument.
   */
  private void addContentPanelDuringCreate() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        if (child == m_this) {
          addContentPanel();
        }
View Full Code Here

  ////////////////////////////////////////////////////////////////////////////
  public TabPanelInfo(AstEditor editor,
      ComponentDescription description,
      CreationSupport creationSupport) throws Exception {
    super(editor, description, creationSupport);
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void bindComponents(List<JavaInfo> components) throws Exception {
        removeBroadcastListener(this);
        ensureTabsRendered();
      }
View Full Code Here

      if (!"com.gwtext.client.widgets.BoxComponent".equals(componentClassName)) {
        return;
      }
    }
    // add listeners
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void bindComponents(List<JavaInfo> components) throws Exception {
        String signature_setEl = "setEl(com.google.gwt.user.client.Element)";
        for (MethodInvocation invocation : getMethodInvocations(signature_setEl)) {
          List<Expression> arguments = DomGenerics.arguments(invocation);
View Full Code Here

            onWidgetRemoveAfter(widget);
          }
        }
      }
    });
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        // new Widget_Info added, ensure layout data
        if (isActiveOnContainer(parent) && child instanceof WidgetInfo) {
          ensureLayoutData((WidgetInfo) child);
View Full Code Here

  //
  // Clipboard
  //
  ////////////////////////////////////////////////////////////////////////////
  private void addClipboardSupport() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void clipboardCopy(JavaInfo javaInfo, List<ClipboardCommand> commands)
          throws Exception {
        if (isActiveOnContainer(javaInfo)) {
          clipboardCopy_addContainerCommands(commands);
View Full Code Here

    super.refresh_afterCreate();
    fetchElement();
  }

  private void fetchElement_duringParse() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void bindComponents(List<JavaInfo> components) throws Exception {
        fetchElement();
      }
    });
View Full Code Here

   * method adds the listener which forces the {@link LayoutDataInfo} materialization, so
   * {@link VariableSupport} has a chance to replace the {@link CreationSupport} instance for
   * underlying {@link JavaInfo}.
   */
  private void addMaterializeSupport() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void setPropertyExpression(GenericPropertyImpl property,
          String[] source,
          Object[] value,
          boolean[] shouldSet) throws Exception {
View Full Code Here

TOP

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

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.