|
Extension SDK 10.1.2 | ||||||||||
| 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()
Close the view |
void |
editorHidden()
This method is called when an editor is hidden. |
void |
editorShown()
This method is called when an editor is made visible. |
Context |
getContext()
Gets the current view context. |
Context |
getContext(java.util.EventObject event)
Get the current view context for the given EventObject. |
ContextMenu |
getContextMenu()
Get the ContextMenu object, if any, managed by this View. |
Controller |
getController()
Get the Controller associated with this view. |
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()
Deprecated. In flat editor mode, the meaning of the EditorFrame is quite different. Please contact me (cedric.dandoy@oracle.com) to see how to replace calls to this method. |
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. |
void |
initializeLayout(Layout layout)
This method is called before to activate 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 |
onInitializeLayout(Layout layout)
|
protected void |
onPreferredLayoutActivate()
Classes that extend AbstractEditor override this method to initialize their preferred layout when that layour becomes the active layout. |
View |
owner()
Get the owning View. |
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, getHelpInfo, getId, getSelection, 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 |
open |
| Methods inherited from interface oracle.ide.addin.Observer |
update |
| Methods inherited from interface oracle.ide.addin.View |
activate, addViewListener, addViewSelectionListener, deactivate, getGUI, getId, getSelection, getToolbar, isVisible, removeViewListener, removeViewSelectionListener, setToolbarVisible, show, updateTitle, updateVisibleActions |
| Methods inherited from interface oracle.ide.help.Helpable |
getHelpInfo |
| 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 Controller getController()
ControllerProviderController associated with this view.
getController in interface ControllerProvidergetController in class AbstractViewpublic View owner()
ViewIdeMainWindow as their owner, but should return a different
value if nested within another View.
owner in interface Viewowner in class AbstractViewpublic Context getContext()
View
getContext in interface ViewgetContext in class AbstractViewpublic Context getContext(java.util.EventObject event)
View
getContext in interface Viewevent - event associated with the context;public ContextMenu getContextMenu()
View
getContextMenu in interface ViewgetContextMenu in class AbstractViewpublic void setOwner(EditorFrame frame)
setOwner in interface Editorpublic Document[] getDependentDocuments()
getDependentDocuments in interface Editorpublic void editorShown()
Editor
editorShown in interface Editorpublic void editorHidden()
Editor
editorHidden in interface EditorEditor.editorShown()public 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()
View
close in interface Viewclose 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 initializeLayout(Layout layout)
LayoutSelector
initializeLayout 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 onInitializeLayout(Layout layout)
protected 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, 2004, Oracle. All rights reserved.