|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.squirrel_sql.client.session.BaseSQLEntryPanel
net.sourceforge.squirrel_sql.plugins.syntax.netbeans.NetbeansSQLEntryPanel
public class NetbeansSQLEntryPanel
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.squirrel_sql.client.session.BaseSQLEntryPanel |
|---|
ENTRY_PANEL_IDENTIFIER_FACTORY, LINE_SEPARATOR, SQL_STMT_SEP |
| Method Summary | |
|---|---|
void |
addCaretListener(CaretListener lis)
|
void |
addMouseListener(MouseListener lis)
|
void |
addSQLTokenListener(SQLTokenListener tl)
|
void |
addUndoableEditListener(UndoableEditListener listener)
|
void |
appendText(String sqlScript)
Append the passed SQL script to the SQL entry area but don't select it. |
void |
appendText(String sqlScript,
boolean select)
Append the passed SQL script to the SQL entry area and specify whether it should be selected. |
int |
getCaretLineNumber()
|
int |
getCaretLinePosition()
|
int |
getCaretPosition()
|
boolean |
getDoesTextComponentHaveScroller()
If the component returned by getTextComponent contains its own scroll bars return true other wise this component will be wrapped in the scroll pane when added to the SQL panel. |
String |
getSelectedText()
|
int |
getSelectionEnd()
|
int |
getSelectionStart()
|
ISession |
getSession()
|
String |
getText()
|
JTextComponent |
getTextComponent()
|
boolean |
hasFocus()
|
boolean |
hasOwnUndoableManager()
|
void |
removeCaretListener(CaretListener lis)
|
void |
removeMouseListener(MouseListener lis)
|
void |
removeSQLTokenListener(SQLTokenListener tl)
|
void |
removeUndoableEditListener(UndoableEditListener listener)
|
void |
replaceSelection(String sqlScript)
Replace the currently selected text in the SQL entry area with the passed text. |
void |
requestFocus()
|
void |
sessionEnding()
Sets the session referenced by this class to null so that it can be garbage-collected. |
void |
setCaretPosition(int value)
|
void |
setFont(Font font)
|
void |
setSelectionEnd(int pos)
|
void |
setSelectionStart(int pos)
|
void |
setTabSize(int tabSize)
|
void |
setText(String text)
Replace the contents of the SQL entry area with the passed SQL script without selecting it. |
void |
setText(String text,
boolean select)
Replace the contents of the SQL entry area with the passed SQL script and specify whether to select it. |
void |
setUndoManager(UndoManager manager)
|
void |
showFindDialog(ActionEvent evt)
|
void |
showReplaceDialog(ActionEvent evt)
|
void |
updateFromPreferences()
|
| Methods inherited from class net.sourceforge.squirrel_sql.client.session.BaseSQLEntryPanel |
|---|
addRedoUndoActionsToSQLEntryAreaMenu, addToSQLEntryAreaMenu, addToSQLEntryAreaMenu, createScrollPane, createUndoHandler, dispose, getBoundsOfSQLToBeExecuted, getIdentifier, getSQLToBeExecuted, getWordAtCursor, moveCaretToNextSQLBegin, moveCaretToPreviousSQLBegin, selectCurrentSql |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getCaretLineNumber()
public JTextComponent getTextComponent()
ISQLEntryPanel#gettextComponent()public boolean getDoesTextComponentHaveScroller()
public String getText()
ISQLEntryPanel.getText()public void setFont(Font font)
public String getSelectedText()
ISQLEntryPanel.getSelectedText()public void setText(String text)
sqlScript - The script to be placed in the SQL entry area..
public void setText(String text,
boolean select)
sqlScript - The script to be placed in the SQL entry area..select - If true then select the passed script in the sql
entry area.public void appendText(String sqlScript)
sqlScript - The script to be appended.
public void appendText(String sqlScript,
boolean select)
sqlScript - The script to be appended.select - If true then select the passed script in the sql
entry area.public int getCaretPosition()
ISQLEntryPanel.getCaretPosition()public void setCaretPosition(int value)
public void setTabSize(int tabSize)
ISQLEntryPanel.setTabSize(int)public int getSelectionStart()
ISQLEntryPanel.getSelectionStart()public void setSelectionStart(int pos)
ISQLEntryPanel.setSelectionStart(int)public int getSelectionEnd()
ISQLEntryPanel.getSelectionEnd()public void setSelectionEnd(int pos)
ISQLEntryPanel.setSelectionEnd(int)public void replaceSelection(String sqlScript)
sqlScript - The script to be placed in the SQL entry area.public boolean hasFocus()
ISQLEntryPanel.hasFocus()public void requestFocus()
ISQLEntryPanel.requestFocus()public void addMouseListener(MouseListener lis)
ISQLEntryPanel.addMouseListener(java.awt.event.MouseListener)public void removeMouseListener(MouseListener lis)
ISQLEntryPanel.removeMouseListener(java.awt.event.MouseListener)public void updateFromPreferences()
public boolean hasOwnUndoableManager()
hasOwnUndoableManager in interface ISQLEntryPanelhasOwnUndoableManager in class BaseSQLEntryPanelISQLEntryPanel.hasOwnUndoableManager()public void addUndoableEditListener(UndoableEditListener listener)
ISQLEntryPanel.addUndoableEditListener(javax.swing.event.UndoableEditListener)public void removeUndoableEditListener(UndoableEditListener listener)
ISQLEntryPanel.removeUndoableEditListener(javax.swing.event.UndoableEditListener)public int getCaretLinePosition()
ISQLEntryPanel.getCaretLinePosition()public void addCaretListener(CaretListener lis)
ISQLEntryPanel.addCaretListener(javax.swing.event.CaretListener)public void removeCaretListener(CaretListener lis)
ISQLEntryPanel.removeCaretListener(javax.swing.event.CaretListener)public void addSQLTokenListener(SQLTokenListener tl)
public void removeSQLTokenListener(SQLTokenListener tl)
public ISession getSession()
public void showFindDialog(ActionEvent evt)
public void showReplaceDialog(ActionEvent evt)
public void setUndoManager(UndoManager manager)
public void sessionEnding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||