AbstractFlow.java :  » Workflow-Engines » OpenWFE » org » openwfe » gpe » model » Java Open Source

Java Open Source » Workflow Engines » OpenWFE 
OpenWFE » org » openwfe » gpe » model » AbstractFlow.java

package org.openwfe.gpe.model;

//superclass of the model
//contains listeners for changing properties and children

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;

import org.eclipse.ui.views.properties.IPropertyDescriptor;
import org.eclipse.ui.views.properties.IPropertySource;

abstract public class AbstractFlow
  implements IPropertySource, Cloneable, Serializable

public static final String
  CHILDREN = "Children";

transient protected PropertyChangeSupport listeners = new PropertyChangeSupport(this);

public void addPropertyChangeListener(PropertyChangeListener l){

protected void firePropertyChange(String prop, Object old, Object newValue){
  listeners.firePropertyChange(prop, old, newValue);

protected void fireStructureChange(String prop, Object child){
  listeners.firePropertyChange(prop, null, child);


public Object getEditableValue(){
  return this;

public IPropertyDescriptor[] getPropertyDescriptors(){
  return new IPropertyDescriptor[0];

public Object getPropertyValue(Object propName){
  return null;

public boolean isPropertySet(Object propName){
  return true;

private void readObject(ObjectInputStream in)throws IOException, ClassNotFoundException {
  listeners = new PropertyChangeSupport(this);

public void removePropertyChangeListener(PropertyChangeListener l){

public void resetPropertyValue(Object propName){

public void setPropertyValue(Object propName, Object val) { }

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.