Type typeValue = (Type) type.getValue();
Notification n = new Notification(tf.getValue(), typeValue);
n.setDelayMsec(-1);
n.setHtmlContentAllowed(true);
NotificationConfiguration notificationConf = UI.getCurrent()
.getNotificationConfiguration();
notificationConf.setAssistivePrefix(typeValue, prefix.getValue());
notificationConf.setAssistivePostfix(typeValue, postfix.getValue());
notificationConf.setAssistiveRole(typeValue,
(NotificationRole) role.getValue());
n.show(Page.getCurrent());
}