@Override public E getRowData() { if (_data == null) { return null; } if (!isRowAvailable()) { throw new IllegalArgumentException("row is unavailable"); } return _dataArray[_rowIndex]; }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
/** * <p>If row data is available, return the array element at the index * specified by <code>rowIndex</code>. If no wrapped data is available, * return <code>null</code>.</p> * * @throws javax.faces.FacesException if an error occurs getting the row data * @throws IllegalArgumentException if now row data is available * at the currently specified row index */ @Override public E getRowData() { if (arrayFromInner == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (arrayFromInner[index]); } }
@Override public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException("illegal rowIndex " + rowIndex); } int oldRowIndex = _rowIndex; _rowIndex = rowIndex; if (_data != null && oldRowIndex != _rowIndex) { E data = isRowAvailable() ? getRowData() : null; DataModelEvent event = new DataModelEvent(this, _rowIndex, data); DataModelListener[] listeners = getDataModelListeners(); for (int i = 0; i < listeners.length; i++) { listeners[i].rowSelected(event); } } }
/** * @throws javax.faces.FacesException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } int old = index; index = rowIndex; if (arrayFromInner == null) { return; } DataModelListener [] listeners = getDataModelListeners(); if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData(); } DataModelEvent event = new DataModelEvent(this, index, rowData); int n = listeners.length; for (int i = 0; i < n; i++) { if (null != listeners[i]) { listeners[i].rowSelected(event); } } } }
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();
if ((old != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData();