2 |
FakeTextSpan.java |
FakeTextSpan.java |
3 |
* |
* |
4 |
* Copyright (c) 2002, Ted Nelson and Tuomas Lukka |
* Copyright (c) 2002, Ted Nelson and Tuomas Lukka |
5 |
|
* Copyright (c) 2003, Tuomas Lukka |
6 |
* |
* |
7 |
* This file is part of Gzz. |
* This file is part of Alph. |
8 |
* |
* |
9 |
* Gzz is free software; you can redistribute it and/or modify it under |
* Alph is free software; you can redistribute it and/or modify it under |
10 |
* the terms of the GNU Lesser General Public License as published by |
* the terms of the GNU Lesser General Public License as published by |
11 |
* the Free Software Foundation; either version 2 of the License, or |
* the Free Software Foundation; either version 2 of the License, or |
12 |
* (at your option) any later version. |
* (at your option) any later version. |
13 |
* |
* |
14 |
* Gzz is distributed in the hope that it will be useful, but WITHOUT |
* Alph is distributed in the hope that it will be useful, but WITHOUT |
15 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
16 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General |
17 |
* Public License for more details. |
* Public License for more details. |
18 |
* |
* |
19 |
* You should have received a copy of the GNU Lesser General |
* You should have received a copy of the GNU Lesser General |
20 |
* Public License along with Gzz; if not, write to the Free |
* Public License along with Alph; if not, write to the Free |
21 |
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
22 |
* MA 02111-1307 USA |
* MA 02111-1307 USA |
23 |
* |
* |
45 |
transient char[] textarr; |
transient char[] textarr; |
46 |
|
|
47 |
public FakeTextSpan(String s) { |
public FakeTextSpan(String s) { |
|
/* |
|
|
String id = URN5Namespace.instance.getStormDataBlockId(); |
|
|
id = id + "," + URIUtil.escapeUTF8(s); |
|
|
|
|
|
sb = new FakeTextScrollBlock(s, id); |
|
|
*/ |
|
48 |
this.text = s; |
this.text = s; |
49 |
} |
} |
50 |
|
|
78 |
|
|
79 |
public ScrollBlock getScrollBlock() { |
public ScrollBlock getScrollBlock() { |
80 |
return null; |
return null; |
|
/* |
|
|
if(sb == null) sb = new FakeTextScrollBlock(); |
|
|
return sb; |
|
|
*/ |
|
81 |
} |
} |
82 |
} |
} |