org.jopendocument.dom.spreadsheet
Class MutableCell<D extends ODDocument>
java.lang.Object
org.jopendocument.dom.ODNode
org.jopendocument.dom.StyledNode<S,D>
org.jopendocument.dom.ImmutableDocStyledNode<S,D>
org.jopendocument.dom.spreadsheet.Cell<D>
org.jopendocument.dom.spreadsheet.MutableCell<D>
- Type Parameters:
D - type of document
public class MutableCell<D extends ODDocument>
- extends Cell<D>
A cell whose value can be changed.
- Author:
- Sylvain
| Methods inherited from class org.jopendocument.dom.spreadsheet.Cell |
coversOtherCells, getColumnsSpanned, getNS, getRow, getRowsSpanned, getTextValue, getTextValue, getTextValueMode, getType, getValue, getValueNS, getValueType, isValid, setTextValueMode |
getX
public final int getX()
getY
public final int getY()
clearValue
public void clearValue()
setValue
public void setValue(Object obj)
replaceBy
public void replaceBy(String oldValue,
String newValue)
unmerge
public final void unmerge()
merge
public final void merge(int columnsSpanned,
int rowsSpanned)
- Merge this cell and the following ones. If this cell already spanned multiple columns/rows
this method un-merge any additional cells.
- Parameters:
columnsSpanned - number of columns to merge.rowsSpanned - number of rows to merge.
getStyleName
public final String getStyleName()
- Overrides:
getStyleName in class Cell<D extends ODDocument>
setImage
public void setImage(File pic)
throws IOException
- Throws:
IOException
setImage
public void setImage(File pic,
boolean keepRatio)
throws IOException
- Throws:
IOException
setImage
public void setImage(String name,
Image img)
throws IOException
- Throws:
IOException
setBackgroundColor
public final void setBackgroundColor(Color color)
getTABLE
protected final org.jdom.Namespace getTABLE()
Copyright © 2010 jOpenDocument All Rights Reserved.