站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by 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

Constructor Summary
RuleModeller(RuleAsset asset)
           
 
Method Summary
protected  void addActionSetField(String itemText)
           
protected  void addModify(String itemText)
           
protected  void addNewCE(String s)
           
protected  void addNewDSLLhs(DSLSentence sentence)
           
protected  void addNewDSLRhs(DSLSentence sentence)
           
protected  void addNewFact(String itemText)
          Adds a fact to the model, and then refreshes the display.
protected  void addRetract(String var)
           
 RuleModel getModel()
           
 boolean isVariableNameUsed(String name)
          Returns true is a var name has already been used either by the rule, or as a global.
 void refreshWidget()
          This updates the widget to reflect the state of the model.
protected  void showActionSelector(com.google.gwt.user.client.ui.Widget w)
           
protected  void showAttributeSelector(com.google.gwt.user.client.ui.Widget w)
           
protected  void showConditionSelector(com.google.gwt.user.client.ui.Widget w)
          Pops up the fact selector.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleModeller

public RuleModeller(RuleAsset asset)
Method Detail

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.