Package org.apache.myfaces.trinidadinternal.ui

Examples of org.apache.myfaces.trinidadinternal.ui.UINode


    _checkIndex(index);
   
    if (node == null)
      throw new IllegalArgumentException();
     
    UINode oldNode = _nodes[index];
    _nodes[index] = node;
   
    return oldNode;
  }
View Full Code Here


    int index
    )
  {
    _checkIndex(index);
   
    UINode removedNode = _nodes[index];
   
    _nodeCount--;
   
    if (index != _nodeCount)
    {
View Full Code Here

    int baseCount   = super.size(context);
    if ((index < 0) || (index >= (baseCount * dol.getLength())))
      throw new IndexOutOfBoundsException();

    DataObject data = dol.getItem(index / baseCount);
    UINode     node = super.getUINode(context, index % baseCount);

    if (data == null)
    {
      return node;
    }
View Full Code Here

          UIXRenderingContext context,
          UINode           node,
          String           name
          )
  {
    UINode child = node.getNamedChild(context, name);

    if ((child == null) || skipChild(context, node, child))
      return null;

    return child;
View Full Code Here

          UIXRenderingContext context,
          UINode           node,
          String           name
          )
  {
    UINode child = getNamedChild(context, node, name);

    if ( child == null ||
            Boolean.FALSE.equals(child.getAttributeValue(context, RENDERED_ATTR )))
      return false;

    return true;
  }
View Full Code Here

    if (selectedAttr == null)
    {
      selectedAttr = Boolean.FALSE;

      UINode parent = context.getAncestorNode(1);

      if (parent != null)
      {
        Integer selectedIndex = (Integer)
                parent.getAttributeValue(context,
                        SELECTED_INDEX_ATTR);

        if ((selectedIndex != null) &&
                !_UNSELECTED_INDEX.equals(selectedIndex))
        {
View Full Code Here

      ) throws IOException
  {
    boolean initialLinkSelectedStatus = LinkUtils.isSelected(context);

    UIXHierarchy component = getHierarchyBase(context, node);
    UINode stamp = getStamp(context, node);

    if(stamp != null)
    {

      // Save the current key
View Full Code Here

                              new AndBoundValue( new NotBoundValue(hasNavigation3),
                                                 hasSearch);
    BoundValue hasNavigation3AndSearch = new AndBoundValue( hasNavigation3, hasSearch);

    MarlinBean qsNoStartFlow = new MarlinBean(FLOW_LAYOUT_NAME);
    UINode quickSearch = ContextPoppingUINode.getUINode(SEARCH_CHILD);
    qsNoStartFlow.addIndexedChild( quickSearch );
    qsNoStartFlow.setAttributeValue(RENDERED_ATTR,
                                    hasSearchAndNoNavigation3);

    MarlinBean pageHeader = _sCreatePageHeader(globalHeaders,
View Full Code Here

    ) throws IOException
  {
    ResponseWriter writer = context.getResponseWriter();

    // get the child about to be rendered
    UINode nextChild = node.getIndexedChild( context, nextIndex);


    // if the next child about to be rendered is not visible to the user
    // then don't render anything
    // =-=AEW This doesn't catch formValues inside of contextPopping nodes
    if (!nextChild.getNodeRole(context).satisfiesRole(
                                      USER_INVISIBLE_ROLE))
    {
      UINode separatorChild = getNamedChild(context, node, SEPARATOR_CHILD);
      if (separatorChild != null)
      {
        writer.startElement("div", null);
        renderNamedChild(context, node, separatorChild, SEPARATOR_CHILD);
        writer.endElement("div");
View Full Code Here

  private void _renderFilterChild(
    UIXRenderingContext context,
    UINode           node
    ) throws IOException
  {
    UINode filter = node.getNamedChild(context, FILTER_CHILD);

    if (filter != null)
    {
      ResponseWriter writer = context.getResponseWriter();
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.UINode

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.