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

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


  ////////////////////////////////////////////////////////////////////////////
  /**
   * Adds listeners to the {@link BroadcastSupport}.
   */
  private void addBroadcastListeners() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        ContainerInfo container = getContainer();
        // ensure that all widgets have LayoutData, at least virtual
        if (isActiveOnContainer(container)) {
          for (WidgetInfo widget : container.getChildrenWidgets()) {
View Full Code Here


  ////////////////////////////////////////////////////////////////////////////
  /**
   * Parses "row", "cell" and "customCell" elements into appropriate models.
   */
  private void parseRowsCells() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        Map<DocumentElement, CustomCell> customCells = Maps.newHashMap();
        DocumentElement gridElement = getElement();
        for (DocumentElement rowElement : gridElement.getChildren()) {
          if (rowElement.getTagLocal().equals("row")) {
View Full Code Here

   * <code>RootPanel</code>. We should break this binding.
   * <p>
   * http://fogbugz.instantiations.com/fogbugz/default.php?44635
   */
  private void dontBindToHierarchyIfThis() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        if (getCreationSupport() instanceof ThisCreationSupport && !isRoot()) {
          getParent().removeChild(WidgetInfo.this);
        }
      }
View Full Code Here

   * Problem is that when we parse UiBinder template, we bind children to their hierarchical
   * children, and "customHeader" is child of "panel", but "sibling" of its "content"
   * {@link WidgetInfo}. So, we fix this here.
   */
  private void tweakCustomHeadersHierarchy() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        List<?> layoutDataList =
            (List<?>) ReflectionUtils.getFieldObject(getObject(), "layoutData");
        for (Object layoutData : layoutDataList) {
          // prepare "header" model
View Full Code Here

  /**
   * Adds support for "customHeader".
   */
  private void tweakCustomHeadersHierarchy() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        List<?> tabs = (List<?>) ReflectionUtils.getFieldObject(getObject(), "tabs");
        for (WidgetInfo widget : getChildrenWidgets()) {
          int index = getWidgetIndex(widget);
          if (index == -1) {
View Full Code Here

  //
  // Broadcast events
  //
  ////////////////////////////////////////////////////////////////////////////
  private void removeIfContainerHasNoLayout() {
    addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        removeBroadcastListener(this);
        WidgetInfo widget = getWidget();
        // if dangling LayoutData, ignore it
        if (widget == null) {
View Full Code Here

  // Constructor
  //
  ////////////////////////////////////////////////////////////////////////////
  public LayoutDataSupport(JavaInfo host) {
    m_host = host;
    m_host.addBroadcastListener(new ObjectInfoTreeComplete() {
      public void invoke() throws Exception {
        LayoutContainerInfo container = getContainer();
        // create virtual LayoutData
        if (isActiveOnContainer(container)) {
          ensureLayoutDatas();
View Full Code Here

TOP

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

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.