Java Doc for SQLPanelAPI.java in  » Database-Client » squirrel-sql-2.6.5a » net » sourceforge » squirrel_sql » client » session » 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.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.squirrel_sql.client.session.SQLPanelAPI

SQLPanelAPI
public class SQLPanelAPI implements ISQLPanelAPI(Code)
This class is the API through which plugins can work with the SQL Panel.
author:
   Colin Bell



Constructor Summary
public  SQLPanelAPI(SQLPanel panel)
     Ctor specifying the panel.

Method Summary
public  voidaddExecuterTabListener(ISQLResultExecuterTabListener lis)
     Add a listener for events in this sql panel executer tabs.
public  voidaddExecutor(ISQLResultExecuter exec)
    
public synchronized  voidaddResultTabListener(IResultTabListener lis)
     Add a listener for events in this sessions result tabs.
public synchronized  voidaddSQLExecutionListener(ISQLExecutionListener lis)
     Add a listener listening for SQL Execution.
public synchronized  voidaddSQLPanelListener(ISQLPanelListener lis)
     Add a listener for events in this SQL Panel.
public synchronized  voidaddSQLToHistory(String sql)
     The passed SQL should be added to the SQL history.
public  voidaddSqlPanelListener(SqlPanelListener sqlPanelListener)
    
public  voidaddToSQLEntryAreaMenu(JMenu menu)
     Add a hierarchical menu to the SQL Entry Area popup menu.
public  JMenuItemaddToSQLEntryAreaMenu(Action action)
     Add an Action to the SQL Entry Area popup menu.
public  voidaddToToolsPopUp(String selectionString, Action action)
    
public synchronized  voidappendSQLScript(String sqlScript)
     Append the passed SQL script to the SQL entry area but don't select it.
public synchronized  voidappendSQLScript(String sqlScript, boolean select)
     Append the passed SQL script to the SQL entry area and specify whether it should be selected.
public  voidcloseAllButCurrentResultTabs()
    
public  voidcloseAllSQLResultFrames()
     Close all the "torn off" SQL result frames.
public  voidcloseAllSQLResultTabs()
     Close all the SQL result tabs.
public  voidcloseCurrentResultTab()
    
public  booleanconfirmClose()
    
public  voidexecuteCurrentSQL()
     Execute the current SQL.
public  voidexecuteSQL(String sql)
     Execute the passed SQL.
public  voidfileAppend()
    
public  voidfileClose()
    
public  voidfileNew()
    
public  voidfileOpen()
    
public  voidfileOpen(File f)
    
public  voidfilePrint()
    
public  booleanfileSave()
    
public  voidfileSaveAs()
    
public synchronized  StringgetEntireSQLScript()
     Return the entire contents of the SQL entry area.
public  ISQLEntryPanelgetSQLEntryPanel()
    
public  ArrayList<SQLHistoryItem>getSQLHistoryItems()
    
public  ISQLResultExecutergetSQLResultExecuter()
    
public synchronized  intgetSQLScriptSelectionEnd()
     Return the offset into the SQL entry area where the current select ends.
public synchronized  intgetSQLScriptSelectionStart()
     Return the offset into the SQL entry area where the current select starts.
public synchronized  StringgetSQLScriptToBeExecuted()
     Return the SQL script to be executed.
public  StringgetSelectedSQLScript()
     Return the selected contents of the SQL entry area.
public  ISessiongetSession()
    
public synchronized  voidgotoNextResultsTab()
     Display the next tab in the SQL results.
public  voidgotoPreviousResultsTab()
     Display the previous tab in the SQL results.
public  booleanisInMainSessionWindow()
    
public  voidremoveExecuterTabListener(ISQLResultExecuterTabListener lis)
     Remove a listener for events from this sql panel executer tabs.
public  voidremoveExecutor(ISQLResultExecuter exec)
    
public synchronized  voidremoveResultTabListener(IResultTabListener lis)
     Remove a listener for events in this sessions result tabs.
public synchronized  voidremoveSQLExecutionListener(ISQLExecutionListener lis)
     Remove an SQL execution listener.
public synchronized  voidremoveSQLPanelListener(ISQLPanelListener lis)
     Remove a listener.
public synchronized  voidreplaceSelectedSQLScript(String sqlScript, boolean select)
     Replace the currently selected text in the SQL entry area with the passed text.
public synchronized  voidsetEntireSQLScript(String sqlScript)
     Replace the contents of the SQL entry area with the passed SQL script without selecting it.
