1 26 package org.objectweb.util.explorer.swt.lib; 27 28 import org.eclipse.swt.SWT; 29 import org.eclipse.swt.widgets.Shell; 30 import org.eclipse.swt.widgets.Text; 31 import org.objectweb.util.explorer.core.common.api.TextComponent; 32 import org.objectweb.util.explorer.swt.api.StatusBar; 33 34 42 public class DefaultStatusBar 43 implements StatusBar, TextComponent 44 { 45 46 52 protected Text text_ = null; 53 54 60 public DefaultStatusBar(){ 61 text_ = new Text(new Shell(), SWT.BORDER); 62 } 63 64 70 76 79 public void setText(String message) { 80 if(message!=null){ 81 text_.setText(message); 82 } 83 } 84 85 91 94 public Text getStatusBar() { 95 return text_; 96 } 97 98 } 99 100 | Popular Tags |