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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a cell at the specified index position in theSheetRow
void
Adds a cell at the end of theSheetRow
boolean
get
(int index) Gets theSheetCell
at the specified index positiongetCells()
getId()
int
hashCode()
boolean
iterator()
void
removeCell
(int index) Removes the cell at the given index position in theSheetRow
void
removeCells
(int startIdx, int endIdx) Removes cells from starting index to end index in theSheetRow
void
Sets the value of theSheetCell
at the given index positionvoid
void
void
setReadOnly
(boolean readOnly) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SheetRow
- Parameters:
id
- the id of the row
-
-
Method Details
-
getId
- Returns:
- the id
-
setId
- Parameters:
id
- the id to set
-
getCells
- Returns:
- the cells
-
setCells
- Parameters:
cells
- the cells to set
-
isReadOnly
public boolean isReadOnly()- Returns:
- the readOnly
-
setReadOnly
public void setReadOnly(boolean readOnly) - Parameters:
readOnly
- the readOnly to set
-
getCellCount
-
get
Gets theSheetCell
at the specified index position- Parameters:
index
- of the SheetCell- Returns:
SheetCell
at index position- Throws:
IndexOutOfBoundsException
- if (index < 0 || index >= number of cells
)
-
set
Sets the value of theSheetCell
at the given index position- Parameters:
value
-Comparable
value to be setindex
- of theSheetCell
- Throws:
IndexOutOfBoundsException
- if (index < 0 || index >= number of cells
)
-
addCell
Adds a cell at the end of theSheetRow
- Parameters:
cell
-SheetCell
to be added
-
addCell
Adds a cell at the specified index position in theSheetRow
-
removeCell
public void removeCell(int index) Removes the cell at the given index position in theSheetRow
- Parameters:
index
- position ofSheetCell
to be removed
-
removeCells
public 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 removedendIdx
- end index position of cells to be removed
-
hashCode
public int hashCode() -
equals
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends Comparable<T>>
-
toString
-