oracle.ide.explorer
Class AbstractExplorer
java.lang.Object
oracle.ide.addin.AbstractView
oracle.ide.explorer.AbstractExplorer
- All Implemented Interfaces:
- ControllerProvider, Explorer, Helpable, View
- Direct Known Subclasses:
- AbstractCanvas
- public abstract class AbstractExplorer
- extends AbstractView
- implements Explorer
Explorer base class. Explorers are used to present to the user some structure associated with the Document
held in a specific Context
.
Method Summary |
ContextMenu |
getContextMenu()
Get the ContextMenu object, if any, managed by this View. |
Controller |
getController()
Get the Controller for this View. |
java.lang.String |
getTitle()
Get the caption to use in the title bar of a hosting View. |
void |
setContext(Context context)
(Re)initialize the contents of the gui. |
void |
setOwner(View owner)
Set the View which is to act as the host of this Explorer. |
void |
stateChanged(int state)
Respond to a change of state between SHOWN, HIDDEN or CLOSED. |
Methods inherited from class oracle.ide.addin.AbstractView |
activate, addViewListener, addViewSelectionListener, close, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getContext, getHelpInfo, getId, getSelection, getToolbar, isVisible, loadToolbar, loadToolbar, newId, owner, removeViewListener, removeViewSelectionListener, setId, 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, close, deactivate, getContext, getContext, getGUI, getId, getSelection, getToolbar, isVisible, owner, removeViewListener, removeViewSelectionListener, setToolbarVisible, show, updateTitle, updateVisibleActions |
defaultWorkspace
protected Workspace defaultWorkspace
defaultProject
protected Project defaultProject
defaultDocument
protected Document defaultDocument
defaultTitle
protected java.lang.String defaultTitle
AbstractExplorer
public AbstractExplorer()
setOwner
public void setOwner(View owner)
- Description copied from interface:
Explorer
- Set the View which is to act as the host of this Explorer.
-
- Specified by:
setOwner
in interface Explorer
- Overrides:
setOwner
in class AbstractView
setContext
public void setContext(Context context)
- Description copied from interface:
Explorer
- (Re)initialize the contents of the gui.
-
- Specified by:
setContext
in interface Explorer
-
- Parameters:
context
- the Context to use as initialization data.
stateChanged
public void stateChanged(int state)
- Description copied from interface:
Explorer
- Respond to a change of state between SHOWN, HIDDEN or CLOSED.
-
- Specified by:
stateChanged
in interface Explorer
-
- Parameters:
state
- the new state.
getTitle
public java.lang.String getTitle()
- Description copied from interface:
Explorer
- Get the caption to use in the title bar of a hosting View. This would typically be the short descripton of the Document being edited as found in the Context.getDocument().getShortLabel().
-
- Specified by:
getTitle
in interface Explorer
-
- Returns:
- the caption to use in the title bar of a hosting View.
getController
public Controller getController()
- Get the Controller for this View. By default the result of ExplorerManager.getExplorerManager() is returned.
-
- Specified by:
getController
in interface ControllerProvider
- Overrides:
getController
in class AbstractView
-
- Returns:
- the Controller associated with this view.
getContextMenu
public ContextMenu getContextMenu()
- Description copied from interface:
View
- Get the ContextMenu object, if any, managed by this View.
-
- Specified by:
getContextMenu
in interface View
- Overrides:
getContextMenu
in class AbstractView
-
- Returns:
- the ContextMenu, if any.
Copyright © 1997, 2004, Oracle. All rights reserved.