dmolony-DiskBrowser/src/com/bytezone/diskbrowser/visicalc/IsError.java

24 lines
867 B
Java

package com.bytezone.diskbrowser.visicalc;
// -----------------------------------------------------------------------------------//
class IsError extends BooleanFunction
// -----------------------------------------------------------------------------------//
{
// ---------------------------------------------------------------------------------//
IsError (Cell cell, String text)
// ---------------------------------------------------------------------------------//
{
super (cell, text);
assert text.startsWith ("@ISERROR(") : text;
}
// ---------------------------------------------------------------------------------//
@Override
public void calculate ()
// ---------------------------------------------------------------------------------//
{
source.calculate ();
bool = source.getValueResult () == ValueResult.ERROR;
}
}