Implement Notifications and Indications (MGNLUI-1065)

[MGNLUI-1092] LightDialogs can be styled as error / warning / information Created: 11/Apr/13  Updated: 19/Apr/13  Resolved: 18/Apr/13

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0

Type: Sub-task Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Christopher Zimmermann
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:
Sprint: Iteration 2013-14, Iteration 2013-15, Iteration 2013-16

 Comments   
Comment by Christopher Zimmermann [ 18/Apr/13 ]

MessageStyleType is an enum storing an icon and a css class for Errors, Warnings, Infos.
BaseOverlayLayer methods like openNotification, openConfirmation, openAlert take this type as a parameter. Its used to add the proper icon to the dialog.
dialog.scss defines styles for the css classes of these three types.
msginfo
msgwarn
msgerror

Comment by Magnolia International [ 18/Apr/13 ]

Using MessageStyleType.UNKNOWN will blow when we try to construct the icon for a message using this type.
Perhaps something along these lines would work:

    class NullIcon extends CompositeIcon {
        protected NullIcon() {
            super();
        }
    }
Comment by Christopher Zimmermann [ 19/Apr/13 ]

Implemented suggestion.

Generated at Mon Feb 12 08:43:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.