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

Quick Search    Search Deep

com.cybertivity.powerjournal.framework
Class View  view View download View.java

java.lang.Object
  extended byjava.util.Observable
      extended bycom.cybertivity.powerjournal.framework.View
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
DialogView, FrameView, PanelView

public abstract class View
extends java.util.Observable
implements java.util.Observer

Description of the Class


Field Summary
 
Fields inherited from class java.util.Observable
 
Constructor Summary
View()
           
 
Method Summary
protected abstract  void cleanUp()
           
protected  void fireEvent(java.lang.String event)
          Fire a view event.
protected  void fireEvent(java.lang.String field, java.lang.Object value)
          Fire a view event.
protected abstract  void handleModelEvent(ModelEvent event)
           
 void update(java.util.Observable observable, java.lang.Object arg)
          This method is called whenever the observed object is changed.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View()
Method Detail

update

public void update(java.util.Observable observable,
                   java.lang.Object arg)
This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change.

Specified by:
update in interface java.util.Observer

fireEvent

protected void fireEvent(java.lang.String event)
Fire a view event.


fireEvent

protected void fireEvent(java.lang.String field,
                         java.lang.Object value)
Fire a view event. It is assumed that view events are always fired from the event dispatch thread. This method makes no check for this. Things may go horribly wrong if this is called from a different thread.


handleModelEvent

protected abstract void handleModelEvent(ModelEvent event)

cleanUp

protected abstract void cleanUp()