comparison dwtx/jface/internal/text/html/BrowserInformationControl.d @ 158:25f1f92fa3df

...
author Frank Benoit <benoit@tionex.de>
date Tue, 26 Aug 2008 02:46:34 +0200
parents f70d9508c95c
children 3678e4f1a766
comparison
equal deleted inserted replaced
157:7f75eaa8103a 158:25f1f92fa3df
19 import dwtx.jface.internal.text.html.BrowserInput; // packageimport 19 import dwtx.jface.internal.text.html.BrowserInput; // packageimport
20 import dwtx.jface.internal.text.html.SingleCharReader; // packageimport 20 import dwtx.jface.internal.text.html.SingleCharReader; // packageimport
21 import dwtx.jface.internal.text.html.BrowserInformationControlInput; // packageimport 21 import dwtx.jface.internal.text.html.BrowserInformationControlInput; // packageimport
22 import dwtx.jface.internal.text.html.HTMLMessages; // packageimport 22 import dwtx.jface.internal.text.html.HTMLMessages; // packageimport
23 23
24 24 // FIXME needs Browser :/
25 /++
25 import dwt.dwthelper.utils; 26 import dwt.dwthelper.utils;
26 27
27 import java.io.IOException; 28 import dwtx.dwtxhelper.StringReader;
28 import java.io.StringReader;
29 import dwtx.dwtxhelper.Collection; 29 import dwtx.dwtxhelper.Collection;
30 30
31 import dwt.DWT; 31 import dwt.DWT;
32 import dwt.DWTError; 32 import dwt.DWTError;
33 import dwt.browser.Browser; 33 import dwt.browser.Browser;
249 249
250 /** 250 /**
251 * {@inheritDoc} 251 * {@inheritDoc}
252 * @deprecated use {@link #setInput(Object)} 252 * @deprecated use {@link #setInput(Object)}
253 */ 253 */
254 public void setInformation(final String content) { 254 public void setInformation(String content) {
255 setInput(new class(null) BrowserInformationControlInput { 255 setInput(new class(null,content) BrowserInformationControlInput {
256 String content_;
257 this(BrowserInformationControlInput input, String a){
258 super(input);
259 content_=a;
260 }
256 public String getHtml() { 261 public String getHtml() {
257 return content; 262 return content_;
258 } 263 }
259 264
260 public String getInputName() { 265 public String getInputName() {
261 return ""; //$NON-NLS-1$ 266 return ""; //$NON-NLS-1$
262 } 267 }
263 268
264 public Object getInputElement() { 269 public Object getInputElement() {
265 return content; 270 return stringcast(content_);
266 } 271 }
267 }); 272 });
268 } 273 }
269 274
270 /** 275 /**
630 635
631 return new Point(widthInChars * width, heightInChars * height); 636 return new Point(widthInChars * width, heightInChars * height);
632 } 637 }
633 638
634 } 639 }
640
641 ++/