站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

AssetItemListViewer (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.brms.client.rulelist
Class AssetItemListViewer

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.rulelist.AssetItemListViewer
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class AssetItemListViewer
extends com.google.gwt.user.client.ui.Composite

This is a viewer for viewing a list of rules for editing/selection. This uses the sortable table widget, and can be re-used with different data sets. (ie no need to throw is away).


Field Summary
static String RULE_LIST_TABLE_ID
           
 
Constructor Summary
AssetItemListViewer(EditItemEvent event)
           
 
Method Summary
 void loadTableData(TableDataResult data)
          This will create a table, and load the data, wrapping it in a scrolling area.
 void setRefreshCommand(com.google.gwt.user.client.Command refreshCom)
          Optionally set the refresh command to repopulate the list on demand.
 
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

RULE_LIST_TABLE_ID

public static final String RULE_LIST_TABLE_ID
See Also:
Constant Field Values
Constructor Detail

AssetItemListViewer

public AssetItemListViewer(EditItemEvent event)
Method Detail

setRefreshCommand

public void setRefreshCommand(com.google.gwt.user.client.Command refreshCom)
Optionally set the refresh command to repopulate the list on demand.

Parameters:
refreshCom -

loadTableData

public void loadTableData(TableDataResult data)
This will create a table, and load the data, wrapping it in a scrolling area. If the data is null, it will just fill it in with something empty so it looks busy. This could probably clear the table, but I just throw it away let the garbage collector do the hard work.



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.