Package org.apache.myfaces.trinidad.model

Examples of org.apache.myfaces.trinidad.model.MenuModel


  }

  @Override
  public CollectionModel createCollectionModel(CollectionModel current, Object value)
  {
    MenuModel model = ModelUtils.toMenuModel(value);
    model.setRowKey(null);
    return model;
  }
View Full Code Here


   * @return the focus rowKey for the current viewId
   */
  @Override
  public Object getFocusRowKey()
  {
    MenuModel model = getMenuModel();
    if (model != null)
    {
      Object currPath  = model.getRowKey();     
      Object focusPath = model.getFocusRowKey();

      // The row key should not change as a result of calling getFocusRowKey()
      assert(((currPath == null) && (model.getRowKey() == null)) ||
             ((currPath != null) && currPath.equals(model.getRowKey())));
      return focusPath;
    }

    return null;
  }
View Full Code Here

  }

  @Override
  public CollectionModel createCollectionModel(CollectionModel current, Object value)
  {
    MenuModel model = ModelUtils.toMenuModel(value);
    model.setRowKey(null);
    return model;
  }
View Full Code Here

   * @return the focus rowKey for the current viewId
   */
  @Override
  public Object getFocusRowKey()
  {
    MenuModel model = getMenuModel();
    if (model != null)
    {
      Object currPath = null;
      assert((currPath = model.getRowKey()) != null);
      Object focusPath = model.getFocusRowKey();
      // the path better have been reset after you call getFocusPath
      assert(currPath.equals(model.getRowKey()));
      return focusPath;
    }

    return null;
  }
View Full Code Here

  }

  @Override
  public CollectionModel createCollectionModel(CollectionModel current, Object value)
  {
    MenuModel model = ModelUtils.toMenuModel(value);
    model.setRowKey(null);
    return model;
  }
View Full Code Here

   * @return the focus rowKey for the current viewId
   */
  @Override
  public Object getFocusRowKey()
  {
    MenuModel model = getMenuModel();
    if (model != null)
    {
      Object currPath  = model.getRowKey();     
      Object focusPath = model.getFocusRowKey();

      // The row key should not change as a result of calling getFocusRowKey()
      assert(((currPath == null) && (model.getRowKey() == null)) ||
             ((currPath != null) && currPath.equals(model.getRowKey())));
      return focusPath;
    }

    return null;
  }
View Full Code Here

  }

  @Override
  public CollectionModel createCollectionModel(CollectionModel current, Object value)
  {
    MenuModel model = ModelUtils.toMenuModel(value);
    model.setRowKey(null);
    return model;
  }
View Full Code Here

   * @return the focus rowKey for the current viewId
   */
  @Override
  public Object getFocusRowKey()
  {
    MenuModel model = getMenuModel();
    if (model != null)
    {
      Object currPath  = model.getRowKey();     
      Object focusPath = model.getFocusRowKey();

      // The row key should not change as a result of calling getFocusRowKey()
      assert(((currPath == null) && (model.getRowKey() == null)) ||
             ((currPath != null) && currPath.equals(model.getRowKey())));
      return focusPath;
    }

    return null;
  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.model.MenuModel

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.