KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > antlr > xjlib > appkit > frame > XJFrameInterface


1 package org.antlr.xjlib.appkit.frame;
2
3 import org.antlr.xjlib.appkit.menu.XJMainMenuBar;
4 import org.antlr.xjlib.appkit.menu.XJMenu;
5 import org.antlr.xjlib.appkit.menu.XJMenuItem;
6 import org.antlr.xjlib.appkit.undo.XJUndo;
7 import org.antlr.xjlib.appkit.undo.XJUndoDelegate;
8
9 import javax.swing.*;
10 import java.awt.*;
11 /*
12
13 [The "BSD licence"]
14 Copyright (c) 2005-2006 Jean Bovet
15 All rights reserved.
16
17 Redistribution and use in source and binary forms, with or without
18 modification, are permitted provided that the following conditions
19 are met:
20
21 1. Redistributions of source code must retain the above copyright
22 notice, this list of conditions and the following disclaimer.
23 2. Redistributions in binary form must reproduce the above copyright
24 notice, this list of conditions and the following disclaimer in the
25 documentation and/or other materials provided with the distribution.
26 3. The name of the author may not be used to endorse or promote products
27 derived from this software without specific prior written permission.
28
29 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
30 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
31 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
32 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
33 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
34 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
38 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40 */

41
42 public interface XJFrameInterface {
43
44     void registerUndo(XJUndoDelegate delegate, JTextPane textPane);
45     XJUndo getUndo(JTextPane textPane);
46     XJUndo getCurrentUndo();
47
48     XJMainMenuBar getMainMenuBar();
49     void handleMenuEvent(XJMenu menu, XJMenuItem item);
50
51     Container getJavaContainer();
52     JLayeredPane getLayeredPane();
53     JRootPane getRootPane();
54
55 }
56
Popular Tags