org.obe.util
Class AbstractBean

java.lang.Object
  extended byorg.obe.util.AbstractBean
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, java.io.Serializable
Direct Known Subclasses:
AbstractWFElement, ActivitySet, ActualParameter, AssignmentStrategyDef, BlockActivity, ComplexType, Condition, ConformanceClass, DataType, Deadline, DeclaredType, Duration, EnumerationType, EnumerationValue, ExternalPackage, FormalParameter, Invocation, Join, Loop, LoopBody, MultiValuedType, PackageHeader, ProcessHeader, RedefinableHeader, Script, SimulationInformation, Split, TimeEstimation, ToolSet, XMLFragment, Xpression

public abstract class AbstractBean
extends java.lang.Object
implements java.beans.beancontext.BeanContextChild, java.io.Serializable

An abstract bean class that supports events and array reallocation. The methods in this class are not thread-safe and require external synchronization if called in a multi-threaded context.

Author:
Adrian Price
See Also:
Serialized Form

Constructor Summary
protected AbstractBean()
           
protected AbstractBean(java.lang.String[] propertyNames, java.lang.Object[] initalValues)
          Constructor
 
Method Summary
protected  java.lang.Object add(int propertyIndex, java.lang.Object newValue)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener pcl)
           
 void addVetoableChangeListener(java.lang.String name, java.beans.VetoableChangeListener vcl)
           
 void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
           
 void clear(java.lang.String propertyName)
           
protected  void firePropertyChange(java.beans.PropertyChangeEvent evt)
           
protected  void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
           
protected  void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
           
protected  void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
protected  void fireVetoableChange(java.beans.PropertyChangeEvent evt)
           
protected  void fireVetoableChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
           
protected  void fireVetoableChange(java.lang.String propertyName, int oldValue, int newValue)
           
protected  void fireVetoableChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
protected  java.lang.Object get(int propertyIndex)
           
protected  java.lang.Object get(int propertyIndex, int index)
           
 java.beans.beancontext.BeanContext getBeanContext()
           
 javax.swing.ListModel getListModel(java.lang.String propertyName)
           
protected  boolean hasChangeListeners(java.lang.String propertyName)
           
protected  boolean hasVetoListeners(java.lang.String propertyName)
           
protected  java.lang.Object remove(int propertyIndex, java.lang.Object elem)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener pcl)
           
 void removeVetoableChangeListener(java.lang.String name, java.beans.VetoableChangeListener vcl)
           
 void removeVetoableChangeListener(java.beans.VetoableChangeListener vcl)
           
protected  void set(int propertyIndex, int index, java.lang.Object newValue)
           
protected  void set(int propertyIndex, java.lang.Object array)
           
 void setBeanContext(java.beans.beancontext.BeanContext bc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBean

protected AbstractBean()

AbstractBean

protected AbstractBean(java.lang.String[] propertyNames,
                       java.lang.Object[] initalValues)
Constructor

Parameters:
propertyNames -
initalValues -
Method Detail

get

protected final java.lang.Object get(int propertyIndex)

get

protected final java.lang.Object get(int propertyIndex,
                                     int index)

set

protected final void set(int propertyIndex,
                         java.lang.Object array)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

set

protected final void set(int propertyIndex,
                         int index,
                         java.lang.Object newValue)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

add

protected final java.lang.Object add(int propertyIndex,
                                     java.lang.Object newValue)
                              throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

protected final java.lang.Object remove(int propertyIndex,
                                        java.lang.Object elem)
                                 throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getListModel

public final javax.swing.ListModel getListModel(java.lang.String propertyName)

clear

public final void clear(java.lang.String propertyName)
                 throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setBeanContext

public final void setBeanContext(java.beans.beancontext.BeanContext bc)
                          throws java.beans.PropertyVetoException
Specified by:
setBeanContext in interface java.beans.beancontext.BeanContextChild
Throws:
java.beans.PropertyVetoException

getBeanContext

public final java.beans.beancontext.BeanContext getBeanContext()
Specified by:
getBeanContext in interface java.beans.beancontext.BeanContextChild

addPropertyChangeListener

public final void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

addPropertyChangeListener

public final void addPropertyChangeListener(java.lang.String name,
                                            java.beans.PropertyChangeListener pcl)
Specified by:
addPropertyChangeListener in interface java.beans.beancontext.BeanContextChild

addVetoableChangeListener

public final void addVetoableChangeListener(java.beans.VetoableChangeListener listener)

addVetoableChangeListener

public final void addVetoableChangeListener(java.lang.String name,
                                            java.beans.VetoableChangeListener vcl)
Specified by:
addVetoableChangeListener in interface java.beans.beancontext.BeanContextChild

firePropertyChange

protected final void firePropertyChange(java.beans.PropertyChangeEvent evt)

firePropertyChange

protected final void firePropertyChange(java.lang.String propertyName,
                                        java.lang.Object oldValue,
                                        java.lang.Object newValue)

firePropertyChange

protected final void firePropertyChange(java.lang.String propertyName,
                                        int oldValue,
                                        int newValue)

firePropertyChange

protected final void firePropertyChange(java.lang.String propertyName,
                                        boolean oldValue,
                                        boolean newValue)

fireVetoableChange

protected final void fireVetoableChange(java.beans.PropertyChangeEvent evt)
                                 throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

fireVetoableChange

protected final void fireVetoableChange(java.lang.String propertyName,
                                        java.lang.Object oldValue,
                                        java.lang.Object newValue)
                                 throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

fireVetoableChange

protected final void fireVetoableChange(java.lang.String propertyName,
                                        int oldValue,
                                        int newValue)
                                 throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

fireVetoableChange

protected final void fireVetoableChange(java.lang.String propertyName,
                                        boolean oldValue,
                                        boolean newValue)
                                 throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

hasChangeListeners

protected final boolean hasChangeListeners(java.lang.String propertyName)

hasVetoListeners

protected final boolean hasVetoListeners(java.lang.String propertyName)

removePropertyChangeListener

public final void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public final void removePropertyChangeListener(java.lang.String name,
                                               java.beans.PropertyChangeListener pcl)
Specified by:
removePropertyChangeListener in interface java.beans.beancontext.BeanContextChild

removeVetoableChangeListener

public final void removeVetoableChangeListener(java.beans.VetoableChangeListener vcl)

removeVetoableChangeListener

public final void removeVetoableChangeListener(java.lang.String name,
                                               java.beans.VetoableChangeListener vcl)
Specified by:
removeVetoableChangeListener in interface java.beans.beancontext.BeanContextChild


SourceForge.net Logo OBE-1.0 Copyright (C) 2002-2006 Adrian Price. All Rights Reserved.