private void handleAddLine(final String header,final String line,final NotificationType type){
  insertNewline();
  String dateString=dateFormatter.format(new Date());
  insertTimestamp(dateString);
  insertHeader(header);
  insertText(line,type);
}

private void handleAddLine ( final String header , final String line , final NotificationType type ) { insertNewline ( ) ; String dateString = dateFormatter . format ( new Date ( ) ) ; insertTimestamp ( dateString ) ; insertHeader ( header ) ; insertText ( line , type ) ; }
add a new line with a specified header and content . the style will be chosen according to the type of the message . keep the view at the last line unless the user has scrolled higher .
