Package org.apache.myfaces.trinidadinternal.ui

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


    int              prevVisChildIndex,
    int              nextVisChildIndex,
    int              ithRenderedChild
    ) throws IOException
  {
    UINode child = node.getIndexedChild(context, currVisChildIndex);
    Map<String, String> originalResourceKeyMap = context.getSkinResourceKeyMap();
    try
    {
      context.setSkinResourceKeyMap(_RESOURCE_KEY_MAP);
      renderNode(context, child, nextVisChildIndex)
View Full Code Here


  {
    int childCount = parentNode.getIndexedChildCount(context);
    int firstEnabledChildIndex = -1;
    for (int childIndex=0; childIndex<childCount; childIndex++)
    {
      UINode childNode = parentNode.getIndexedChild(context, childIndex);
     
      if (Boolean.TRUE.equals(
            childNode.getAttributeValue(context, DISCLOSED_ATTR)))
      {
        return childIndex;
      }
      if (firstEnabledChildIndex == -&&
          !Boolean.TRUE.equals(
              childNode.getAttributeValue(context, DISABLED_ATTR)))
      {
        firstEnabledChildIndex = childIndex;
      }
    }
View Full Code Here

    public Object getValue(
      UIXRenderingContext context
      )
    {
      UINode child = (UINode)_rootBoundValue.getValue( context );

      if ( child != null )
      {

        if ( MARLIN_NAMESPACE.equals(child.getNamespaceURI()) &&
             _beanLocalName.equals(child.getLocalName()))
        {
          Boolean rendered = (Boolean)child.getAttributeValue(context,
                                                              RENDERED_ATTR);
          return Boolean.FALSE.equals(rendered) ? Boolean.FALSE : Boolean.TRUE;
        }

        try{
View Full Code Here

  protected UIXHierarchy getHierarchyBase(
    UIXRenderingContext context,
    UINode           node
  )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    return (UIXPage) pageNode.getUIComponent();
  }
View Full Code Here

  protected UINode getStamp(
    UIXRenderingContext context,
    UINode           node
    )
  {
    UINode pageNode = context.getParentContext().getAncestorNode(0);
    return getNamedChild(context, pageNode, NODE_STAMP_CHILD);
  }
View Full Code Here

    // Render the leading separator icon
    IconData icons = _getIconData(context);
    renderTableDataIcon(context, icons.leadingSeparator, null);

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

    if(stamp != null)
    {

      // Save the current key
View Full Code Here

    UINode           node
    ) throws IOException
  {

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

    if(stamp != null)
    {

      // Save the current key
View Full Code Here

    UINode           node
  )throws IOException
  {

    super.prerender( context, node);
    UINode labelChild = getNamedChild(context, node, LABEL_CHILD);

    // render the label child, render it before you change any properties!
    // Ex:
    //   1. One
    //   2. Two
    //      a. A
    //   3. Three
    // In the example above "Two" would be the label child and appears to be
    // part of the numbered list
    if ( labelChild != null )
    {
      ResponseWriter writer = context.getResponseWriter();
      writer.startElement( SPAN_ELEMENT, null );
      labelChild.render(context);
      writer.endElement(SPAN_ELEMENT);
    }


    // set the selected property to false
View Full Code Here

    int selectedIndex = getResolvedSelectedIndex(context, node);
    // Render style attributes
    boolean selected = (currVisChildIndex == selectedIndex);

    UINode child = node.getIndexedChild(context, currVisChildIndex);

    renderNode(context,
               child,
               selected,
               prevVisChildIndex == NO_CHILD_INDEX,
View Full Code Here

    UINode           node
    ) throws IOException
  {

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

    if(stamp != null)
    {

      // Save the current key
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.