private static void initBundledImages() { bundledImages.put("Control", images.control()); bundledImages.put("Logic", images.logic()); bundledImages.put("Math", images.math()); bundledImages.put("Text", images.text()); bundledImages.put("Lists", images.lists()); bundledImages.put("Colors", images.colors()); bundledImages.put("Variables", images.variables()); bundledImages.put("Procedures", images.procedures()); }
public ComponentHelpWidget(final SimpleComponentDescriptor scd) { if (imageResource == null) { Images images = Ode.getImageBundle(); imageResource = images.help(); } AbstractImagePrototype.create(imageResource).applyTo(this); addClickListener( new ClickListener() { @Override public void onClick(Widget sender) { final long MINIMUM_MS_BETWEEN_SHOWS = 250; // .25 seconds if (System.currentTimeMillis() - lastClosureTime >= MINIMUM_MS_BETWEEN_SHOWS) { new ComponentHelpPopup(scd, sender); } } }); }
private static void initBundledImages() { bundledImages.put("images/accelerometersensor.png", images.accelerometersensor()); bundledImages.put("images/activityStarter.png", images.activitystarter()); bundledImages.put("images/barcodeScanner.png", images.barcodeScanner()); bundledImages.put("images/bluetooth.png", images.bluetooth()); bundledImages.put("images/camera.png", images.camera()); bundledImages.put("images/camcorder.png", images.camcorder()); bundledImages.put("images/clock.png", images.clock()); bundledImages.put("images/fusiontables.png", images.fusiontables()); bundledImages.put("images/gameClient.png", images.gameclient()); bundledImages.put("images/locationSensor.png", images.locationSensor()); bundledImages.put("images/notifier.png", images.notifier()); bundledImages.put("images/legoMindstormsNxt.png", images.legoMindstormsNxt()); bundledImages.put("images/orientationsensor.png", images.orientationsensor()); bundledImages.put("images/pedometer.png", images.pedometerComponent()); bundledImages.put("images/phoneCall.png", images.phonecall()); bundledImages.put("images/player.png", images.player()); bundledImages.put("images/soundEffect.png", images.soundeffect()); bundledImages.put("images/soundRecorder.png", images.soundRecorder()); bundledImages.put("images/speechRecognizer.png", images.speechRecognizer()); bundledImages.put("images/textToSpeech.png", images.textToSpeech()); bundledImages.put("images/texting.png", images.texting()); bundledImages.put("images/tinyDB.png", images.tinyDB()); bundledImages.put("images/tinyWebDB.png", images.tinyWebDB()); bundledImages.put("images/twitter.png", images.twitterComponent()); bundledImages.put("images/voting.png", images.voting()); bundledImages.put("images/web.png", images.web()); imagesInitialized = true; }