mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-27 23:29:37 +00:00
29 lines
673 B
Java
29 lines
673 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
public class Choose extends Function
|
|
{
|
|
private final Range range;
|
|
private final String sourceText;
|
|
private final String rangeText;
|
|
private final Number source;
|
|
|
|
Choose (Sheet parent, Cell cell, String text)
|
|
{
|
|
super (parent, cell, text);
|
|
|
|
int pos = text.indexOf (',');
|
|
sourceText = text.substring (8, pos);
|
|
source = new Number (sourceText);
|
|
rangeText = text.substring (pos + 1, text.length () - 1);
|
|
range = new Range (parent, rangeText);
|
|
|
|
values.add (source);
|
|
}
|
|
|
|
@Override
|
|
public void calculate ()
|
|
{
|
|
source.calculate ();
|
|
System.out.println ("@CHOOSE not written yet");
|
|
}
|
|
} |