MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guia do Utilizador Página 452

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 986
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 451
11 Functions – Alphabetical List
11-72
mlreportgen.dom.MessageDispatcher.getTheDispatcher
Package: mlreportgen.dom
Return DOM message dispatcher
Syntax
getTheDispatcher
Description
getTheDispatcher returns the DOM message dispatcher. There is only one DOM
message dispatcher per MATLAB session.
Examples
Add a Dispatcher and Dispatch a Progress Message
This example shows how to return the DOM message dispatcher and use it to dispatch a
progress message.
Add a dispatcher and listener to the report.
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
d.Tag = 'My report';
dispatcher = MessageDispatcher.getTheDispatcher;
l = addlistener(dispatcher,'Message', ...
@(src, evtdata) disp(evtdata.Message.formatAsText));
open(d);
dispatch(dispatcher, ProgressMessage('starting chapter',d));
p = Paragraph('Chapter 1');
p.Tag = 'chapter title';
Vista de página 451
1 2 ... 447 448 449 450 451 452 453 454 455 456 457 ... 985 986

Comentários a estes Manuais

Sem comentários