Examples of DisclosureEvent


Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

      String id = component.getClientId(context);
     
      if (id.equals(source))
      {
        boolean isDisclosed = XhtmlConstants.SHOW_EVENT.equals(event);
        (new DisclosureEvent(component, isDisclosed)).queue();
        RequestContext.getCurrentInstance().addPartialTarget(component);
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

            if (!child.isRendered() || _isItemDisabled(child))
              continue;

            if (itemId.equals(child.getClientId(context)))
            {
              (new DisclosureEvent(child, isDisclosed)).queue();
              RequestContext rc = RequestContext.getCurrentInstance();

              // Don't force PPR on for the browsers that do not support Ajax
              Object cap = rc.getAgent().getCapabilities().get(TrinidadAgent.CAP_PARTIAL_RENDERING);
              if ((cap != null) && (Boolean.TRUE.equals(cap)))
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

        if (comp instanceof UIXShowDetail)
        {
          UIXShowDetail showDetail = (UIXShowDetail) comp;
          // Queue an event to hide the currently expanded showDetail
          if (showDetail.isDisclosed())
            (new DisclosureEvent(showDetail, false)).queue();
        }
      }
    }
    super.queueEvent(event);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

        if (comp instanceof UIXShowDetail)
        {
          UIXShowDetail showDetail = (UIXShowDetail) comp;
          // Queue an event to hide the currently expanded showDetail
          if (showDetail.isDisclosed())
            (new DisclosureEvent(showDetail, false)).queue();
        }
      }
    }
    super.queueEvent(event);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

      String id = clientId == null ? component.getClientId(facesContext) : clientId;

      if (id.equals(source))
      {
        boolean isDisclosed = XhtmlConstants.SHOW_EVENT.equals(event);
        (new DisclosureEvent(component, isDisclosed)).queue();
        // Add ourselves as a PPR target - except, if we're in a
        // ShowOne, then really the whole parent has to get
        // repainted
        UIComponent pprComponent;
        if (component.getParent() instanceof UIXShowOne)
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

            if (!child.isRendered() || _isItemDisabled(child))
              continue;

            if (itemId.equals(child.getClientId(facesContext)))
            {
              (new DisclosureEvent(child, isDisclosed)).queue();
              RequestContext rc = RequestContext.getCurrentInstance();

              // Don't force PPR on for the browsers that do not support Ajax
              Object cap = rc.getAgent().getCapabilities().get(TrinidadAgent.CAP_PARTIAL_RENDERING);
              if ((cap != null) && (Boolean.TRUE.equals(cap)))
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

            if (!child.isRendered() || _isItemDisabled(child))
              continue;

            if (itemId.equals(child.getClientId(context)))
            {
              (new DisclosureEvent(child, isDisclosed)).queue();
              RequestContext rc = RequestContext.getCurrentInstance();

              // Don't force PPR on for the browsers that do not support Ajax
              Object cap = rc.getAgent().getCapabilities().get(TrinidadAgent.CAP_PARTIAL_RENDERING);
              if ((cap != null) && (Boolean.TRUE.equals(cap)))
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

            if (!child.isRendered() || _isItemDisabled(child))
              continue;

            if (itemId.equals(child.getClientId(context)))
            {
              (new DisclosureEvent(child, isDisclosed)).queue();
              RequestContext rc = RequestContext.getCurrentInstance();

              // Don't force PPR on for the browsers that do not support Ajax
              Object cap = rc.getAgent().getCapabilities().get(TrinidadAgent.CAP_PARTIAL_RENDERING);
              if ((cap != null) && (Boolean.TRUE.equals(cap)))
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

      }

      if (this == parent)
      {
        // Care only if the incoming event was from the to-be-disclosed showDetailItem.
        DisclosureEvent disclosureEvent = (DisclosureEvent)unwrappedEvent;
        if (disclosureEvent.isExpanded())
        {
          FacesContext context = FacesContext.getCurrentInstance();
          String disclosedClientId = disclosureEvent.getComponent().getClientId(context);

          // Visit all of the flattened children:
          try
          {
            UIXComponent.processFlattenedChildren(
View Full Code Here

Examples of org.apache.myfaces.trinidad.event.DisclosureEvent

          }

          // Now queue the event for the to-be-undisclosed showDetailItem
          // Note that this is always delivered earlier than the one that is
          // already queued for to-be-disclosed showDetailItem.
          (new DisclosureEvent(toBeUnDisclosedChild, false)).queue();
        }
      }
    }
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.