001 /* 002 Copyright (C) 2002 Laurent Martelli <laurent@aopsys.com> 003 004 This program is free software; you can redistribute it and/or modify 005 it under the terms of the GNU Lesser General Public License as 006 published by the Free Software Foundation; either version 2 of the 007 License, or (at your option) any later version. 008 009 This program is distributed in the hope that it will be useful, 010 but WITHOUT ANY WARRANTY; without even the implied warranty of 011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 GNU Lesser General Public License for more details. 013 014 You should have received a copy of the GNU Lesser General Public License 015 along with this program; if not, write to the Free Software 016 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 017 018 package org.objectweb.jac.aspects.gui; 019 020 public interface CustomizedView extends CompositeView { 021 /** 022 * Returns the customized GUI, i.e. the object that contains all 023 * the parametrization of this view as built by the GUI aspect. 024 * 025 * @return an implementation-independant object */ 026 CustomizedGUI getCustomizedGUI(); 027 028 /** 029 * Set a menu bar to the customized. 030 * 031 * @param menuBar the abstract menu bar 032 * @param position (TOP||BOTTOM) 033 */ 034 void setMenuBar(MenuView menuBar,String position); 035 036 /** 037 * Set a tool bar to the customized. 038 * 039 * @param toolBar the abstract tool bar 040 */ 041 void setToolBar(MenuView toolBar); 042 043 /** 044 * Set a status bar to the customized. 045 * 046 * @param view the abstract status bar 047 * @param position (TOP||BOTTOM) 048 */ 049 void setStatusBar(StatusView view,String position); 050 051 /** 052 * Show a message on the customized's status bar. 053 * 054 * @param message the message to show 055 */ 056 void showStatus(String message); 057 058 /** 059 * Returns the content pane of the customized, i.e. a panel 060 * containing some sub-panels. 061 * 062 * @return the view of subpanes 063 */ 064 PanelView getPanelView(); 065 066 void requestFocus(); 067 }