Extension SDK

oracle.ide.addin
Interface Subview

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

public interface 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:
oracle.ide.Controller, oracle.ide.IdeMainWindow

Method Summary
 void close()
          Closes the view
 Context getContext()
          Gets the current view context.
 ContextMenu getContextMenu()
          Gets the ContextMenu object, if any, managed by this instance.
 Controller getController()
          Gets the Controller associated with this view.
 java.awt.Component getGUI()
          Gets the view's root graphical user interface component
 boolean isVisible()
          Returns true if the subview is visible.
 View owner()
          Views can be nested.
 void show()
          Shows the view if hidden.
 

Method Detail

getController

public Controller getController()
Gets the Controller associated with this view.

Returns:
the controller associated with this view.

owner

public View owner()
Views can be nested. In general, views should return the IdeMainWindow as their owner.

Returns:
the owner of this view.

close

public void close()
Closes the view


show

public void show()
Shows the view if hidden. Raises the view to the top if covered by other windows.


isVisible

public boolean isVisible()
Returns true if the subview is visible.


getGUI

public java.awt.Component getGUI()
Gets the view's root graphical user interface component

Returns:
the view's root graphical user interface component

getContext

public Context getContext()
Gets the current view context.

Returns:
the current view context.

getContextMenu

public ContextMenu getContextMenu()
Gets the ContextMenu object, if any, managed by this instance.


Extension SDK

 

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