import com.vaadin.event.FieldEvents.FocusEvent;
import com.vaadin.event.FieldEvents.FocusListener;
import com.vaadin.tests.components.TestBase;
+import com.vaadin.tests.util.Log;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
int index = 1;
ArrayList<Component> tabs = new ArrayList<Component>();
TabSheet ts = new TabSheet();
- Label focusblur = new Label("No focus");
+ Log focusblur = new Log(10);
@Override
protected void setup() {
ts.addListener(new FocusListener() {
public void focus(FocusEvent event) {
- focusblur.setValue("Tabsheet focused!");
+ focusblur.log("Tabsheet focused!");
}
});
ts.addListener(new BlurListener() {
public void blur(BlurEvent event) {
- focusblur.setValue("Tabsheet blurred!");
+ focusblur.log("Tabsheet blurred!");
}
});