Class Cell
- java.lang.Object
-
- com.vaadin.addon.spreadsheet.client.Cell
-
- Direct Known Subclasses:
MergedCell
public class Cell extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCELL_COMMENT_TRIANGLE_CLASSNAMEstatic StringCELL_INVALID_FORMULA_CLASSNAME
-
Constructor Summary
Constructors Constructor Description Cell(SheetWidget sheetWidget, int col, int row)Cell(SheetWidget sheetWidget, int col, int row, CellData cellData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCellStyle()protected intgetCellWidth()intgetCol()com.google.gwt.dom.client.DivElementgetElement()intgetRow()StringgetValue()booleanhasValue()booleanisOverflowDirty()voidmarkAsOverflowDirty()voidremoveCellCommentMark()voidremoveInvalidFormulaIndicator()voidremovePopupButton()voidsetValue(String value)voidsetValue(String value, String cellStyle, boolean needsMeasure)voidshowCellCommentMark()voidshowInvalidFormulaIndicator()voidshowPopupButton(com.google.gwt.dom.client.Element popupButtonElement)voidupdate(int col, int row, CellData cellData)protected voidupdateCellValues()protected voidupdateClassName()
-
-
-
Field Detail
-
CELL_COMMENT_TRIANGLE_CLASSNAME
public static final String CELL_COMMENT_TRIANGLE_CLASSNAME
- See Also:
- Constant Field Values
-
CELL_INVALID_FORMULA_CLASSNAME
public static final String CELL_INVALID_FORMULA_CLASSNAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Cell
public Cell(SheetWidget sheetWidget, int col, int row)
-
Cell
public Cell(SheetWidget sheetWidget, int col, int row, CellData cellData)
-
-
Method Detail
-
getElement
public com.google.gwt.dom.client.DivElement getElement()
-
update
public void update(int col, int row, CellData cellData)
-
getCellWidth
protected int getCellWidth()
-
updateCellValues
protected void updateCellValues()
-
updateClassName
protected void updateClassName()
-
getCellStyle
public String getCellStyle()
-
getCol
public int getCol()
-
getRow
public int getRow()
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
showPopupButton
public void showPopupButton(com.google.gwt.dom.client.Element popupButtonElement)
-
removePopupButton
public void removePopupButton()
-
showCellCommentMark
public void showCellCommentMark()
-
removeCellCommentMark
public void removeCellCommentMark()
-
showInvalidFormulaIndicator
public void showInvalidFormulaIndicator()
-
removeInvalidFormulaIndicator
public void removeInvalidFormulaIndicator()
-
isOverflowDirty
public boolean isOverflowDirty()
-
markAsOverflowDirty
public void markAsOverflowDirty()
-
hasValue
public boolean hasValue()
-
-