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

23 lines
372 B
Java
Raw Normal View History

2016-03-10 02:39:23 +00:00
package com.bytezone.diskbrowser.visicalc;
2016-03-12 22:38:03 +00:00
class IsError extends Function
2016-03-10 02:39:23 +00:00
{
2016-03-19 05:31:30 +00:00
Cell cell;
2016-03-10 02:39:23 +00:00
public IsError (Sheet parent, String text)
{
super (parent, text);
}
@Override
2016-03-17 04:40:43 +00:00
public Value calculate ()
2016-03-10 02:39:23 +00:00
{
2016-03-19 05:31:30 +00:00
if (cell == null)
cell = parent.getCell (functionText);
value = cell == null ? 1 : 0;
valueType = ValueType.VALUE;
2016-03-17 04:40:43 +00:00
return this;
2016-03-10 02:39:23 +00:00
}
}