public synchronized  voidsetEntireSQLScript(String sqlScript, boolean select)
     Replace the contents of the SQL entry area with the passed SQL script and specify whether to select it.
public synchronized  voidsetSQLScriptSelectionEnd(int end)
     Set the offset into the SQL entry area where the current select ends.
public synchronized  voidsetSQLScriptSelectionStart(int start)
     Set the offset into the SQL entry area where the current select starts.
public  voidshowToolsPopup()
    
public  voidtoggleCurrentSQLResultTabSticky()
    


Constructor Detail
SQLPanelAPI
public SQLPanelAPI(SQLPanel panel)(Code)
Ctor specifying the panel.
Parameters:
  panel - SQLPanel is the SQL Panel.
throws:
  IllegalArgumentException - Thrown if null SQLPanel passed.




Method Detail
addExecuterTabListener
public void addExecuterTabListener(ISQLResultExecuterTabListener lis)(Code)
Add a listener for events in this sql panel executer tabs.
Parameters:
  lis - The listener.
throws:
  IllegalArgumentException - Thrown if a null ISQLResultExecuterTabListener passed.



addExecutor
public void addExecutor(ISQLResultExecuter exec)(Code)



addResultTabListener
public synchronized void addResultTabListener(IResultTabListener lis)(Code)
Add a listener for events in this sessions result tabs.
Parameters:
  lis - The listener.



addSQLExecutionListener
public synchronized void addSQLExecutionListener(ISQLExecutionListener lis)(Code)
Add a listener listening for SQL Execution.
Parameters:
  lis - Listener to add
throws:
  IllegalArgumentException - Thrown if a null ISQLExecutionListener passed.



addSQLPanelListener
public synchronized void addSQLPanelListener(ISQLPanelListener lis)(Code)
Add a listener for events in this SQL Panel.
Parameters:
  lis - Listener to add
throws:
  IllegalArgumentException - Thrown if a null ISQLPanelListener passed.



addSQLToHistory
public synchronized void addSQLToHistory(String sql)(Code)
The passed SQL should be added to the SQL history.
Parameters:
  sql - SQL to be added to history.
throws:
  IllegalArgumentException - Thrown if null sql passed.



addSqlPanelListener
public void addSqlPanelListener(SqlPanelListener sqlPanelListener)(Code)



addToSQLEntryAreaMenu
public void addToSQLEntryAreaMenu(JMenu menu)(Code)
Add a hierarchical menu to the SQL Entry Area popup menu.
Parameters:
  menu - The menu that will be added.
throws:
  IllegalArgumentException - Thrown if null Menu passed.



addToSQLEntryAreaMenu
public JMenuItem addToSQLEntryAreaMenu(Action action)(Code)
Add an Action to the SQL Entry Area popup menu.
Parameters:
  action - The action to be added. The newly create menu item.
throws:
  IllegalArgumentException - Thrown if null Action passed.



addToToolsPopUp
public void addToToolsPopUp(String selectionString, Action action)(Code)



appendSQLScript
public synchronized void appendSQLScript(String sqlScript)(Code)
Append the passed SQL script to the SQL entry area but don't select it.
Parameters:
  sqlScript - The script to be appended.



appendSQLScript
public synchronized void appendSQLScript(String sqlScript, boolean select)(Code)
Append the passed SQL script to the SQL entry area and specify whether it should be selected.
Parameters:
  sqlScript - The script to be appended.
Parameters:
  select - If true then select the passed scriptin the sql entry area.



closeAllButCurrentResultTabs
public void closeAllButCurrentResultTabs()(Code)



closeAllSQLResultFrames
public void closeAllSQLResultFrames()(Code)
Close all the "torn off" SQL result frames.



closeAllSQLResultTabs
public void closeAllSQLResultTabs()(Code)
Close all the SQL result tabs.



closeCurrentResultTab
public void closeCurrentResultTab()(Code)



confirmClose
public boolean confirmClose()(Code)



executeCurrentSQL
public void executeCurrentSQL()(Code)
Execute the current SQL. Not synchronized as multiple SQL statements can be executed simultaneously.



executeSQL
public void executeSQL(String sql)(Code)
Execute the passed SQL. Not synchronized as multiple SQL statements can be executed simultaneously.
Parameters:
  sql - SQL to be executed.



fileAppend
public void fileAppend()(Code)



fileClose
public void fileClose()(Code)



