示例#1
0
 public static void setNotifications(ArrayList<Message> messages) {
   if (messages != null) {
     System.out.println("notes set");
     System.out.println(messages);
     notifications = messages;
     for (NotificationListener notificationListener : notificationListeners) {
       notificationListener.setNotifications(messages);
     }
   }
 }
示例#2
0
 /** Fires when notification simply closed. */
 public void fireClosed() {
   for (final NotificationListener listener : CollectionUtils.copy(listeners)) {
     listener.closed();
   }
 }
示例#3
0
 /** Fires when notification accepted and closed. */
 public void fireAccepted() {
   for (final NotificationListener listener : CollectionUtils.copy(listeners)) {
     listener.accepted();
   }
 }
示例#4
0
 /** Fires when notification options is selected. */
 public void fireOptionSelected(final NotificationOption option) {
   for (final NotificationListener listener : CollectionUtils.copy(listeners)) {
     listener.optionSelected(option);
   }
 }