Package org.apache.myfaces.trinidadinternal.ui.data

Examples of org.apache.myfaces.trinidadinternal.ui.data.DataObject


    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;
    }
    else
    {
      DataObject current;
      if (context == null)
        current = null;
      else
        current = context.getCurrentDataObject();

View Full Code Here


      // Add one option per link, but only go up to the "maxVisited"
      // value.  (BTW, since maxVisited is 1-indexed, but i is 0-indexed,
      // this is an _inclusive_ range here)
      for (int i = 0; i < maxVisited; i++)
      {
        DataObject link = links.getItem(i);
        MarlinBean option = new MarlinBean(OPTION_NAME);
        option.setAttributeValue(TEXT_ATTR,
                                 link.selectValue(context, TEXT_ATTR));
        option.setAttributeValue(VALUE_ATTR, IntegerUtils.getString(i + 1));

        if (currentValue == i + 1)
          option.setAttributeValue(SELECTED_ATTR, Boolean.TRUE);
        choice.addIndexedChild(option);
View Full Code Here

    else
    {
      atShowAll = false;
    }

    DataObject indexNames = (DataObject) navBar.getAttributeValue(context,
                                                                  _INDEX_NAMES_ATTR);
    for (blockIndex = firstBlockIndex;
         blockIndex <= lastBlockIndex;
         blockIndex++)
    {
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;
    }
    else
    {
      DataObject current;
      if (context == null)
        current = null;
      else
        current = context.getCurrentDataObject();

View Full Code Here

   * Gets the current data on the rendering context.
   */
  public final Object getCurrent()
  {
    UIXRenderingContext context = getRenderingContext();
    DataObject currentData = context.getCurrentDataObject();
    return adapt(currentData);
  }
View Full Code Here

      value = super.getAttributeValue(null, attrKey);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        value = super.getAttributeValue(context, attrKey);
      }
      else
View Full Code Here

      count = super.getIndexedChildCount(null);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        count = super.getIndexedChildCount(context);
      }
      else
View Full Code Here

  @Override
  public void render(UIXRenderingContext context, UINode node)
    throws IOException
  {
    DataObject oldDataObject = context.getCurrentDataObject();
    if (oldDataObject != _current)
    {
      super.render(context, node);
    }
    else
View Full Code Here

                                _current);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        child = super.getIndexedChild(context, childIndex);
      }
      else
View Full Code Here

                                _current);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        child = super.getNamedChild(context, childName);
      }
      else
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.data.DataObject

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.