站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  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.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

Field Summary
protected  RuleAsset asset
           
 
Constructor Summary
RuleViewer(RuleAsset asset)
           
RuleViewer(RuleAsset asset, boolean historicalReadOnly)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

asset

protected RuleAsset asset
Constructor Detail

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.
Method Detail

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.