VLab Common 1.2

pl.psnc.vlab.util.gui.util
Class ObservableHelper

java.lang.Object
  extended by pl.psnc.vlab.util.gui.util.ObservableHelper

public class ObservableHelper
extends java.lang.Object

ObservableHelper class - set of utility methods to work with Observable objects.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
ObservableHelper()
           
 
Method Summary
static java.lang.Object getSourceObject(java.util.Observable o)
          Check if the given observable object is a type of ModelObservable .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservableHelper

public ObservableHelper()
Method Detail

getSourceObject

public static java.lang.Object getSourceObject(java.util.Observable o)
Check if the given observable object is a type of ModelObservable . If so it takes a source object from that model. Otherwise the same observable instance is returned.

Parameters:
o - instance of observable object
Returns:
source object if given observable is type of ModelObservable, the given observable otherwise

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.