* Called when the "display" button is clicked in immediate mode.
* Shows the currently selected media on the display/preview screens.
*/
private void showSelectedMedia() {
int idx = itemsList.getSelectedIndex();
ImageSlide imgslide = new ImageSlide();
if(idx == -1) {
Display.getDisplay().prepareNextBackground(ScreenRunner.currentStyle, imgslide.getStyleType());
Display.getDisplay().prepareNextSlide(null, 1, ScreenRunner.currentStyle);
} else {
Display.getDisplay().prepareNextBackground(ScreenRunner.currentStyle, imgslide.getStyleType());
imgslide.setUserData(getImageSlidePathString());
Display.getDisplay().prepareNextSlide(imgslide, 1, ScreenRunner.currentStyle);
}
Display.getDisplay().applyChanges();
//if(idx < (fileList.size() - 1)) itemsList.setSelectedIndex(idx + 1);