List of usage examples for com.vaadin.ui PopupView setData
public void setData(Object data)
From source file:org.ikasan.dashboard.ui.dashboard.panel.DashboardPanel.java
License:BSD License
@Subscribe public void receiveAlertEvent(final AlertEvent event) { UI.getCurrent().access(new Runnable() { @Override// w w w.j a v a 2 s . c o m public void run() { VaadinSession.getCurrent().getLockInstance().lock(); try { Item item = container.addItemAt(0, event.getAlert() + this); Property<String> alertProperty = item.getItemProperty("Alert"); alertProperty.setValue(event.getAlert()); final Property<String> moduleProperty = item.getItemProperty("Module"); moduleProperty.setValue(event.getModule()); TextArea notesField = new TextArea("Notes"); notesField.setWidth("500px"); notesField.setRequired(false); notesField.setHeight("150px"); notesField.setImmediate(true); notesField.setStyleName("coursedetailtext"); // popup notes view final PopupView notesPopupView = new PopupView("Details", notesField); notesPopupView.setCaption("Details"); notesPopupView.setHideOnMouseOut(false); notesPopupView.setData(event.getAlert() + this); final Property<PopupView> detailsProperty = item.getItemProperty("Details"); detailsProperty.setValue(notesPopupView); System.out.println("container = " + container); System.out.println("Item = " + item); } finally { VaadinSession.getCurrent().getLockInstance().unlock(); } // UI.getCurrent().push(); } }); }