|
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 Editor
public View owner()
Subview
IdeMainWindow
as their owner.
owner
in interface Subview
owner
in class AbstractView
public Context getContext()
Subview
getContext
in interface Subview
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()
Subview
getContextMenu
in interface Subview
getContextMenu
in class AbstractView
public void setOwner(EditorFrame frame)
setOwner
in interface Editor
public Document[] getDependentDocuments()
getDependentDocuments
in interface Editor
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()
Subview
close
in interface Subview
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 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 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, 2003, Oracle. All rights reserved.