org.drools.eclipse.editors.rete.model
Class VertexPropertySource

java.lang.Object
  extended by org.drools.eclipse.editors.rete.model.VertexPropertySource
All Implemented Interfaces:
org.eclipse.ui.views.properties.IPropertySource

public class VertexPropertySource
extends Object
implements org.eclipse.ui.views.properties.IPropertySource

Providing IPropertySource for property sheets that show rete graph vertex properties.


Field Summary
 String ID_HTML
           
 String ID_ID
           
 String ID_ROOT
           
protected  BaseVertex vertex
           
 
Constructor Summary
VertexPropertySource(BaseVertex vertex)
          Constructor initializing properties from vertex
 
Method Summary
 Object getEditableValue()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object propName)
           
 Object getPropertyValue(String propName)
          Property value.
 boolean isPropertySet(Object propName)
           
 void resetPropertyValue(Object propName)
          Doing nothing as resetting properties from property sheet is not possible.
 void setPropertyValue(Object propName, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_ROOT

public String ID_ROOT

ID_ID

public String ID_ID

ID_HTML

public String ID_HTML

vertex

protected BaseVertex vertex
Constructor Detail

VertexPropertySource

public VertexPropertySource(BaseVertex vertex)
Constructor initializing properties from vertex

Parameters:
vertex - source vertex for this property source
Method Detail

getEditableValue

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

getPropertyValue

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

getPropertyValue

public Object getPropertyValue(String propName)
Property value.

Parameters:
propName -
Returns:

setPropertyValue

public void setPropertyValue(Object propName,
                             Object value)
Specified by:
setPropertyValue 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

resetPropertyValue

public void resetPropertyValue(Object propName)
Doing nothing as resetting properties from property sheet is not possible.

Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

isPropertySet

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


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