public void event(UserRequest ureq, Component source, Event event) {
if (event == ComponentUtil.VALIDATE_EVENT) {
// before rendering, check if we can still or newly offer the paste
// button. this is the case when the clipboard contains an entry which
// matches the desired dataflavor
ClipboardEntry cbe = cbs.getClipboardEntry();
if (cbe == null) {
expandedP.setContent(null);
if (trayContentC != null) trayContentC.dispose();
} else {
if (cbe != latestCB) {
latestCB = cbe;
trayContentC = cbe.createTrayUI().createController(ureq, getWindowControl());
frdC = new FloatingResizableDialogController(ureq, getWindowControl(), trayContentC.getInitialComponent(), "clipboard tray");
frdC.addControllerListener(this);
detail = frdC.getInitialComponent();
expandedP.setContent(detail);
}