oracle.jdeveloper.cm.dt.addin
Class AbstractConnectionEditor
java.lang.Object
oracle.ide.addin.AbstractView
oracle.ide.editor.AbstractEditor
oracle.ide.editor.AbstractFlatEditor
oracle.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.
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.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.layout.LayoutSelector |
addPreferredLayoutListener, getDisplayName, getPreferredLayoutBaseName, getPreferredLayoutURL, getType, initializeActiveLayout, initializeLayout, isReady, removePreferredLayoutListener, setPreferredLayoutBaseName, setPreferredLayoutURL, setType |
AbstractConnectionEditor
public AbstractConnectionEditor()
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
Copyright © 1997, 2004, Oracle. All rights reserved.