@Override public void clear() { getDelegate().clear(); }
@Override public void onChanged(MapChangeListener.Change<?, ?> change) { T btn = btnWeakReference.get(); if (btn == null) { action.getProperties().removeListener(this); } else { btn.getProperties().clear(); btn.getProperties().putAll(action.getProperties()); } }
@Override public void onChanged(MapChangeListener.Change<?, ?> change) { T menuItem = menuItemWeakReference.get(); if (menuItem == null) { action.getProperties().removeListener(this); } else { menuItem.getProperties().clear(); menuItem.getProperties().putAll(action.getProperties()); } }
@Override public void executeOnCloseButtonClicked() { for (IWare ware : availableMap.keySet()) { IntegerProperty amount = availableMap.get(ware); office.move(ware, amount.intValue(), 0); } availableMap.clear(); ViewChangeCityPlayerProxyJFX proxy = new ViewChangeCityPlayerProxyJFX(viewState.getCurrentCityProxy().get(), EViewChangeEvent.MAIN_VIEW_CHURCH); clientEventBus.post(new NoticeBoardUpdate(proxy)); super.executeOnCloseButtonClicked(); } @VisibleForTesting
/** * Updates the shortcut of this {@link LibraryDetailsPanelSkin} instance */ private void updateShortcut() { final ShortcutDTO shortcut = getControl().getShortcut(); if (shortcut != null) { title.setValue(shortcut.getInfo().getName()); description.setValue(shortcut.getInfo().getDescription()); try { final Map<String, Object> shortcutProperties = getControl().getObjectMapper() .readValue(shortcut.getScript(), new TypeReference<Map<String, Object>>() { // nothing }); this.shortcutProperties.clear(); this.shortcutProperties.putAll(shortcutProperties); } catch (IOException e) { LOGGER.error("An error occurred during a shortcut update", e); } } }
/** * Updates the shortcut of this {@link LibraryDetailsPanelSkin} instance */ private void updateShortcut() { final ShortcutDTO shortcut = getControl().getShortcut(); if (shortcut != null) { title.setValue(shortcut.getInfo().getName()); description.setValue(shortcut.getInfo().getDescription()); try { final Map<String, Object> shortcutProperties = getControl().getObjectMapper() .readValue(shortcut.getScript(), new TypeReference<Map<String, Object>>() { // nothing }); this.shortcutProperties.clear(); this.shortcutProperties.putAll(shortcutProperties); } catch (IOException e) { LOGGER.error("An error occurred during a shortcut update", e); } } }
/** * Updates the {@link Engine} and {@link EngineDTO} of this {@link EngineDetailsPanelSkin} instance */ private void updateEngine() { final EngineDTO engine = getControl().getEngineDTO(); if (engine != null) { title.setValue(engine.getCategory() + " " + engine.getSubCategory()); engineVersionName.setValue(engine.getVersion()); engineUserData.clear(); engineUserData.putAll(engine.getUserData()); } } }
timedTaskListener.add(task); availableMap.clear(); city.getCity().getCityState().getPopUpdateStatistic().feedingThePoor(); executeOnCloseButtonClicked();
original.getProperties().clear();