|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.co.nissy.jpicosheet.core.Cell
public class Cell
値の保持、他のセルの参照や計算を行う"セル"です。
セルにはいくつかの種類および状態があります。
セルの種類には空、数値、文字列、式があります。種類の情報はgetCellType()
で得ることができます。
セルの状態には計算必要、計算中、計算済み、エラーがあります。状態の情報はgetCellStatus()
で得ることができます。
セルの値は保持しているデータの種類や式の計算結果によって変化しますが、getValue()
で得ることができるのはElement型オブジェクトです。
Element型オブジェクトはセルの値を表す汎用のデータ型です。
セルは必ずいずれかのシートに属します。アプリケーションがセルオブジェクトを単体で作成することはできず、Sheetクラスの
addCell()
メソッドによって作成します。
入れ子のクラスの概要 | |
---|---|
static class |
Cell.CellStatus
|
static class |
Cell.CellType
|
メソッドの概要 | |
---|---|
int |
compareTo(Cell o)
|
boolean |
equals(Object obj)
|
Cell.CellType |
getCellType()
このセルのタイプを返します |
String |
getFormula()
式を返します。 |
String |
getFullyQualifiedName()
このセルの完全修飾名を返します |
String |
getLabel()
このセルのラベルを返します |
String |
getName()
このセルの名前を返します |
Sheet |
getSheet()
このセルを持っているシートへの参照を返します |
Cell.CellStatus |
getStatus()
このセルのステータスを返します |
String |
getString()
このセルの値を文字列として返します |
Element |
getValue()
セルの値を返します |
String |
getValueString()
|
Element.ElementType |
getValueType()
このセルの値のタイプを返します |
int |
hashCode()
|
Cell |
setFormula(String formula)
セルに式をセットします。 |
Cell |
setLabel(String newLabel)
ラベルをセットします |
Cell |
setNumberValue(String numString)
セルに数値をセットします |
Cell |
setStringValue(String string)
セルに文字列をセットします |
void |
setValue(String value)
|
String |
toString()
|
クラス java.lang.Object から継承されたメソッド |
---|
getClass, notify, notifyAll, wait, wait, wait |
メソッドの詳細 |
---|
public String getFormula()
public String getName()
public String getLabel()
public String getFullyQualifiedName()
public Sheet getSheet()
public Cell.CellStatus getStatus()
public String getString()
public Element.ElementType getValueType()
public Cell.CellType getCellType()
public Element getValue()
public String getValueString()
public Cell setLabel(String newLabel)
newLabel
- 新しいラベル
public void setValue(String value)
public Cell setNumberValue(String numString)
numString
- 数値の文字列表現
public Cell setStringValue(String string)
string
- セルの値
public Cell setFormula(String formula)
formula
- 式
public String toString()
Object
内の toString
public int compareTo(Cell o)
Comparable<Cell>
内の compareTo
public boolean equals(Object obj)
Object
内の equals
public int hashCode()
Object
内の hashCode
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |