You are here: Links of Interest » HEIG-VD » [PRO] Virtual Comics Library » Rapport » Implémentation » Application Desktop » Crawler
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
heig:vcl:rapport:implementation:desktop:crawler [2016/05/30 10:37] – created Laureline David | heig:vcl:rapport:implementation:desktop:crawler [2016/05/31 22:49] (current) – kerroin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Crawler ====== | ====== Crawler ====== | ||
- | ... | + | {{ : |
+ | |||
+ | Le crawler est implémenté comme un module " | ||
+ | |||
+ | Les boutons sont mis à jour en fonction de l' | ||
+ | |||
+ | Cette interface utilise les procédures asynchrones fournies par l'API. Ceci permet à l' | ||
+ | |||
+ | ProgressFuture< | ||
+ | .crawlAsync(url) | ||
+ | .whenProgressAsync(this:: | ||
+ | .whenMessageAsync(this:: | ||
+ | .whenCompleteAsync(this:: | ||
+ | |||
+ | private void onCrawlProgress(ProgressFuture< | ||
+ | // Met à jour la barre de progression | ||
+ | crawlProgress.setProgress(future.getProgress()); | ||
+ | crawlCount.setText(String.format(" | ||
+ | } | ||
+ | |||
+ | private void onCrawlMessage(ProgressFuture< | ||
+ | // Affiche le message dans le log | ||
+ | log.appendText(future.getMessage() + " | ||
+ | } | ||
+ | |||
+ | L' | ||
+ | |||
+ | L' |