Extension SDK

oracle.jdeveloper.cm.dt.addin
Class AbstractConnectionEditor

java.lang.Object
  extended byoracle.ide.addin.AbstractView
      extended byoracle.ide.editor.AbstractEditor
          extended byoracle.jdeveloper.cm.dt.addin.AbstractConnectionEditor
All Implemented Interfaces:
Editor, Helpable, LayoutSelector, Observer, Subview, View

public abstract class AbstractConnectionEditor
extends AbstractEditor

AbstractConnectionEditor provides a base class that can be used when creating new Editor implementations that work against a database connection.


Nested Class Summary
 
Nested classes inherited from class oracle.ide.editor.AbstractEditor
AbstractEditor.LayoutData
 
Field Summary
 
Fields inherited from class oracle.ide.editor.AbstractEditor
_context, _editorFrame, CUSTOM_BORDER
 
Fields inherited from class oracle.ide.addin.AbstractView
owner, SEPARATOR, viewListeners, viewSelectionListeners
 
Fields inherited from interface oracle.ide.addin.View
PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
 
Constructor Summary
AbstractConnectionEditor()
           
 
Method Summary
 void close()
          Closes the editor.
 java.sql.Connection getConnection()
           
 Database getDatabase()
          Retrieves the Database object associated with this editor.
 DatabaseEditorNode getDatabaseNode()
           
abstract  java.awt.Component getGUI()
          Gets the view's root graphical user interface component
 void open()
          Opens the editor.
abstract  void update(java.lang.Object observed, UpdateMessage change)
          Notification message.
 
Methods inherited from class oracle.ide.editor.AbstractEditor
addPreferredLayoutListener, getContext, getContext, getContextMenu, getDefaultFocusComponent, getDependentDocuments, getDisplayName, getEditorFrame, getPreferredLayoutBaseName, getPreferredLayoutMap, getPreferredLayoutURL, getTabDescription, getTabIcon, getTabLabel, getTitleLabel, getType, initializeActiveLayout, isReady, newId, onPreferredLayoutActivate, owner, removePreferredLayoutListener, setContext, setOwner, setPreferredLayoutBaseName, setPreferredLayoutMap, setPreferredLayoutURL, setType
 
Methods inherited from class oracle.ide.addin.AbstractView
activate, addViewListener, addViewSelectionListener, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getController, getHelpInfo, getId, getSelection, getToolbar, isVisible, loadToolbar, loadToolbar, removeViewListener, removeViewSelectionListener, setId, setOwner, show, updateTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.addin.View
activate, addViewListener, addViewSelectionListener, deactivate, getId, getSelection, getToolbar, removeViewListener, removeViewSelectionListener, updateTitle
 
Methods inherited from interface oracle.ide.help.Helpable
getHelpInfo
 
Methods inherited from interface oracle.ide.addin.Subview
getController, isVisible, show
 

Constructor Detail

AbstractConnectionEditor

public AbstractConnectionEditor()
Method Detail

open

public void open()
Opens the editor. Connects to the database if the connection has not already been established.

See Also:
Editor.setContext(oracle.ide.addin.Context)

close

public void close()
Closes the editor.

Specified by:
close in interface Subview
Overrides:
close in class AbstractEditor

getGUI

public abstract java.awt.Component getGUI()
Description copied from interface: Subview
Gets the view's root graphical user interface component

Returns:
the view's root graphical user interface component

update

public abstract void update(java.lang.Object observed,
                            UpdateMessage change)
Description copied from interface: Observer
Notification message. Subjects call this method when they notify their observers that the subjects state has changed.

Parameters:
observed - the subject whose state has changed.
change - what has changed.

getDatabase

public final Database getDatabase()
Retrieves the Database object associated with this editor.


getDatabaseNode

public final DatabaseEditorNode getDatabaseNode()

getConnection

public final java.sql.Connection getConnection()

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.