org.drools.eclipse.flow.common.editor.core
Class ProcessWrapper

java.lang.Object
  extended by org.drools.eclipse.flow.common.editor.core.ProcessWrapper
All Implemented Interfaces:
Serializable, ElementContainer, org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
RuleFlowProcessWrapper

public abstract class ProcessWrapper
extends Object
implements ElementContainer, org.eclipse.ui.views.properties.IPropertySource, Serializable

A wrapper for process element.

See Also:
Serialized Form

Field Summary
static int CHANGE_ELEMENTS
           
static int CHANGE_ROUTER_LAYOUT
           
protected  org.eclipse.ui.views.properties.IPropertyDescriptor[] descriptors
           
static String EXCEPTION_HANDLERS
           
static String ID
           
static String NAME
           
static String PACKAGE_NAME
           
static String ROUTER_LAYOUT
           
static Integer ROUTER_LAYOUT_MANHATTAN
           
static Integer ROUTER_LAYOUT_MANUAL
           
static Integer ROUTER_LAYOUT_SHORTEST_PATH
           
static String SWIMLANES
           
static String VARIABLES
           
static String VERSION
           
 
Constructor Summary
ProcessWrapper()
           
 
Method Summary
 void addElement(ElementWrapper element)
           
 void addListener(ModelListener listener)
           
 boolean canAddElement(ElementWrapper element)
           
protected abstract  org.drools.definition.process.Process createProcess()
           
 Object getEditableValue()
           
 ElementWrapper getElement(String id)
           
 List<ElementWrapper> getElements()
           
 String getId()
           
 String getName()
           
 String getPackageName()
           
 org.drools.definition.process.Process getProcess()
           
 ProcessWrapper getProcessWrapper()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object id)
           
 Integer getRouterLayout()
           
 String getVersion()
           
 void initPropertyDescriptors()
           
protected abstract  void internalAddElement(ElementWrapper element)
           
protected abstract  void internalRemoveElement(ElementWrapper element)
           
 boolean isFullProperties()
           
 boolean isPropertySet(Object id)
           
 void localAddElement(ElementWrapper element)
           
 void localSetProcess(org.drools.definition.process.Process process)
           
 void notifyListeners(int change)
           
 void removeElement(ElementWrapper element)
           
 void removeListener(ModelListener listener)
           
 void resetPropertyValue(Object id)
           
 void setId(String id)
           
 void setName(String name)
           
 void setPackageName(String packageName)
           
 void setPropertyValue(Object id, Object value)
           
 void setRouterLayout(Integer routerLayout)
           
 void setVersion(String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_ELEMENTS

public static final int CHANGE_ELEMENTS
See Also:
Constant Field Values

CHANGE_ROUTER_LAYOUT

public static final int CHANGE_ROUTER_LAYOUT
See Also:
Constant Field Values

ROUTER_LAYOUT_MANUAL

public static final Integer ROUTER_LAYOUT_MANUAL

ROUTER_LAYOUT_MANHATTAN

public static final Integer ROUTER_LAYOUT_MANHATTAN

ROUTER_LAYOUT_SHORTEST_PATH

public static final Integer ROUTER_LAYOUT_SHORTEST_PATH

NAME

public static final String NAME
See Also:
Constant Field Values

VERSION

public static final String VERSION
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

PACKAGE_NAME

public static final String PACKAGE_NAME
See Also:
Constant Field Values

ROUTER_LAYOUT

public static final String ROUTER_LAYOUT
See Also:
Constant Field Values

VARIABLES

public static final String VARIABLES
See Also:
Constant Field Values

SWIMLANES

public static final String SWIMLANES
See Also:
Constant Field Values

EXCEPTION_HANDLERS

public static final String EXCEPTION_HANDLERS
See Also:
Constant Field Values

descriptors

protected org.eclipse.ui.views.properties.IPropertyDescriptor[] descriptors
Constructor Detail

ProcessWrapper

public ProcessWrapper()
Method Detail

createProcess

protected abstract org.drools.definition.process.Process createProcess()

getProcess

public org.drools.definition.process.Process getProcess()

localSetProcess

public void localSetProcess(org.drools.definition.process.Process process)

getName

public String getName()

setName

public void setName(String name)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getId

public String getId()

setId

public void setId(String id)

getPackageName

public String getPackageName()

setPackageName

public void setPackageName(String packageName)

getRouterLayout

public Integer getRouterLayout()

setRouterLayout

public void setRouterLayout(Integer routerLayout)

getElements

public List<ElementWrapper> getElements()
Specified by:
getElements in interface ElementContainer

getElement

public ElementWrapper getElement(String id)

addElement

public void addElement(ElementWrapper element)
Specified by:
addElement in interface ElementContainer

localAddElement

public void localAddElement(ElementWrapper element)
Specified by:
localAddElement in interface ElementContainer

internalAddElement

protected abstract void internalAddElement(ElementWrapper element)

removeElement

public void removeElement(ElementWrapper element)
Specified by:
removeElement in interface ElementContainer

internalRemoveElement

protected abstract void internalRemoveElement(ElementWrapper element)

getProcessWrapper

public ProcessWrapper getProcessWrapper()
Specified by:
getProcessWrapper in interface ElementContainer

addListener

public void addListener(ModelListener listener)

removeListener

public void removeListener(ModelListener listener)

notifyListeners

public void notifyListeners(int change)

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource

initPropertyDescriptors

public void initPropertyDescriptors()

isFullProperties

public boolean isFullProperties()

getPropertyValue

public Object getPropertyValue(Object id)
Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

isPropertySet

public boolean isPropertySet(Object id)
Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

canAddElement

public boolean canAddElement(ElementWrapper element)
Specified by:
canAddElement in interface ElementContainer


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.