Extension SDK

oracle.ide.addin
Interface View

All Superinterfaces:
Helpable, Subview
All Known Subinterfaces:
Editor, EditorFrame, Explorer, InspectorWindow, LogOwner, LogPage, LogWindow, NavigatorWindow, PaletteWindow, ToplevelView, UIEditorCanvas
All Known Implementing Classes:
AbstractCanvas, AbstractEditor, AbstractExplorer, AbstractLogPage, AbstractView, MainWindow

public interface View
extends Helpable, Subview

View components dispaly information to the user. A view obtains the data from the model. There can be multiple views of the model. Each View has an associated Controller. Controllers receive requests to handle the commands associated with user interaction with the view. A view can own other views. For example, all views are owned by the IdeMainWindow view.

See Also:
Controller, MainWindow

Field Summary
static java.lang.String PROJECT_PROP
           
static java.lang.String VISIBLE_PROP
           
static java.lang.String WORKSPACE_PROP
           
 
Method Summary
 void activate()
          This method is responsible for responding to the fact that this View is now the active view (e.g.
 void addViewListener(ViewListener l)
          Add a ViewListener.
 void addViewSelectionListener(ViewSelectionListener l)
          Add a ViewSelectionListener.
 void deactivate()
          This method is responsible for cleaning up after this view stops being the active view.
 Context getContext(java.util.EventObject event)
          Gets the current view context.
 java.lang.String getId()
          Unique id identifying this view.
 Element[] getSelection()
          Gets the selection context.
 Toolbar getToolbar()
          Returns the toolbar associated with this view.
 void removeViewListener(ViewListener l)
          Remove a ViewListener.
 void removeViewSelectionListener(ViewSelectionListener l)
          Remmove a ViewSelectionListener.
 void updateTitle(java.lang.Object object)
          Called when the view needs to update its title based on the specified object.
 
Methods inherited from interface oracle.ide.help.Helpable
getHelpInfo
 
Methods inherited from interface oracle.ide.addin.Subview
close, getContext, getContextMenu, getController, getGUI, isVisible, owner, show
 

Field Detail

VISIBLE_PROP

public static final java.lang.String VISIBLE_PROP
See Also:
Constant Field Values

PROJECT_PROP

public static final java.lang.String PROJECT_PROP
See Also:
Constant Field Values

WORKSPACE_PROP

public static final java.lang.String WORKSPACE_PROP
See Also:
Constant Field Values
Method Detail

activate

public void activate()
This method is responsible for responding to the fact that this View is now the active view (e.g. adding/removing toolbars etc.).


deactivate

public void deactivate()
This method is responsible for cleaning up after this view stops being the active view.


getContext

public Context getContext(java.util.EventObject event)
Gets the current view context.

Parameters:
event - event associated with the context;
Returns:
the current view context.

getSelection

public Element[] getSelection()
Gets the selection context. Within a view multiple objects can be selected. This method returns a list of selected objects.

Returns:
list of selected items in the view.

getId

public java.lang.String getId()
Unique id identifying this view. In general, the id is made up of the name of the view and the element name loaded in the view. For example, a navigator window may have the following id: NavigatorWindow.Project1 where Project1 is the name component of the project node.


updateTitle

public void updateTitle(java.lang.Object object)
Called when the view needs to update its title based on the specified object.


getToolbar

public Toolbar getToolbar()
Returns the toolbar associated with this view.


addViewListener

public void addViewListener(ViewListener l)
Add a ViewListener.

Parameters:
l - the ViewListener to add.

removeViewListener

public void removeViewListener(ViewListener l)
Remove a ViewListener.

Parameters:
l - the ViewListener to remove.

addViewSelectionListener

public void addViewSelectionListener(ViewSelectionListener l)
Add a ViewSelectionListener.

Parameters:
l - the ViewSelectionListener to add.

removeViewSelectionListener

public void removeViewSelectionListener(ViewSelectionListener l)
Remmove a ViewSelectionListener.

Parameters:
l - the ViewSelectionListener to remove.

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.