Class symantec.itools.db.beans.sqleditor.SQLEditorPane
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.sqleditor.SQLEditorPane
Object
|
+----Component
|
+----Container
|
+----JComponent
|
+----JTabbedPane
|
+----symantec.itools.db.beans.sqleditor.SQLEditorPane
- public class SQLEditorPane
- extends JTabbedPane
- implements ResultChangeListener, PropertyChangeListener
This panel is the SQL editor. It just needs to be put within a Frame.
This is a controler class that owns every panel.
- Version:
- 1.0 06/15/97
- Author:
- Hristo Tonev
-
PROP_SQL_TEXT
-
-
changeSupport
-
-
sqlText
- The value we will be editing.
-
symantec.itools.db.beans.sqleditor.SQLEditorPane(Connection, String, PropertyChangeListener)
-
-
addPropertyChangeListener(PropertyChangeListener)
- Add a PropertyChangeListener to the listener list.
-
createSQLBuilderPane()
- Create the right component in the first (SQL) page
-
createSQLPage()
- Create the first (SQL) page in the SQL editor
-
firePropertyChange(String, Object, Object)
- Support for reporting bound property changes.
-
getConnection()
-
-
getSQLText()
-
-
initializeGUI()
- Initialize the SQL editor GUI
-
main(String[])
-
-
propertyChange(PropertyChangeEvent)
-
-
removeAllResults()
-
-
removePropertyChangeListener(PropertyChangeListener)
- Remove a PropertyChangeListener from the listener list.
-
resultChange(ResultChangeEvent)
-
-
setConnection(Connection)
-
-
setSQLText(String)
-
PROP_SQL_TEXT
public static final java.lang.String PROP_SQL_TEXT
changeSupport
protected java.beans.PropertyChangeSupport changeSupport
sqlText
protected java.lang.String sqlText
- The value we will be editing.
SQLEditorPane
public SQLEditorPane(Connection connection,
String SQLText,
PropertyChangeListener listener)
-
- Parameters:
- connection - is an opened JDBC connection
- SQLText - is the initial SQL text
- listener - is a PropertyChangeListener that
listens to any changes in the SQL text. (may be
null
)
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
- Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
- Parameters:
- listener - The PropertyChangeListener to be added
- Overrides:
- addPropertyChangeListener in class JComponent
createSQLBuilderPane
protected com.sun.java.swing.JSplitPane createSQLBuilderPane()
- Create the right component in the first (SQL) page
createSQLPage
protected com.sun.java.swing.JSplitPane createSQLPage()
- Create the first (SQL) page in the SQL editor
firePropertyChange
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
- Support for reporting bound property changes. This method can be called
when a bound property has changed and it will send the appropriate
PropertyChangeEvent to any registered PropertyChangeListeners.
- Overrides:
- firePropertyChange in class JComponent
getConnection
public java.sql.Connection getConnection()
getSQLText
public java.lang.String getSQLText()
initializeGUI
protected void initializeGUI()
- Initialize the SQL editor GUI
main
public static void main(String[] args)
propertyChange
public void propertyChange(PropertyChangeEvent evt)
removeAllResults
protected void removeAllResults()
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
- Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
- Parameters:
- listener - The PropertyChangeListener to be removed
- Overrides:
- removePropertyChangeListener in class JComponent
resultChange
public void resultChange(ResultChangeEvent evt)
setConnection
public void setConnection(Connection connection)
setSQLText
public void setSQLText(String newValue)
All Packages Class Hierarchy This Package Previous Next Index