@Override public void setWrappedData(Object data) { if (data == null) { setRowIndex(-1); _data = null; _dataArray = null; } else { _data = (Collection<E>)data; _dataArray = _data.toArray((E[]) new Object[_data.size()]); _rowIndex = -1; setRowIndex(0); } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }
/** * Set the wrapped data. * * @param data the wrapped data. * @throws ClassCastException if <code>data</code> is * non-<code>null</code> and is not a <code>Collection</code> */ @Override public void setWrappedData(Object data) { if (data == null) { inner = null; arrayFromInner = null; setRowIndex(-1); } else { inner = (Collection<E>) data; arrayFromInner = (E[]) new Object[inner.size()]; inner.toArray(arrayFromInner); setRowIndex(0); } } }