|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.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 Editor
public Controller getController()
ControllerProvider
Controller
associated with this view.
getController
in interface ControllerProvider
getController
in class AbstractView
public View owner()
View
IdeMainWindow
as their owner, but should return a different
value if nested within another View.
owner
in interface View
owner
in class AbstractView
public Context getContext()
View
getContext
in interface View
getContext
in class AbstractView
public Context getContext(java.util.EventObject event)
View
getContext
in interface View
event
- event associated with the context;public ContextMenu getContextMenu()
View
getContextMenu
in interface View
getContextMenu
in class AbstractView
public void setOwner(EditorFrame frame)
setOwner
in interface Editor
public Document[] getDependentDocuments()
getDependentDocuments
in interface Editor
public void editorShown()
Editor
editorShown
in interface Editor
public void editorHidden()
Editor
editorHidden
in interface Editor
Editor.editorShown()
public void setContext(Context context)
Editor
setContext
in interface Editor
public java.lang.String getTitleLabel()
Editor
getTitleLabel
in interface Editor
public java.lang.String getTabLabel()
Editor
getTabLabel
in interface Editor
public javax.swing.Icon getTabIcon()
Editor
getTabIcon
in interface Editor
public java.lang.String getTabDescription()
Editor
getTabDescription
in interface Editor
public void close()
View
close
in interface View
close
in class AbstractView
public 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()
LayoutSelector
null
indicating that the selector does not have a preferred layout.
getPreferredLayoutURL
in interface LayoutSelector
public void setPreferredLayoutURL(java.net.URL layoutURL)
LayoutSelector
setPreferredLayoutURL
in interface LayoutSelector
public void initializeLayout(Layout layout)
LayoutSelector
initializeLayout
in interface LayoutSelector
public void initializeActiveLayout()
LayoutSelector
initializeActiveLayout
in interface LayoutSelector
public boolean isReady()
LayoutSelector
isReady
in interface LayoutSelector
public java.lang.String getDisplayName()
LayoutSelector
getDisplayName
in interface LayoutSelector
public java.lang.String getType()
LayoutSelector
getType
in interface LayoutSelector
public void setType(java.lang.String type)
LayoutSelector
setType
in interface LayoutSelector
public java.lang.String getPreferredLayoutBaseName()
LayoutSelector
getPreferredLayoutBaseName
in interface LayoutSelector
public void setPreferredLayoutBaseName(java.lang.String name)
LayoutSelector
setPreferredLayoutBaseName
in interface LayoutSelector
public void addPreferredLayoutListener(PreferredLayoutListener l)
LayoutSelector
PreferredLayoutListener
.
addPreferredLayoutListener
in interface LayoutSelector
public void removePreferredLayoutListener(PreferredLayoutListener l)
LayoutSelector
PreferredLayoutListener
.
removePreferredLayoutListener
in interface LayoutSelector
protected void onInitializeLayout(Layout layout)
protected void onPreferredLayoutActivate()
protected java.lang.String newId()
AbstractView
newId
in class AbstractView
protected 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.