fileNew
public void fileNew()(Code)



fileOpen
public void fileOpen()(Code)



fileOpen
public void fileOpen(File f)(Code)



filePrint
public void filePrint()(Code)



fileSave
public boolean fileSave()(Code)



fileSaveAs
public void fileSaveAs()(Code)



getEntireSQLScript
public synchronized String getEntireSQLScript()(Code)
Return the entire contents of the SQL entry area. the entire contents of the SQL entry area.



getSQLEntryPanel
public ISQLEntryPanel getSQLEntryPanel()(Code)



getSQLHistoryItems
public ArrayList<SQLHistoryItem> getSQLHistoryItems()(Code)



getSQLResultExecuter
public ISQLResultExecuter getSQLResultExecuter()(Code)
Returns the result execution panel that stores such things as IResultTabs an implementation of ISQLResultExecuter



getSQLScriptSelectionEnd
public synchronized int getSQLScriptSelectionEnd()(Code)
Return the offset into the SQL entry area where the current select ends. the current selections end position.



getSQLScriptSelectionStart
public synchronized int getSQLScriptSelectionStart()(Code)
Return the offset into the SQL entry area where the current select starts. the current selections start position.



getSQLScriptToBeExecuted
public synchronized String getSQLScriptToBeExecuted()(Code)
Return the SQL script to be executed. the SQL script to be executed.



getSelectedSQLScript
public String getSelectedSQLScript()(Code)
Return the selected contents of the SQL entry area. the selected contents of the SQL entry area.



getSession
public ISession getSession()(Code)
JASON: Remove once deprecated interface removed



gotoNextResultsTab
public synchronized void gotoNextResultsTab()(Code)
Display the next tab in the SQL results.



gotoPreviousResultsTab
public void gotoPreviousResultsTab()(Code)
Display the previous tab in the SQL results.



isInMainSessionWindow
public boolean isInMainSessionWindow()(Code)



removeExecuterTabListener
public void removeExecuterTabListener(ISQLResultExecuterTabListener lis)(Code)
Remove a listener for events from this sql panel executer tabs.
Parameters:
  lis - The listener.
throws:
  IllegalArgumentException - Thrown if a null ISQLResultExecuterTabListener passed.



removeExecutor
public void removeExecutor(ISQLResultExecuter exec)(Code)



removeResultTabListener
public synchronized void removeResultTabListener(IResultTabListener lis)(Code)
Remove a listener for events in this sessions result tabs.
Parameters:
  lis - The listener.



removeSQLExecutionListener
public synchronized void removeSQLExecutionListener(ISQLExecutionListener lis)(Code)
Remove an SQL execution listener.
Parameters:
  lis - Listener
throws:
  IllegalArgumentException - If a null ISQLExecutionListener passed.



removeSQLPanelListener
public synchronized void removeSQLPanelListener(ISQLPanelListener lis)(Code)
Remove a listener.
Parameters:
  lis - Listener to remove
throws:
  IllegalArgumentException - Thrown if a null ISQLPanelListener passed.



replaceSelectedSQLScript
public synchronized void replaceSelectedSQLScript(String sqlScript, boolean select)(Code)
Replace the currently selected text in the SQL entry area with the passed text.
Parameters:
  sqlScript - The script to be placed in the SQL entry area.
Parameters:
  select - If true then select the passed scriptin the sql entry area.



setEntireSQLScript
public synchronized void setEntireSQLScript(String sqlScript)(Code)
Replace the contents of the SQL entry area with the passed SQL script without selecting it.
Parameters:
  sqlScript - The script to be placed in the SQL entry area.



setEntireSQLScript
public synchronized void setEntireSQLScript(String sqlScript, boolean select)(Code)
Replace the contents of the SQL entry area with the passed SQL script and specify whether to select it.
Parameters:
  sqlScript - The script to be placed in the SQL entry area.
Parameters:
  select - If true then select the passed scriptin the sql entry area.



setSQLScriptSelectionEnd
public synchronized void setSQLScriptSelectionEnd(int end)(Code)
Set the offset into the SQL entry area where the current select ends. param start the new selections start position.



setSQLScriptSelectionStart
public synchronized void setSQLScriptSelectionStart(int start)(Code)
Set the offset into the SQL entry area where the current select starts. param start the new selections start position.



showToolsPopup
public void showToolsPopup()(Code)



toggleCurrentSQLResultTabSticky
public void toggleCurrentSQLResultTabSticky()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.