当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
RuleModeller (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.brms.client.modeldriven.ui
Class RuleModeller
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.brms.client.modeldriven.ui.RuleModeller
- All Implemented Interfaces:
- com.google.gwt.user.client.EventListener
public class RuleModeller
- extends com.google.gwt.user.client.ui.Composite
This is the parent widget that contains the model based rule builder.
- Author:
- Michael Neale
Methods inherited from class com.google.gwt.user.client.ui.Composite |
getElement, initWidget, onAttach, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
getParent, isAttached, onBrowserEvent, onLoad, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
RuleModeller
public RuleModeller(RuleAsset asset)
refreshWidget
public void refreshWidget()
- This updates the widget to reflect the state of the model.
showAttributeSelector
protected void showAttributeSelector(com.google.gwt.user.client.ui.Widget w)
showConditionSelector
protected void showConditionSelector(com.google.gwt.user.client.ui.Widget w)
- Pops up the fact selector.
addNewDSLLhs
protected void addNewDSLLhs(DSLSentence sentence)
showActionSelector
protected void showActionSelector(com.google.gwt.user.client.ui.Widget w)
addModify
protected void addModify(String itemText)
addNewDSLRhs
protected void addNewDSLRhs(DSLSentence sentence)
addRetract
protected void addRetract(String var)
addActionSetField
protected void addActionSetField(String itemText)
addNewCE
protected void addNewCE(String s)
addNewFact
protected void addNewFact(String itemText)
- Adds a fact to the model, and then refreshes the display.
getModel
public RuleModel getModel()
isVariableNameUsed
public boolean isVariableNameUsed(String name)
- Returns true is a var name has already been used
either by the rule, or as a global.
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.