use of org.drools.workbench.screens.guided.dtree.client.widget.shapes.ConstraintShape in project drools-wb by kiegroup.
the class ConstraintNodeFactory method getShape.
/**
* This returns a new Shape following a drag operation from the palette
* @param helper
* @return
*/
@Override
public WiresBaseShape getShape(final FactoryHelper helper) {
final ConstraintFactoryHelper cnHelper = (ConstraintFactoryHelper) helper;
final ConstraintNode node = cnHelper.getContext();
// drag proxy. We need to create a new instance of the ConstraintNode for use in the Decision Tree Widget
return new ConstraintShape(makeShape(), new ConstraintNodeImpl(node.getClassName(), node.getFieldName()), cnHelper.isReadOnly());
}
Aggregations