Source Code Cross Referenced for BaseInternalFrame.java in  » Database-Client » squirrel-sql-2.6.5a » net » sourceforge » squirrel_sql » client » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database Client » squirrel sql 2.6.5a » net.sourceforge.squirrel_sql.client.gui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.sourceforge.squirrel_sql.client.gui;
002:
003:        /*
004:         * Copyright (C) 2001-2004 Colin Bell
005:         * colbell@users.sourceforge.net
006:         *
007:         * This library is free software; you can redistribute it and/or
008:         * modify it under the terms of the GNU Lesser General Public
009:         * License as published by the Free Software Foundation; either
010:         * version 2.1 of the License, or (at your option) any later version.
011:         *
012:         * This library is distributed in the hope that it will be useful,
013:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
014:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
015:         * Lesser General Public License for more details.
016:         *
017:         * You should have received a copy of the GNU Lesser General Public
018:         * License along with this library; if not, write to the Free Software
019:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
020:         */
021:        import java.awt.event.KeyEvent;
022:
023:        import javax.swing.JInternalFrame;
024:
025:        /**
026:         * Base functionality for Squirrels internal frames.
027:         *
028:         * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>
029:         */
030:        public class BaseInternalFrame extends JInternalFrame {
031:            /**
032:             * Creates a non-resizable, non-closable, non-maximizable,
033:             * non-iconifiable JInternalFrame with no title.
034:             */
035:            public BaseInternalFrame() {
036:                super ();
037:            }
038:
039:            /**
040:             * Creates a non-resizable, non-closable, non-maximizable,
041:             * non-iconifiable JInternalFrame with the specified title.
042:             *
043:             * @param	title	Title for internal frame.
044:             */
045:            public BaseInternalFrame(String title) {
046:                super (title);
047:            }
048:
049:            /**
050:             * Creates a non-closable, non-maximizable, non-iconifiable
051:             * JInternalFrame with the specified title and with
052:             * resizability specified.
053:             *
054:             * @param	title		Title for internal frame.
055:             * @param	resizable	<TT>true</TT> if frame can be resized.
056:             */
057:            public BaseInternalFrame(String title, boolean resizable) {
058:                super (title, resizable);
059:            }
060:
061:            /**
062:             * Creates a non-maximizable, non-iconifiable JInternalFrame
063:             * with the specified title and with resizability and closability
064:             * specified.
065:             *
066:             * @param	title		Title for internal frame.
067:             * @param	resizable	<TT>true</TT> if frame can be resized.
068:             * @param	closeable	<TT>true</TT> if frame can be closed.
069:             */
070:            public BaseInternalFrame(String title, boolean resizable,
071:                    boolean closable) {
072:                super (title, resizable, closable);
073:            }
074:
075:            /**
076:             * Creates a non-iconifiable JInternalFrame with the specified title
077:             * and with resizability, closability, and maximizability specified.
078:             *
079:             * @param	title		Title for internal frame.
080:             * @param	resizable	<TT>true</TT> if frame can be resized.
081:             * @param	closeable	<TT>true</TT> if frame can be closed.
082:             * @param	maximizable	<TT>true</TT> if frame can be maximized.
083:             */
084:            public BaseInternalFrame(String title, boolean resizable,
085:                    boolean closable, boolean maximizable) {
086:                super (title, resizable, closable, maximizable);
087:            }
088:
089:            /**
090:             * Creates a JInternalFrame with the specified title and with
091:             * resizability, closability, maximizability and
092:             * iconifability specified.
093:             *
094:             * @param	title		Title for internal frame.
095:             * @param	resizable	<TT>true</TT> if frame can be resized.
096:             * @param	closeable	<TT>true</TT> if frame can be closed.
097:             * @param	maximizable	<TT>true</TT> if frame can be maximized.
098:             * @param	iconifiable	<TT>true</TT> if frame can be iconified.
099:             */
100:            public BaseInternalFrame(String title, boolean resizable,
101:                    boolean closable, boolean maximizable, boolean iconifiable) {
102:                super (title, resizable, closable, maximizable, iconifiable);
103:            }
104:
105:            /**
106:             *
107:             * Modifed version of code from Slavas View class in jEdit.
108:             */
109:            public void processKeyEvent(KeyEvent evt) {
110:                // Superclass method is protected.
111:                super .processKeyEvent(evt);
112:                /*
113:                 * 		if (isClosed())
114:                			return;
115:
116:                		// JTextComponents don't consume events...
117:                		if (getFocusOwner() instanceof JTextComponent) {
118:                			// fix for the bug where key events in JTextComponents
119:                			// inside views are also handled by the input handler
120:                			if (evt.getID() == KeyEvent.KEY_PRESSED) {
121:                				switch (evt.getKeyCode()) {
122:                					case KeyEvent.VK_BACK_SPACE :
123:                					case KeyEvent.VK_TAB :
124:                					case KeyEvent.VK_ENTER :
125:                						return;
126:                				}
127:                			}
128:
129:                			Keymap keymap = ((JTextComponent) getFocusOwner()).getKeymap();
130:                			if (keymap.getAction(KeyStroke.getKeyStrokeForEvent(evt)) != null)
131:                				return;
132:                		}
133:
134:                		if (evt.isConsumed())
135:                			return;
136:
137:                		if (!evt.isConsumed())
138:                			super.processKeyEvent(evt);
139:                 */
140:            }
141:
142:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.