/** * 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());
public Object getRowData() { return _model.getRowData(); }
public Object getRowData() { return getDataModel().getRowData(); }
/** * Get the selected row of the JSF {@link DataModel} * */ public E getDataModelSelection() { return (E) getDataModel().getRowData(); }
/** * <p>Return the data object representing the data for the currently * selected row index, if any.</p> * * @throws FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available at the * currently specified row index */ public Object getRowData() { return (getDataModel().getRowData()); }
public Object getRowData() { final DataModel model = getDataModel(); Object data; try { data = model.getRowData(); } catch (Throwable t) { data = null; } return data; }
/** * <p>Return the data object representing the data for the currently * selected row index, if any.</p> * * @return the row data. * * @throws FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available at the * currently specified row index */ public Object getRowData() { return (getDataModel().getRowData()); }
/** * <p>Return the data object representing the data for the currently * selected row index, if any.</p> * * @throws FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available at the * currently specified row index */ public Object getRowData() { return (getDataModel().getRowData()); }
public int compare(Object arg1, Object arg2) { Integer r1 = (Integer)arg1; Integer r2 = (Integer)arg2; dataModel.setRowIndex(r1.intValue()); Object rowData1 = dataModel.getRowData(); dataModel.setRowIndex(r2.intValue()); Object rowData2 = dataModel.getRowData(); return dataComparator.compare(rowData1, rowData2); } }
/** * <p>Return the data object representing the data for the currently * selected row index, if any.</p> * * @throws FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available at the * currently specified row index */ public Object getRowData() { return (getDataModel().getRowData()); }
public Object getRowData() { return getDataModel().getRowData(); }
/** * @see javax.faces.component.UIData#getRowData() */ public Object getRowData() { return (getDataModel().getRowData()); }
/** * @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() */ 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; }
/** * Returns the rowCount of the underlying DataModel. * * @return */ public Object getIndexData() { if (!getDataModel().isRowAvailable()) { return null; } return getDataModel().getRowData(); }