Package org.springframework.richclient.core

Examples of org.springframework.richclient.core.Message


            message = DefaultMessage.EMPTY_MESSAGE;
        }
        if (ObjectUtils.nullSafeEquals(this.message, message)) {
            return;
        }
        Message oldMsg = this.message;
        this.message = message;
        fireMessageUpdated(oldMsg, this.message);
    }
View Full Code Here


        private Icon icon = null;
        private String toolTipText = null;

        public void put(Object key, Message message) {
            Message oldMessage = messageMap.get(key);
            if (oldMessage != message) {
                // Update errorMessageStack
                if ((oldMessage != null) && (oldMessage.getSeverity() == Severity.ERROR)) {
                    errorMessageStack.remove(oldMessage);
                }
                if ((message != null) && (message.getSeverity() == Severity.ERROR)) {
                    errorMessageStack.add(message);
                }
View Full Code Here

                    @Override
                    protected String convertToString(Object o)
                    {
                        if (o instanceof Message)
                        {
                            Message message = (Message) o;
                            return message.getSeverity() + ": " + message.getMessage();
                        }
                        return o.toString();
                    }
                });
                new Thread(new Runnable()
View Full Code Here

            exceptionMessage = ((MessageSourceAccessor) ApplicationServicesLocator.services()
                    .getService(MessageSourceAccessor.class))
                    .getMessage("applicationDialog.defaultException", defaultMessage);
        }

        Message message = new DefaultMessage(exceptionMessage, Severity.ERROR);
        ApplicationWindow activeWindow = Application.instance().getActiveWindow();
        JFrame parentFrame = (activeWindow == null) ? null : activeWindow.getControl();
        JOptionPane.showMessageDialog(parentFrame, message.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
    }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.core.Message

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.