Class ConstraintValueEditor
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.drools.workbench.screens.guided.rule.client.editor.ConstraintValueEditor
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget
public class ConstraintValueEditor extends com.google.gwt.user.client.ui.CompositeThis is an editor for constraint values. How this behaves depends on the constraint value type. When the constraint value has no type, it will allow the user to choose the first time.
-
-
Constructor Summary
Constructors Constructor Description ConstraintValueEditor(org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint con, org.drools.workbench.models.datamodel.rule.CompositeFieldConstraint constraintList, RuleModeller modeller, com.google.gwt.event.shared.EventBus eventBus, boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraintgetConstraint()voidhideError()voidinit()voidrefresh()voidsetOnTemplateValueChangeCommand(com.google.gwt.user.client.Command onTemplateValueChangeCommand)voidsetOnValueChangeCommand(com.google.gwt.user.client.Command onValueChangeCommand)voidshowError()-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
-
-
-
-
Constructor Detail
-
ConstraintValueEditor
public ConstraintValueEditor(org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint con, org.drools.workbench.models.datamodel.rule.CompositeFieldConstraint constraintList, RuleModeller modeller, com.google.gwt.event.shared.EventBus eventBus, boolean readOnly)
-
-
Method Detail
-
init
public void init()
-
getConstraint
public org.drools.workbench.models.datamodel.rule.BaseSingleFieldConstraint getConstraint()
-
refresh
public void refresh()
-
showError
public void showError()
-
hideError
public void hideError()
-
setOnValueChangeCommand
public void setOnValueChangeCommand(com.google.gwt.user.client.Command onValueChangeCommand)
-
setOnTemplateValueChangeCommand
public void setOnTemplateValueChangeCommand(com.google.gwt.user.client.Command onTemplateValueChangeCommand)
-
-