java.lang.Object | +--com.ibm.lab.soln.editor.core.MiniSpreadsheetRow
Represents a single row of a mini-spreadsheet.
MiniSpreadsheet| Constructor Summary | |
MiniSpreadsheetRow(MiniSpreadsheet mss,
int columnCount,
int rowIndex)
Create a new row. |
|
| Method Summary | |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Allow instances of this class to be adapted to other interfaces. |
int |
getColumnCount()
Return the number of columns. |
int |
getInt(int columnIndex)
Get the value at [column] as an integer or zero if not a value integer format. |
int |
getRowIndex()
Return the row number of this instance in the mini-spreadsheet. |
java.lang.String |
getString(int columnIndex)
Get the value at [column] as a string. |
boolean |
hasInts()
Return true if any data
in this row is a valid integer. |
boolean |
isInt(int columnIndex)
Return true if the data at [column]
is a valid integer. |
void |
remove()
Remove this instance from the mini-spreadsheet. |
void |
setData(int columnIndex,
int value)
Set the value at [column] to integer. |
void |
setData(int columnIndex,
java.lang.String value)
Set the value at [column] to string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiniSpreadsheetRow(MiniSpreadsheet mss,
int columnCount,
int rowIndex)
| Method Detail |
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptableIAdaptable.getAdapter(Class),
MiniSpreadsheetRowActionFilter,
MiniSpreadsheetUIPlugin.startup()public int getColumnCount()
public int getInt(int columnIndex)
public int getRowIndex()
public java.lang.String getString(int columnIndex)
public boolean hasInts()
true if any data
in this row is a valid integer.
public boolean isInt(int columnIndex)
true if the data at [column]
is a valid integer.
public void remove()
public void setData(int columnIndex,
int value)
public void setData(int columnIndex,
java.lang.String value)