Package org.fenrir.yggdrasil.ui.widget

Examples of org.fenrir.yggdrasil.ui.widget.TrayPopupEntry


    @Override
    public void singleNotification(IApplicationNotification notification)
    {
        // Entrada al popup
        final TrayPopupEntry entry = new TrayPopupEntry();
        entry.setNotificationId(notification.getId());
        entry.setMessage(notification.getMessage());
        if(notification instanceof INotificationActionSupport){
            Action action = ((INotificationActionSupport)notification).getAction();
            entry.setAction(action);
        }
        ImageIcon icon = new ImageIcon(getClass().getResource(notification.getIconPath()));
        entry.setIcon(icon);
       
        final boolean showNotification = ApplicationWindowManager.getInstance().isMainWindowActive();
        if(!showNotification){
            if(log.isDebugEnabled()){
                log.debug("Finestra no visible; Mostrant notificació al tray");
View Full Code Here

TOP

Related Classes of org.fenrir.yggdrasil.ui.widget.TrayPopupEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.