Examples of addComponentChange()


Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

    uic.getChildren().add(newChild);

    ComponentChange aca = new AddChildComponentChange(newChild);

    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, aca);
  }

  /**
   * Adds a 'brandingAppContextual' facet  to the panelGroup.
   */
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

    uic.getFacets().put("brandingAppContextual", newFacetComponent);

    ComponentChange afa = new SetFacetChildComponentChange("brandingAppContextual", newFacetComponent);

    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, afa);
  }

  /**
   * Reverses the order of children of the panelGroup.
   */
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

   
    ComponentChange ra = new ReorderChildrenComponentChange(reorderedChildIdList);

    FacesContext fc = FacesContext.getCurrentInstance();
    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, ra);
  }

  /**
   * Removes a pair of children, based on some characteristic of the
   *  event source.
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

      {
        facets.remove(removableFacetNames[i]);
        ComponentChange rfa = new RemoveFacetComponentChange(removableFacetNames[i]);
        FacesContext fc = FacesContext.getCurrentInstance();
        ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
        apm.addComponentChange(fc, uic, rfa);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

      List<UIComponent> children = uic.getChildren();
      children.remove(removableChild);
      ComponentChange rca = new RemoveChildComponentChange(removableChildId);
      FacesContext fc = FacesContext.getCurrentInstance();
      ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
      apm.addComponentChange(fc, uic, rca);
    }
  }
 
  @SuppressWarnings("unchecked")
  private static UIComponent _findChildById(UIComponent uic, String id)
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

    )
  {
    FacesContext fc = FacesContext.getCurrentInstance();
    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    ComponentChange aa = new AttributeComponentChange(attribName, attribValue);
    apm.addComponentChange(fc, uic, aa);
  }
 
  private static int _getRandIndex()
  {
    return (int) (Math.random()*10)/2;
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

    uic.getChildren().add(newChild);

    ComponentChange aca = new AddChildComponentChange(newChild);

    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, aca);
  }

  /**
   * Adds a 'brandingAppContextual' facet  to the panelGroup.
   */
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

    uic.getFacets().put("brandingAppContextual", newFacetComponent);

    ComponentChange afa = new SetFacetChildComponentChange("brandingAppContextual", newFacetComponent);

    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, afa);
  }

  /**
   * Reverses the order of children of the panelGroup.
   */
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

   
    ComponentChange ra = new ReorderChildrenComponentChange(reorderedChildIdList);

    FacesContext fc = FacesContext.getCurrentInstance();
    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, ra);
  }

  /**
   * Removes a pair of children, based on some characteristic of the
   *  event source.
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager.addComponentChange()

      {
        facets.remove(removableFacetNames[i]);
        ComponentChange rfa = new RemoveFacetComponentChange(removableFacetNames[i]);
        FacesContext fc = FacesContext.getCurrentInstance();
        ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
        apm.addComponentChange(fc, uic, rfa);
      }
    }
  }

  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.