@Override public void updatePage(IServiceModel model) { if (getPager() == null) { // maybe null during init return; } if (model instanceof Song) { Song song = (Song) model; if (album.getActiveSong() == null) { updateBlink(null); } if (song.isActive()) { Node container = getNodeForSong(song); updateBlink(container); } if (lastSongSelection != null) { lastSongSelection.setStyle(STYLE_INACTIVE); } if (songBox != null) { final ObservableList<Node> children = songBox.getChildren(); for (Node node : children) { String id = node.getId(); if (getPager().getActiveModel() instanceof Song) { if (id.equals(String.valueOf(((Song) getPager().getActiveModel()).getMID()))) { lastSongSelection = node; lastSongSelection.setStyle(STYLE_ACTIVE); } } } } } }