Package de.xima.fc.gui.common.model.data
Class SheetRow<T extends Comparable<T>>
- java.lang.Object
- 
- de.xima.fc.gui.common.model.data.SheetRow<T>
 
- 
- All Implemented Interfaces:
- Serializable,- Iterable<SheetCell<T>>
 
 public class SheetRow<T extends Comparable<T>> extends Object implements Serializable, Iterable<SheetCell<T>> - Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCell(int index, SheetCell<T> cell)Adds a cell at the specified index position in theSheetRowvoidaddCell(SheetCell<T> cell)Adds a cell at the end of theSheetRowbooleanequals(Object obj)SheetCell<T>get(int index)Gets theSheetCellat the specified index positionIntegergetCellCount()List<SheetCell<T>>getCells()LonggetId()inthashCode()booleanisReadOnly()Iterator<SheetCell<T>>iterator()voidremoveCell(int index)Removes the cell at the given index position in theSheetRowvoidremoveCells(int startIdx, int endIdx)Removes cells from starting index to end index in theSheetRowvoidset(T value, int index)Sets the value of theSheetCellat the given index positionvoidsetCells(List<SheetCell<T>> cells)voidsetId(Long id)voidsetReadOnly(boolean readOnly)StringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
SheetRowpublic SheetRow(Long id) - Parameters:
- id- the id of the row
 
 
- 
 - 
Method Detail- 
getIdpublic Long getId() - Returns:
- the id
 
 - 
setIdpublic void setId(Long id) - Parameters:
- id- the id to set
 
 - 
isReadOnlypublic boolean isReadOnly() - Returns:
- the readOnly
 
 - 
setReadOnlypublic void setReadOnly(boolean readOnly) - Parameters:
- readOnly- the readOnly to set
 
 - 
getCellCountpublic Integer getCellCount() 
 - 
getpublic SheetCell<T> get(int index) Gets theSheetCellat the specified index position- Parameters:
- index- of the SheetCell
- Returns:
- SheetCellat index position
- Throws:
- IndexOutOfBoundsException- if (- index < 0 || index >= number of cells)
 
 - 
setpublic void set(T value, int index) Sets the value of theSheetCellat the given index position- Parameters:
- value-- Comparablevalue to be set
- index- of the- SheetCell
- Throws:
- IndexOutOfBoundsException- if (- index < 0 || index >= number of cells)
 
 - 
addCellpublic void addCell(SheetCell<T> cell) Adds a cell at the end of theSheetRow- Parameters:
- cell-- SheetCellto be added
 
 - 
addCellpublic void addCell(int index, SheetCell<T> cell)Adds a cell at the specified index position in theSheetRow
 - 
removeCellpublic void removeCell(int index) Removes the cell at the given index position in theSheetRow- Parameters:
- index- position of- SheetCellto be removed
 
 - 
removeCellspublic void removeCells(int startIdx, int endIdx)Removes cells from starting index to end index in theSheetRow- Parameters:
- startIdx- starting index position of cells to be removed
- endIdx- end index position of cells to be removed
 
 - 
iteratorpublic Iterator<SheetCell<T>> iterator() - Specified by:
- iteratorin interface- Iterable<T extends Comparable<T>>
 
 
- 
 
-