Package org.apache.myfaces.trinidadinternal.ui

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


    UINode           node,
    int              childIndex
    ) throws IOException
  {

    UINode child = node.getIndexedChild(context, childIndex);
    boolean selected = isSelected(context, child);

    renderNode(context, child, selected);
  }
View Full Code Here


    UINode           node
    ) throws IOException
  {

    UIXPage component = (UIXPage) node.getUIComponent();
    UINode stamp = this.getNamedChild(context, node, NODE_STAMP_CHILD);
    if(stamp == null)
      return;

    // Save the current path
    Object oldPath = component.getRowKey();
View Full Code Here

  {
    boolean initialLinkSelectedStatus = LinkUtils.isSelected(context);
    UIXHierarchy component = getHierarchyBase(context, node);
    if (component != null)
    {
      UINode stamp = getStamp(context, node);
      if(stamp != null)
      {
        // Save the current key
        Object oldPath = component.getRowKey();
        boolean isNewPath = setNewPath(context, node, component);
View Full Code Here

   * (tableLayout or messageComponentLayout)
   */
  @Override
  protected boolean hasTableParent(UIXRenderingContext context)
  {
    UINode ancestor = NodeRoleUtils.getStructuralAncestor(context);

    return (isEqualMarlinName(ancestor, TABLE_LAYOUT_NAME));
  }
View Full Code Here

    UIXHierarchy     tree,
    String name
    ) throws IOException
  {
   
    UINode stamp = getStamp(context, node);
    if(stamp == null)
      stamp = _DEFAULT_STAMP; 

//@todo - will this tree.getFocusPath survive?
//    List focusPath = getFocusPath(context, node);
    Object focusPath = tree.getFocusRowKey();
    String formName = getParentFormName(context);
    if (formName == null)
    {
      _LOG.warning("The tree component must be used inside of a form.");
      return;
    }


    // Bug 3931544:  don't use colons in Javascript variable names.
    // We'll just replace colons with underscores;  not perfect, but adequate
    final String varName = "_adftree" +
            XhtmlUtils.getJSIdentifier(name);

    boolean leftToRight = !context.getLocaleContext().isRightToLeft();
    int rootSize = tree.getRowCount();
    RowKeySet state = getExpandedRowKeys(tree);     
    Map<Object, Boolean> selectedPaths = getSelectedPaths(focusPath);
    UINode icon = getIcon();

    // render each of the root nodes
    for (int i = 0; i < rootSize; i++)
    {
      tree.setRowIndex(i);
View Full Code Here

    BoundValue isExpandable = new BoundValue()
    {
      public Object getValue(UIXRenderingContext rc)
      {
        UINode uinode = rc.getAncestorNode(1);
        UIXHierarchy tree = (UIXHierarchy) ((UIComponentUINode) uinode).getUIComponent();
        return tree.isContainer()
          ? Boolean.TRUE
          : Boolean.FALSE;
      }
View Full Code Here

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

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

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

    UINode copyright = node.getNamedChild(context, APP_COPYRIGHT_CHILD);
    UINode privacy = node.getNamedChild(context, APP_PRIVACY_CHILD);
    UINode about = node.getNamedChild(context, APP_ABOUT_CHILD);

    writer.startElement(DIV_ELEMENT, null);
    renderStyleClassAttribute(context, FOOTER_BOTTOM_STYLE_CLASS);

    // Disable default link styles - we don't need class="OraLink",
View Full Code Here

    int              prevVisChildIndex,
    int              nextVisChildIndex,
    int              ithRenderedChild
    ) throws IOException
  {
    UINode currVisChild = node.getIndexedChild(context, currVisChildIndex);

    ResponseWriter writer = context.getResponseWriter();

    // get the selected index
    int selectedIndex = ((Integer)context.getLocalProperty( 0,
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.