Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.view
Class View  view View download View.java

java.lang.Object
  extended byjavax.ide.view.DefaultViewable
      extended byjavax.ide.view.View
All Implemented Interfaces:
javax.ide.Identifiable, Viewable

public abstract class View
extends DefaultViewable
implements javax.ide.Identifiable

View components display 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 javax.ide.command.Controller. Controllers receive requests to handle the commands associated with user interaction with the view.


Field Summary
 
Fields inherited from class javax.ide.view.DefaultViewable
 
Fields inherited from interface javax.ide.view.Viewable
PROP_ICON_PATH, PROP_LABEL, PROP_VISIBLE
 
Constructor Summary
View()
           
 
Method Summary
abstract  void activate()
          Called when the View gains the input focus.
abstract  void deactivate()
          Called when the View looses the input focus.
abstract  javax.ide.command.Context getContext()
          Gets the current view context.
abstract  javax.ide.command.Controller getController()
          Get the Controller associated with this view.
abstract  GUIPanel getGUI()
          Get the root graphical user interface component.
abstract  boolean isVisible()
          Determine whether the View is visible.
abstract  View parent()
          Get the parent view.
abstract  void setVisible(boolean visible)
          Show/hide view.
 
Methods inherited from class javax.ide.view.DefaultViewable
addPropertyChangeListener, firePropertyChange, getIcon, getLabel, getToolTip, removePropertyChangeListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.ide.Identifiable
getID
 

Constructor Detail

View

public View()
Method Detail

getGUI

public abstract GUIPanel getGUI()
Get the root graphical user interface component.


setVisible

public abstract void setVisible(boolean visible)
Show/hide view.

Overrides:
setVisible in class DefaultViewable

isVisible

public abstract boolean isVisible()
Determine whether the View is visible.

Specified by:
isVisible in interface Viewable
Overrides:
isVisible in class DefaultViewable

getContext

public abstract javax.ide.command.Context getContext()
Gets the current view context.


activate

public abstract void activate()
Called when the View gains the input focus. View implementations generally respond to the fact that this View is now the active view by updating the view display, for example.


deactivate

public abstract void deactivate()
Called when the View looses the input focus. View implementations generally, respond to the fact that this View is no longer the active view by reversing actions taken during view activation.


getController

public abstract javax.ide.command.Controller getController()
Get the Controller associated with this view.


parent

public abstract View parent()
Get the parent view.