|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.addin.AbstractView
oracle.ide.editor.AbstractEditor
| Nested Class Summary | |
static class |
AbstractEditor.LayoutData
Instances of this class keep the preferred layout URL and
a flas indicating whether the layout has already been initialized. |
| Field Summary | |
protected Context |
_context
|
protected EditorFrame |
_editorFrame
|
protected static javax.swing.border.Border |
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 | |
AbstractEditor()
|
|
| Method Summary | |
void |
addPreferredLayoutListener(PreferredLayoutListener l)
Add a PreferredLayoutListener. |
void |
close()
Closes the view |
Context |
getContext()
Gets the current view context. |
Context |
getContext(java.util.EventObject event)
Gets the current view context. |
ContextMenu |
getContextMenu()
Gets the ContextMenu object, if any, managed by this instance. |
java.awt.Component |
getDefaultFocusComponent()
This method is used to know what component should get the focus by default. |
Document[] |
getDependentDocuments()
Editors which access or manipulate more than one document must return these documents using this method. |
java.lang.String |
getDisplayName()
Returns a visible name that describes the class implementing this interface. |
protected EditorFrame |
getEditorFrame()
|
java.lang.String |
getPreferredLayoutBaseName()
Returns the base name is used as the file name part when building the preferred layout URL. |
static java.util.Map |
getPreferredLayoutMap()
Returns a Map storing the preferred layout
LayoutData. |
java.net.URL |
getPreferredLayoutURL()
Implementations should override this method and return their preferred layout. |
java.lang.String |
getTabDescription()
This method is called to get the tooltip to display in the tab hosting this editor. |
javax.swing.Icon |
getTabIcon()
This method is called to get the icon to display in the tab hosting this editor. |
java.lang.String |
getTabLabel()
This method is called to get the title to display in the tab hosting this editor. |
java.lang.String |
getTitleLabel()
This method is called to get the title to display in the title bar of the EditorFrame hosting this editor. |
java.lang.String |
getType()
Return a string that uniquely identifies this selector. |
void |
initializeActiveLayout()
This method is called immediate after activating the selector's preferred layout. |
boolean |
isReady()
This method is called before a preferred layout is activated. |
protected java.lang.String |
newId()
Generates an unique view id. |
protected void |
onPreferredLayoutActivate()
Classes that extend AbstractEditor override this method to initialize their preferred layout when that layour becomes the active layout. |
View |
owner()
Views can be nested. |
void |
removePreferredLayoutListener(PreferredLayoutListener l)
Remvoe a PreferredLayoutListener. |
void |
setContext(Context context)
Sets the current editor context. |
void |
setOwner(EditorFrame frame)
Sets the editor frame that owns this editor. |
void |
setPreferredLayoutBaseName(java.lang.String name)
Set the base name is used as the file name part when building the preferred layout URL. |
static void |
setPreferredLayoutMap(java.util.Map layoutMap)
Sets a Map storing the preferred layout
LayoutData. |
void |
setPreferredLayoutURL(java.net.URL layoutURL)
This method is called from the activatePreferredLayout method to record a layout chosen by the user as their preferred layout. |
void |
setType(java.lang.String type)
Set a string that uniquely identifies this selector. |
| 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.editor.Editor |
open |
| Methods inherited from interface oracle.ide.addin.Observer |
update |
| 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, getGUI, isVisible, show |
| Field Detail |
protected static final javax.swing.border.Border CUSTOM_BORDER
protected Context _context
protected EditorFrame _editorFrame
| Constructor Detail |
public AbstractEditor()
| Method Detail |
public java.awt.Component getDefaultFocusComponent()
Editor
getDefaultFocusComponent in interface Editorpublic View owner()
SubviewIdeMainWindow as their owner.
owner in interface Subviewowner in class AbstractViewpublic Context getContext()
Subview
getContext in interface SubviewgetContext in class AbstractViewpublic Context getContext(java.util.EventObject event)
View
getContext in interface Viewevent - event associated with the context;
public ContextMenu getContextMenu()
Subview
getContextMenu in interface SubviewgetContextMenu in class AbstractViewpublic void setOwner(EditorFrame frame)
setOwner in interface Editorpublic Document[] getDependentDocuments()
getDependentDocuments in interface Editorpublic void setContext(Context context)
Editor
setContext in interface Editorpublic java.lang.String getTitleLabel()
Editor
getTitleLabel in interface Editorpublic java.lang.String getTabLabel()
Editor
getTabLabel in interface Editorpublic javax.swing.Icon getTabIcon()
Editor
getTabIcon in interface Editorpublic java.lang.String getTabDescription()
Editor
getTabDescription in interface Editorpublic void close()
Subview
close in interface Subviewclose in class AbstractViewpublic static java.util.Map getPreferredLayoutMap()
Map storing the preferred layout
LayoutData. These URLs are hashed using the
String returned from calling the method
getType().
public static void setPreferredLayoutMap(java.util.Map layoutMap)
Map storing the preferred layout
LayoutData. These URLs are hashed using the
String returned from calling the method
getType().
public java.net.URL getPreferredLayoutURL()
LayoutSelectornull
indicating that the selector does not have a preferred layout.
getPreferredLayoutURL in interface LayoutSelectorpublic void setPreferredLayoutURL(java.net.URL layoutURL)
LayoutSelector
setPreferredLayoutURL in interface LayoutSelectorpublic void initializeActiveLayout()
LayoutSelector
initializeActiveLayout in interface LayoutSelectorpublic boolean isReady()
LayoutSelector
isReady in interface LayoutSelectorpublic java.lang.String getDisplayName()
LayoutSelector
getDisplayName in interface LayoutSelectorpublic java.lang.String getType()
LayoutSelector
getType in interface LayoutSelectorpublic void setType(java.lang.String type)
LayoutSelector
setType in interface LayoutSelectorpublic java.lang.String getPreferredLayoutBaseName()
LayoutSelector
getPreferredLayoutBaseName in interface LayoutSelectorpublic void setPreferredLayoutBaseName(java.lang.String name)
LayoutSelector
setPreferredLayoutBaseName in interface LayoutSelectorpublic void addPreferredLayoutListener(PreferredLayoutListener l)
LayoutSelectorPreferredLayoutListener.
addPreferredLayoutListener in interface LayoutSelectorpublic void removePreferredLayoutListener(PreferredLayoutListener l)
LayoutSelectorPreferredLayoutListener.
removePreferredLayoutListener in interface LayoutSelectorprotected void onPreferredLayoutActivate()
protected java.lang.String newId()
AbstractView
newId in class AbstractViewprotected EditorFrame getEditorFrame()
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.