[go: up one dir, main page]

Menu

[r9]: / cell / CellBase.java  Maximize  Restore  History

Download this file

33 lines (32 with data), 608 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package cell;
public abstract class CellBase
{
public Object clone()
{
return null;
}
public abstract Object go(byte x, short y);
public abstract void so(byte x, short y, Object o);
public abstract short max();
abstract void ramDelete(short y);
public float af(byte col, short row)
{
try
{
return ((Float)go(col, row)).floatValue();
}
catch (Exception e)
{
return 0;
}
}
String mh(byte col, short row)
{
for (short i = row; i >= 0; i--)
{
String s = go(col, i) + "";
if (!s.trim().equals("")) return s;
}
return null;
}
}