Package org.springframework.richclient.core

Examples of org.springframework.richclient.core.Severity


    public void setMessage(Message message) {
        if (message == null) {
            message = DefaultMessage.EMPTY_MESSAGE;
        }
        setToolTipText(message.getMessage());
        Severity severity = message.getSeverity();

        if (severity != null) {
            setIcon(getIconSource().getIcon("severity." + severity.getLabel() + ".overlay"));
        } else {
            setIcon(null);
        }
    }
View Full Code Here


        assertMessageAndSeveritySet(buffer, msg, Severity.ERROR);
    }

    public void testSetSameMessage() {
        String msg = "Test message";
        Severity severity = Severity.WARNING;

        DefaultMessageAreaModel buffer = new DefaultMessageAreaModel();
        buffer.addPropertyChangeListener(ml1);
        buffer.addPropertyChangeListener(ml2);
View Full Code Here

            if (this.messagableTab != null)
                this.messagableTab.setMessage(this, message, this.tabIndex);
            messageBuffer.setMessage(message);
            message = messageBuffer.getMessage();
            setToolTipText(message.getMessage());
            Severity severity = message.getSeverity();
            if (severity != null)
                setIcon(RcpSupport.getIcon("severity." + severity.getLabel() + ".overlay"));
            else
                setIcon(null);
        }
View Full Code Here

TOP

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

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.