private boolean isIndexAvailable() { return getDataModel().isRowAvailable(); }
private boolean isIndexAvailable() { return getDataModel().isRowAvailable(); }
/** * Returns the rowCount of the underlying DataModel. * * @return */ public Object getIndexData() { if (!getDataModel().isRowAvailable()) { return null; } return getDataModel().getRowData(); }
private void setIndex(FacesContext ctx, int index) { DataModel localModel = getDataModel(); if (index == -1 && initialChildState == null) { saveInitialChildState(ctx); } // save child state if (this.index != -1 && localModel.isRowAvailable()) { saveChildState(ctx); } else if (this.index >= 0 && childState != null) { removeChildState(ctx); } this.index = index; localModel.setRowIndex(index); if (this.index != -1 && var != null && localModel.isRowAvailable()) { Map<String, Object> attrs = ctx.getExternalContext().getRequestMap(); attrs.put(var, localModel.getRowData()); } // restore child state if (this.index != -1 && localModel.isRowAvailable()) { restoreChildState(ctx); } }
if (var != null && localModel.isRowAvailable()) { getFacesContext().getExternalContext().getRequestMap() .put(var, localModel.getRowData());
/** * @see java.util.Iterator#hasNext() */ public boolean hasNext() { return model.isRowAvailable(); }
/** * @see java.util.Iterator#hasNext() */ public boolean hasNext() { return model.isRowAvailable(); }
/** * @see java.util.Iterator#hasNext() */ @Override public boolean hasNext() { return model.isRowAvailable(); }
/** * @see java.util.Iterator#hasNext() */ @Override public boolean hasNext() { return model.isRowAvailable(); }
/** * @see java.util.Iterator#hasNext() */ @Override public boolean hasNext() { return model.isRowAvailable(); }
/** * <p>Return a flag indicating whether there is <code>rowData</code> * available at the current <code>rowIndex</code>. If no * <code>wrappedData</code> is available, return <code>false</code>.</p> * * @throws FacesException if an error occurs getting the row availability */ public boolean isRowAvailable() { return (getDataModel().isRowAvailable()); }
/** * <p>Return a flag indicating whether there is <code>rowData</code> * available at the current <code>rowIndex</code>. If no * <code>wrappedData</code> is available, return <code>false</code>.</p> * * @return whether the row is available. * * @throws FacesException if an error occurs getting the row availability */ public boolean isRowAvailable() { return (getDataModel().isRowAvailable()); }
/** * <p>Return a flag indicating whether there is <code>rowData</code> * available at the current <code>rowIndex</code>. If no * <code>wrappedData</code> is available, return <code>false</code>.</p> * * @return whether the row is available. * * @throws FacesException if an error occurs getting the row availability */ public boolean isRowAvailable() { return (getDataModel().isRowAvailable()); }
/** * <p>Return a flag indicating whether there is <code>rowData</code> * available at the current <code>rowIndex</code>. If no * <code>wrappedData</code> is available, return <code>false</code>.</p> * * @return whether the row is available. * * @throws FacesException if an error occurs getting the row availability */ public boolean isRowAvailable() { return (getDataModel().isRowAvailable()); }
/** * <p>Return a flag indicating whether there is <code>rowData</code> * available at the current <code>rowIndex</code>. If no * <code>wrappedData</code> is available, return <code>false</code>.</p> * * @return whether the row is available. * * @throws FacesException if an error occurs getting the row availability */ public boolean isRowAvailable() { return (getDataModel().isRowAvailable()); }
/** * <p>Return a flag indicating whether there is <code>rowData</code> * available at the current <code>rowIndex</code>. If no * <code>wrappedData</code> is available, return <code>false</code>.</p> * * @throws FacesException if an error occurs getting the row availability */ public boolean isRowAvailable() { return (getDataModel().isRowAvailable()); }
/** * @see java.util.Iterator#next() */ @Override public T next() { if (!model.isRowAvailable()) { throw new NoSuchElementException(); } Object o = model.getRowData(); model.setRowIndex(++index); return (T) o; }
/** * @see java.util.Iterator#next() */ @Override public T next() { if (!model.isRowAvailable()) { throw new NoSuchElementException(); } Object o = model.getRowData(); model.setRowIndex(++index); return (T) o; }
/** * @see java.util.Iterator#next() */ public T next() { if (!model.isRowAvailable()) { throw new NoSuchElementException(); } Object o = model.getRowData(); model.setRowIndex(++index); return (T) o; }
/** * @see java.util.Iterator#next() */ @Override public T next() { if (!model.isRowAvailable()) { throw new NoSuchElementException(); } Object o = model.getRowData(); model.setRowIndex(++index); return (T) o; }