Extension SDK 9.0.5

oracle.jdeveloper.cm.dt.addin
Class AbstractConnectionEditor

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

public abstract class AbstractConnectionEditor
extends AbstractFlatEditor

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.editor.FlatEditor
ATTRIBUTE_BACKGROUND_COLOR, ATTRIBUTE_HORIZONTAL_BLOCK_INCREMENT, ATTRIBUTE_HORIZONTAL_SCROLLBAR_POLICY, ATTRIBUTE_HORIZONTAL_UNIT_INCREMENT, ATTRIBUTE_MENU_ID, ATTRIBUTE_SCROLLABLE, ATTRIBUTE_VERTICAL_BLOCK_INCREMENT, ATTRIBUTE_VERTICAL_SCROLLBAR_POLICY, ATTRIBUTE_VERTICAL_UNIT_INCREMENT
 
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()
           
 java.lang.Object getEditorAttribute(java.lang.String attribute)
           
abstract  java.awt.Component getGUI()
          Get the root graphical user interface component.
 Element[] getSelection()
          Get the selection.
 void open()
          Opens the editor.
 void setContext(Context context)
          Sets the current editor context.
abstract  void update(java.lang.Object observed, UpdateMessage change)
          Notification message.
 
Methods inherited from class oracle.ide.editor.AbstractFlatEditor
addPropertyChangeListener, firePropertyChangeEvent, getFixedLeftMargin, getFixedRightMargin, getFixedTopMargin, getMiniToolbar, getScrollableLeftMargin, getScrollableTopMargin, loadSettings, removePropertyChangeListener, saveSettings
 
Methods inherited from class oracle.ide.editor.AbstractEditor
addPreferredLayoutListener, editorHidden, editorShown, getContext, getContext, getContextMenu, getController, getDefaultFocusComponent, getDependentDocuments, getDisplayName, getEditorFrame, getPreferredLayoutBaseName, getPreferredLayoutMap, getPreferredLayoutURL, getTabDescription, getTabIcon, getTabLabel, getTitleLabel, getType, initializeActiveLayout, initializeLayout, isReady, newId, onInitializeLayout, onPreferredLayoutActivate, owner, removePreferredLayoutListener, setOwner, setPreferredLayoutBaseName, setPreferredLayoutMap, setPreferredLayoutURL, setType
 
Methods inherited from class oracle.ide.addin.AbstractView
activate, addViewListener, addViewSelectionListener, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getHelpInfo, getId, getToolbar, isVisible, loadToolbar, loadToolbar, removeViewListener, removeViewSelectionListener, setId, setOwner, setToolbarVisible, show, updateTitle, updateToolbarActions, updateVisibleActions, updateVisibleActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.editor.Editor
editorHidden, editorShown, getDefaultFocusComponent, getDependentDocuments, getTabDescription, getTabIcon, getTabLabel, getTitleLabel, setOwner
 
Methods inherited from interface oracle.ide.addin.View
activate, addViewListener, addViewSelectionListener, deactivate, getContext, getContext, getContextMenu, getId, getToolbar, isVisible, owner, removeViewListener, removeViewSelectionListener, setToolbarVisible, show, updateTitle, updateVisibleActions
 
Methods inherited from interface oracle.ide.addin.ControllerProvider
getController
 
Methods inherited from interface oracle.ide.help.Helpable
getHelpInfo
 
Methods inherited from interface oracle.ide.layout.LayoutSelector
addPreferredLayoutListener, getDisplayName, getPreferredLayoutBaseName, getPreferredLayoutURL, getType, initializeActiveLayout, initializeLayout, isReady, removePreferredLayoutListener, setPreferredLayoutBaseName, setPreferredLayoutURL, setType
 

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 View
Overrides:
close in class AbstractEditor

getGUI

public abstract java.awt.Component getGUI()
Description copied from interface: View
Get the 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()

getSelection

public Element[] getSelection()
Description copied from interface: View
Get the selection. Within a view multiple objects can be selected. This method returns an array of selected objects.

Specified by:
getSelection in interface View
Overrides:
getSelection in class AbstractView
Returns:
list of selected items in the view.

setContext

public void setContext(Context context)
Description copied from interface: Editor
Sets the current editor context.

Specified by:
setContext in interface Editor
Overrides:
setContext in class AbstractEditor

getEditorAttribute

public java.lang.Object getEditorAttribute(java.lang.String attribute)
Specified by:
getEditorAttribute in interface FlatEditor
Overrides:
getEditorAttribute in class AbstractFlatEditor

Extension SDK

 

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