public Object getRowData() { if (result == null) { return null; } if (!isRowAvailable()) { throw new IllegalArgumentException(); } return rows_[index]; }
public Object getRowData() { if (getRows() == null) { return null; } if (!isRowAvailable()) { throw new IllegalArgumentException("row is unavailable"); } return getRows()[_rowIndex]; }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
@Override public SortedMap<String, Object> getRowData() { if (getRows() == null) { return null; } if (!isRowAvailable()) { throw new IllegalArgumentException("row is unavailable"); } return getRows()[_rowIndex]; }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { return (rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
/** * <p>If row data is available, return the <code>SortedMap</code> array * element at the index specified by <code>rowIndex</code> of the * array returned by calling <code>getRows()</code> on the underlying * <code>Result</code>. If no wrapped data is available, * return <code>null</code>.</p> * * <p>Note that, if a non-<code>null</code> <code>Map</code> is returned * by this method, it will contain the values of the columns for the * current row, keyed by column name. Column name comparisons must be * performed in a case-insensitive manner.</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 SortedMap<String,Object> getRowData() { if (result == null) { return (null); } else if (!isRowAvailable()) { throw new NoRowAvailableException(); } else { //noinspection unchecked return ((SortedMap<String,Object>)rows[index]); } }
public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } int oldIndex = index; index = rowIndex; if (result == null) { return; } DataModelListener[] listeners = getDataModelListeners(); if ((oldIndex != index) && (listeners != null)) { Object rowData = null; if (isRowAvailable()) { rowData = getRowData(); } DataModelEvent event = new DataModelEvent(this, index, rowData); for (int i = 0; i < listeners.length; i++) { listeners[i].rowSelected(event); } } }
/** * @throws FacesException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } int old = index; index = rowIndex; if (result == null) { return; } DataModelListener [] listeners = getDataModelListeners(); if ((old != index) && (listeners != null)) { SortedMap<String,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); } } } }
/** * @throws javax.faces.FacesException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ @Override public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } int old = index; index = rowIndex; if (result == null) { return; } DataModelListener [] listeners = getDataModelListeners(); if ((old != index) && (listeners != null)) { SortedMap<String,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); } } } }
/** * @throws javax.faces.FacesException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ @Override public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } int old = index; index = rowIndex; if (result == null) { return; } DataModelListener [] listeners = getDataModelListeners(); if ((old != index) && (listeners != null)) { SortedMap<String,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); } } } }
/** * @throws javax.faces.FacesException {@inheritDoc} * @throws IllegalArgumentException {@inheritDoc} */ @Override public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException(); } int old = index; index = rowIndex; if (result == null) { return; } DataModelListener [] listeners = getDataModelListeners(); if ((old != index) && (listeners != null)) { SortedMap<String,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); } } } }
@Override public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException("illegal rowIndex " + rowIndex); } int oldRowIndex = _rowIndex; _rowIndex = rowIndex; if (getRows() != null && oldRowIndex != _rowIndex) { SortedMap<String, Object> 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); } } }
public void setRowIndex(int rowIndex) { if (rowIndex < -1) { throw new IllegalArgumentException("illegal rowIndex " + rowIndex); } int oldRowIndex = _rowIndex; _rowIndex = rowIndex; if (getRows() != null && oldRowIndex != _rowIndex) { Object 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); } } }