org.drools.eclipse.flow.ruleflow.core
Class CompositeNodeWrapper

java.lang.Object
  extended by org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper
      extended by org.drools.eclipse.flow.common.editor.core.ElementContainerElementWrapper
          extended by org.drools.eclipse.flow.ruleflow.core.CompositeNodeWrapper
All Implemented Interfaces:
Serializable, ElementContainer, ElementWrapper, NodeWrapper, org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
CompositeContextNodeWrapper, DynamicNodeWrapper, ForEachNodeWrapper

public abstract class CompositeNodeWrapper
extends ElementContainerElementWrapper
implements NodeWrapper

See Also:
Serialized Form

Field Summary
protected  org.eclipse.ui.views.properties.IPropertyDescriptor[] descriptors
           
static String ON_ENTRY_ACTIONS
           
static String ON_EXIT_ACTIONS
           
static String TIMERS
           
 
Fields inherited from class org.drools.eclipse.flow.common.editor.core.ElementContainerElementWrapper
ADD_ELEMENT, REMOVE_ELEMENT
 
Fields inherited from class org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper
color, COLOR, DESCRIPTORS, ID, NAME
 
Fields inherited from interface org.drools.eclipse.flow.common.editor.core.ElementWrapper
CHANGE_CONSTRAINT, CHANGE_ID, CHANGE_INCOMING_CONNECTIONS, CHANGE_NAME, CHANGE_OUTGOING_CONNECTIONS
 
Constructor Summary
CompositeNodeWrapper()
           
 
Method Summary
 boolean acceptsIncomingConnection(ElementConnection connection, ElementWrapper source)
           
 boolean acceptsOutgoingConnection(ElementConnection connection, ElementWrapper target)
           
 org.jbpm.workflow.core.node.CompositeNode getCompositeNode()
           
 String getId()
           
 String getName()
           
 org.jbpm.workflow.core.Node getNode()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object id)
           
protected  void initDescriptors()
           
protected  void internalAddElement(ElementWrapper element)
           
 org.eclipse.draw2d.geometry.Rectangle internalGetConstraint()
           
protected  void internalRemoveElement(ElementWrapper element)
           
protected  void internalSetConstraint(org.eclipse.draw2d.geometry.Rectangle constraint)
           
 void internalSetName(String name)
           
 boolean isFullProperties()
           
 void resetPropertyValue(Object id)
           
 void setNode(org.jbpm.workflow.core.Node node)
           
 void setPropertyValue(Object id, Object value)
           
 
Methods inherited from class org.drools.eclipse.flow.common.editor.core.ElementContainerElementWrapper
addElement, canAddElement, getElements, getProcessWrapper, localAddElement, removeElement
 
Methods inherited from class org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper
addIncomingConnection, addListener, addOutgoingConnection, getColor, getConstraint, getEditableValue, getElement, getIncomingConnections, getOutgoingConnections, getParent, integerToRGB, internalAddIncomingConnection, internalAddOutgoingConnection, internalGetColor, internalRemoveIncomingConnection, internalRemoveOutgoingConnection, internalSetColor, isPropertySet, localAddIncomingConnection, localAddOutgoingConnection, notifyListeners, removeIncomingConnection, removeListener, removeOutgoingConnection, RGBToInteger, setColor, setConstraint, setElement, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.eclipse.flow.common.editor.core.ElementWrapper
addIncomingConnection, addListener, addOutgoingConnection, getConstraint, getIncomingConnections, getOutgoingConnections, getParent, localAddIncomingConnection, localAddOutgoingConnection, removeIncomingConnection, removeListener, removeOutgoingConnection, setConstraint, setName, setParent
 

Field Detail

ON_ENTRY_ACTIONS

public static final String ON_ENTRY_ACTIONS
See Also:
Constant Field Values

ON_EXIT_ACTIONS

public static final String ON_EXIT_ACTIONS
See Also:
Constant Field Values

TIMERS

public static final String TIMERS
See Also:
Constant Field Values

descriptors

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

CompositeNodeWrapper

public CompositeNodeWrapper()
Method Detail

setNode

public void setNode(org.jbpm.workflow.core.Node node)
Specified by:
setNode in interface NodeWrapper

getNode

public org.jbpm.workflow.core.Node getNode()
Specified by:
getNode in interface NodeWrapper

isFullProperties

public boolean isFullProperties()

getId

public String getId()
Specified by:
getId in interface ElementWrapper

getName

public String getName()
Specified by:
getName in interface ElementWrapper

internalSetName

public void internalSetName(String name)
Overrides:
internalSetName in class DefaultElementWrapper

internalSetConstraint

protected void internalSetConstraint(org.eclipse.draw2d.geometry.Rectangle constraint)
Specified by:
internalSetConstraint in class DefaultElementWrapper

internalGetConstraint

public org.eclipse.draw2d.geometry.Rectangle internalGetConstraint()
Specified by:
internalGetConstraint in class DefaultElementWrapper

getCompositeNode

public org.jbpm.workflow.core.node.CompositeNode getCompositeNode()

acceptsIncomingConnection

public boolean acceptsIncomingConnection(ElementConnection connection,
                                         ElementWrapper source)
Specified by:
acceptsIncomingConnection in interface ElementWrapper

acceptsOutgoingConnection

public boolean acceptsOutgoingConnection(ElementConnection connection,
                                         ElementWrapper target)
Specified by:
acceptsOutgoingConnection in interface ElementWrapper

internalAddElement

protected void internalAddElement(ElementWrapper element)
Specified by:
internalAddElement in class ElementContainerElementWrapper

internalRemoveElement

protected void internalRemoveElement(ElementWrapper element)
Specified by:
internalRemoveElement in class ElementContainerElementWrapper

getPropertyDescriptors

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

initDescriptors

protected void initDescriptors()

getPropertyValue

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

resetPropertyValue

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

setPropertyValue

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


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