net.sourceforge.squirrel_sql.plugins.syntax.netbeans
Class NetbeansSQLEntryPanel

java.lang.Object
  extended by net.sourceforge.squirrel_sql.client.session.BaseSQLEntryPanel
      extended by net.sourceforge.squirrel_sql.plugins.syntax.netbeans.NetbeansSQLEntryPanel
All Implemented Interfaces:
ISQLEntryPanel, IHasIdentifier

public class NetbeansSQLEntryPanel
extends BaseSQLEntryPanel


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

getCaretLineNumber

public int getCaretLineNumber()

getTextComponent

public JTextComponent getTextComponent()
See Also:
ISQLEntryPanel#gettextComponent()

getDoesTextComponentHaveScroller

public 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.

Returns:
true if text component already handles scrolling.

getText

public String getText()
See Also:
ISQLEntryPanel.getText()

setFont

public void setFont(Font font)

getSelectedText

public String getSelectedText()
See Also:
ISQLEntryPanel.getSelectedText()

setText

public void setText(String text)
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..

setText

public 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.

Parameters:
sqlScript - The script to be placed in the SQL entry area..
select - If true then select the passed script in the sql entry area.

appendText

public void appendText(String sqlScript)
Append the passed SQL script to the SQL entry area but don't select it.

Parameters:
sqlScript - The script to be appended.

appendText

public void appendText(String sqlScript,
                       boolean select)
Append the passed SQL script to the SQL entry area and specify whether it should be selected.

Parameters:
sqlScript - The script to be appended.
select - If true then select the passed script in the sql entry area.

getCaretPosition

public int getCaretPosition()
See Also:
ISQLEntryPanel.getCaretPosition()

setCaretPosition

public void setCaretPosition(int value)

setTabSize

public void setTabSize(int tabSize)
See Also:
ISQLEntryPanel.setTabSize(int)

getSelectionStart

public int getSelectionStart()
See Also:
ISQLEntryPanel.getSelectionStart()

setSelectionStart

public void setSelectionStart(int pos)
See Also:
ISQLEntryPanel.setSelectionStart(int)

getSelectionEnd

public int getSelectionEnd()
See Also:
ISQLEntryPanel.getSelectionEnd()

setSelectionEnd

public void setSelectionEnd(int pos)
See Also:
ISQLEntryPanel.setSelectionEnd(int)

replaceSelection

public void replaceSelection(String sqlScript)
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.

hasFocus

public boolean hasFocus()
See Also:
ISQLEntryPanel.hasFocus()

requestFocus

public void requestFocus()
See Also:
ISQLEntryPanel.requestFocus()

addMouseListener

public void addMouseListener(MouseListener lis)
See Also:
ISQLEntryPanel.addMouseListener(java.awt.event.MouseListener)

removeMouseListener

public void removeMouseListener(MouseListener lis)
See Also:
ISQLEntryPanel.removeMouseListener(java.awt.event.MouseListener)

updateFromPreferences

public void updateFromPreferences()

hasOwnUndoableManager

public boolean hasOwnUndoableManager()
Specified by:
hasOwnUndoableManager in interface ISQLEntryPanel
Overrides:
hasOwnUndoableManager in class BaseSQLEntryPanel
See Also:
ISQLEntryPanel.hasOwnUndoableManager()

addUndoableEditListener

public void addUndoableEditListener(UndoableEditListener listener)
See Also:
ISQLEntryPanel.addUndoableEditListener(javax.swing.event.UndoableEditListener)

removeUndoableEditListener

public void removeUndoableEditListener(UndoableEditListener listener)
See Also:
ISQLEntryPanel.removeUndoableEditListener(javax.swing.event.UndoableEditListener)

getCaretLinePosition

public int getCaretLinePosition()
See Also:
ISQLEntryPanel.getCaretLinePosition()

addCaretListener

public void addCaretListener(CaretListener lis)
See Also:
ISQLEntryPanel.addCaretListener(javax.swing.event.CaretListener)

removeCaretListener

public void removeCaretListener(CaretListener lis)
See Also:
ISQLEntryPanel.removeCaretListener(javax.swing.event.CaretListener)

addSQLTokenListener

public void addSQLTokenListener(SQLTokenListener tl)

removeSQLTokenListener

public void removeSQLTokenListener(SQLTokenListener tl)

getSession

public ISession getSession()

showFindDialog

public void showFindDialog(ActionEvent evt)

showReplaceDialog

public void showReplaceDialog(ActionEvent evt)

setUndoManager

public void setUndoManager(UndoManager manager)

sessionEnding

public void sessionEnding()
Sets the session referenced by this class to null so that it can be garbage-collected.



Copyright © 2001-2010. All Rights Reserved.