JavaView© v3.95.000

jv.object
Interface PsUpdateIf

All Known Subinterfaces:
PgGeometryIf, PjWorkshopIf, PvCameraIf, PvDisplayIf, PvLightIf
All Known Implementing Classes:
MathUpdateListener, PaColorDemo, PgGeometry, PgGeometry_Menu, PjProject, PjWorkshop, PsDialog, PsMethodMenu, PsObject, PsPanel, PvCamera, PvDisplay, PvLight

public interface PsUpdateIf

Interface for update mechanism of JavaView. Root object for update mechanism is PsObject, and PsPanel for InfoPanel classes.

See Also:
PsObject, PsPanel

Method Summary
 PsUpdateIf getFather()
          Get parent and do nothing else.
 java.lang.String getName()
          Get name of instance.
 void setParent(PsUpdateIf parent)
          Set parent and do nothing else.
 boolean update(java.lang.Object event)
          Event handling method in the update mechanism.
 

Method Detail

getName

public java.lang.String getName()
Get name of instance.


getFather

public PsUpdateIf getFather()
Get parent and do nothing else.

Historical note: previous to Java 1.1 this method was called getParent() in JavaView, but in Java 1.1 a method with same name was introduced in java.awt.Component which prevented us to continue to this method in any of our subclasses of AWT components. In order to be consistent, the JavaView method getParent() was replaced with getFather() everywhere. Since that time JavaView uses the pair setParent/getFather, and lives quite well with that.

See Also:
setParent(PsUpdateIf), update(Object)

setParent

public void setParent(PsUpdateIf parent)
Set parent and do nothing else. Method is implemented by PsObject and PsPanel, and should be called if overwritten.

Parameters:
parent - will receive events which this does not handle
See Also:
getFather(), update(Object)

update

public boolean update(java.lang.Object event)
Event handling method in the update mechanism. Events not handled will be passed to m_parent or super in this sequence.

Parameters:
event - carries a lot of information
Returns:
true if event has been handled, otherwise false
See Also:
PsObject, getFather(), setParent(PsUpdateIf)

JavaView© v3.95.000

The software JavaView© is copyright protected. All Rights Reserved.