protected void doAction(Object param) { NedListModel categoriesList = (NedListModel) param; int quantity = 0; for (int i = 0; i < categoriesList.getSize(); i++) { Content categoryItem = (Content) categoriesList.getItemAt(i); Vector catalogList = XmlManager.getContentChilds(categoryItem.getId(), null); for (int j = 0; j < catalogList.size(); j++) { Content catalogItem = (Content) catalogList.elementAt(j); Vector mediaItemList = XmlManager.getContentChilds(catalogItem.getId(), null); for (int k = 0; k < mediaItemList.size(); k++) { Content mediaItem = (Content) mediaItemList.elementAt(k); if (!mediaItem.isDownloaded()) { AddToDownloadQueueCommand.getInstance().execute(mediaItem); ++quantity; } } } } if (quantity > 0) { Object[] params = {String.valueOf(quantity)}; String msg = Localization.getMessage(NedResources.ITEM_ADDED_TO_QUEUE, params); GeneralAlert.show(msg, GeneralAlert.INFO); } else { GeneralAlert.show(NedResources.ALL_FILES_DOWNLOADED, GeneralAlert.INFO); } }
protected void doAction(Object aParam) { GeneralAlert.show( NedResources.VERSION + ' ' + NedMidlet.getInstance().getVersion(), GeneralAlert.INFO); }