Class SingleCell
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,CellFinder,RowCellFinder,Serializable
public class SingleCell extends AbstractRowCellFinder
Simple locator that just locates a single cell.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-row <adams.core.Index> (property: row) The row to locate. default: first
-column <adams.core.Index> (property: column) The column to locate. default: first
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SpreadSheetColumnIndexm_Columnthe column.protected Indexm_Rowthe row.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description SingleCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcolumnTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.protected Iterator<CellLocation>doFindCells(Row row)Performs the actual locating.protected Iterator<CellLocation>doFindCells(SpreadSheet sheet)Performs the actual locating.SpreadSheetColumnIndexgetColumn()Returns the column to locate.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.IndexgetRow()Returns the row to locate.StringglobalInfo()Returns a string describing the object.StringrowTipText()Returns the tip text for this property.voidsetColumn(SpreadSheetColumnIndex value)Sets the column to locate.voidsetRow(Index value)Sets the row to locate.-
Methods inherited from class adams.data.spreadsheet.cellfinder.AbstractRowCellFinder
check, findCells
-
Methods inherited from class adams.data.spreadsheet.cellfinder.AbstractCellFinder
check, findCells, forCommandLine, forName, getCellFinders, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.data.spreadsheet.cellfinder.CellFinder
findCells
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Row
protected Index m_Row
the row.
-
m_Column
protected SpreadSheetColumnIndex m_Column
the column.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setRow
public void setRow(Index value)
Sets the row to locate.- Parameters:
value- the row
-
getRow
public Index getRow()
Returns the row to locate.- Returns:
- the row
-
rowTipText
public String rowTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
setColumn
public void setColumn(SpreadSheetColumnIndex value)
Sets the column to locate.- Parameters:
value- the column
-
getColumn
public SpreadSheetColumnIndex getColumn()
Returns the column to locate.- Returns:
- the column
-
columnTipText
public String columnTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfoin interfaceQuickInfoSupporter- Overrides:
getQuickInfoin classAbstractCellFinder- Returns:
- null if no info available, otherwise short string
-
doFindCells
protected Iterator<CellLocation> doFindCells(SpreadSheet sheet)
Performs the actual locating.- Specified by:
doFindCellsin classAbstractCellFinder- Parameters:
sheet- the sheet to locate the cells in- Returns:
- the iterator over the locations
-
doFindCells
protected Iterator<CellLocation> doFindCells(Row row)
Performs the actual locating.- Specified by:
doFindCellsin classAbstractRowCellFinder- Parameters:
row- the row to locate the cells in- Returns:
- the iterator over the locations
-
-