public class FactPatternWidget extends RuleModellerWidget
modeller
Constructor and Description |
---|
FactPatternWidget(RuleModeller ruleModeller,
com.google.gwt.event.shared.EventBus eventBus,
org.drools.workbench.models.datamodel.rule.IPattern pattern,
boolean canBind,
Boolean readOnly)
Creates a new FactPatternWidget
|
FactPatternWidget(RuleModeller mod,
com.google.gwt.event.shared.EventBus eventBus,
org.drools.workbench.models.datamodel.rule.IPattern p,
boolean isAll0WithLabel,
boolean canBind,
Boolean readOnly) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawConstraints(List<org.drools.workbench.models.datamodel.rule.FieldConstraint> sortedConst,
org.drools.workbench.models.datamodel.rule.HasConstraints hasConstraints)
Render a hierarchy of constraints, hierarchy here means constraints that
may themselves depend on members of constraint objects.
|
boolean |
isFactTypeKnown()
Does the Fact Type the Widget represents known to the
SuggestionCompletionEngine.
|
boolean |
isReadOnly()
Dictates if the widget's state is RO or not.
|
addFactTypeKnownValueChangeHandler, addOnModifiedCommand, getEventBus, getModeller, isModified, setModified
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public FactPatternWidget(RuleModeller ruleModeller, com.google.gwt.event.shared.EventBus eventBus, org.drools.workbench.models.datamodel.rule.IPattern pattern, boolean canBind, Boolean readOnly)
canBind
- readOnly
- if the widget should be in RO mode. If this parameter is null,
the readOnly attribute is calculated.public FactPatternWidget(RuleModeller mod, com.google.gwt.event.shared.EventBus eventBus, org.drools.workbench.models.datamodel.rule.IPattern p, boolean isAll0WithLabel, boolean canBind, Boolean readOnly)
protected void drawConstraints(List<org.drools.workbench.models.datamodel.rule.FieldConstraint> sortedConst, org.drools.workbench.models.datamodel.rule.HasConstraints hasConstraints)
sortedConst
- a sorted list of constraints to display.public boolean isReadOnly()
RuleModellerWidget
isReadOnly
in class RuleModellerWidget
public boolean isFactTypeKnown()
RuleModellerWidget
isFactTypeKnown
in class RuleModellerWidget
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.