KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > aspects > gui > CustomizedDisplay


1 /*
2   Copyright (C) 2001-2003 Laurent Martelli <laurent@aopsys.com>
3   
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU Lesser General Public License as
6   published by the Free Software Foundation; either version 2 of the
7   License, or (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful, but
10   WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this program; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17   USA */

18
19 package org.objectweb.jac.aspects.gui;
20
21 import org.objectweb.jac.core.Display;
22 import java.util.Collection JavaDoc;
23
24 /**
25  * Defines a display which contains customized GUI windows.
26  *
27  * <p>A display is an GUI entity that is used by the program to
28  * interact with the GUI users.
29  */

30 public interface CustomizedDisplay extends Display {
31     /**
32      * Returns a CustomizedView identified by its id
33      *
34      * @param customizedID the id of the CustomizedView
35      * @return the customized if exists, null otherwise
36      */

37     CustomizedView getCustomizedView(String JavaDoc customizedID);
38
39     /**
40      * Returns a collection of all CustomizedViews contained in the display.
41      *
42      * @return all the customized of the display
43      */

44     Collection JavaDoc getCustomizedViews();
45
46     /**
47      * Returns the ViewFactory of the display.
48      *
49      * <p>A view factory implements the creation methods for different
50      * visualisation supports (e.g. SWING, WEB, ...).
51      *
52      * @return the factory that is used for this display
53      */

54     ViewFactory getFactory();
55
56     /**
57      * Add a dialog to the list of timedout dialogs
58      * @param dialog the timedout dialog
59      */

60     void addTimedoutDialog(DialogView dialog);
61
62     /**
63      * Close a window.
64      *
65      * @param window view window to close
66      * @param validate wether to validate values in editors
67      */

68     void closeWindow(View window, boolean validate);
69
70 }
71
Popular Tags