示例#1
0
 public MessageDialog getMessageDialogByTarget(String target) {
   for (MessageDialog m : messages) {
     if (m.getTarget().equalsIgnoreCase(target)) {
       return m;
     }
   }
   return null;
 }
示例#2
0
 public boolean hasMessage(String target) {
   for (MessageDialog m : messages) {
     if (m.getTarget().equalsIgnoreCase(target)) {
       return true;
     }
   }
   return false;
 }