net.jbeans.bean
Class BeanUtil

java.lang.Object
  extended bynet.jbeans.bean.BeanUtil

public final class BeanUtil
extends java.lang.Object

BeanUtil provides various useful static methods handling beans.

Version:
$Revision: 1.1.1.1 $
Author:
Masahiro Takatsuka (masa@jbeans.net)

Method Summary
static java.lang.String getDisplayName(java.lang.Class beanClass)
          Returns a localized display name of a bean.
static void makeObjectListenToPropertyChange(java.lang.Object o, java.lang.Object src)
          If the specified "src" object implements "addPropertyChangeListener", this method adds the object "o" to it.
static void makeObjectUnListenToPropertyChange(java.lang.Object o, java.lang.Object src)
          If the specified "src" object implements "removePropertyChangeListener", this method removes the object "o" from it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDisplayName

public static java.lang.String getDisplayName(java.lang.Class beanClass)
Returns a localized display name of a bean.


makeObjectListenToPropertyChange

public static void makeObjectListenToPropertyChange(java.lang.Object o,
                                                    java.lang.Object src)
If the specified "src" object implements "addPropertyChangeListener", this method adds the object "o" to it.


makeObjectUnListenToPropertyChange

public static void makeObjectUnListenToPropertyChange(java.lang.Object o,
                                                      java.lang.Object src)
If the specified "src" object implements "removePropertyChangeListener", this method removes the object "o" from it.



Copyright © 2003 JBean project. All Rights Reserved.