当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
RuleViewer (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.brms.client.ruleeditor
Class RuleViewer
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.ruleeditor.RuleViewer
- All Implemented Interfaces:
- com.google.gwt.user.client.EventListener
public class RuleViewer
- extends com.google.gwt.user.client.ui.Composite
The main layout parent/controller the rule viewer.
- Author:
- Michael Neale
Method Summary |
protected void |
doCloseUnsavedWarning()
Called when user wants to close, but there is "dirtyness". |
void |
refreshDataAndView()
This will reload the contents from the database, and refresh the widgets. |
void |
setCloseCommand(com.google.gwt.user.client.Command c)
This needs to be called to allow the opened viewer to close itself. |
void |
zoomIntoAsset()
Calling this will toggle the visibility of the meta-data widget (effectively zooming
in the rule asset). |
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 |
asset
protected RuleAsset asset
RuleViewer
public RuleViewer(RuleAsset asset)
RuleViewer
public RuleViewer(RuleAsset asset,
boolean historicalReadOnly)
- Parameters:
UUID
- The resource to open.format
- The type of resource (may determine what editor is used).name
- The name to be displayed.historicalReadOnly
- true if this is a read only view for historical purposes.
refreshDataAndView
public void refreshDataAndView()
- This will reload the contents from the database, and refresh the widgets.
zoomIntoAsset
public void zoomIntoAsset()
- Calling this will toggle the visibility of the meta-data widget (effectively zooming
in the rule asset).
setCloseCommand
public void setCloseCommand(com.google.gwt.user.client.Command c)
- This needs to be called to allow the opened viewer to close itself.
- Parameters:
c
-
doCloseUnsavedWarning
protected void doCloseUnsavedWarning()
- Called when user wants to close, but there is "dirtyness".
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.