1 /* 2 * aTunes 3 * Copyright (C) Alex Aranda, Sylvain Gaudard and contributors 4 * 5 * See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors 6 * 7 * http://www.atunes.org 8 * http://sourceforge.net/projects/atunes 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License 12 * as published by the Free Software Foundation; either version 2 13 * of the License, or (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 */ 20 21 package net.sourceforge.atunes.model; 22 23 24 /** 25 * Responsible of managing some UI operations 26 * @author alex 27 * 28 */ 29 public interface IUIHandler extends IHandler { 30 31 /** 32 * Finish. 33 * 34 * NOTE: This method is called using reflection from MACOSXAdapter. Refactoring will break code! 35 */ finish()36 public void finish(); 37 38 /** 39 * Convenience method, called from MacOSXAdapter 40 */ showFullFrame()41 public void showFullFrame(); 42 43 /** 44 * Show about dialog. 45 * 46 * NOTE: This method is called using reflection from MACOSXAdapter. Refactoring will break code! 47 */ showAboutDialog()48 public void showAboutDialog(); 49 50 /** 51 * Show status bar. 52 * 53 * @param show 54 * @param save 55 */ showStatusBar(boolean show, boolean save)56 public void showStatusBar(boolean show, boolean save); 57 58 /** 59 * Start visualization. 60 */ startVisualization()61 public void startVisualization(); 62 63 /** 64 * Toggle window visibility. 65 */ toggleWindowVisibility()66 public void toggleWindowVisibility(); 67 68 /** 69 * Update title bar. 70 * 71 * @param song 72 * the song 73 */ updateTitleBar(IAudioObject song)74 public void updateTitleBar(IAudioObject song); 75 76 }