|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.drools.guvnor.client.decisiontable.widget.AbstractDecisionTableWidget
public abstract class AbstractDecisionTableWidget
An abstract Decision Table and the necessary boiler-plate to convert from DTColumnConfig objects to the DynamicData related classes used by the DecoratedGridWidget
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
protected DecisionTableCellFactory |
cellFactory
|
protected DecisionTableCellValueFactory |
cellValueFactory
|
protected DecisionTableControlsWidget |
dtableCtrls
|
protected TypeSafeGuidedDecisionTable |
model
|
protected SuggestionCompletionEngine |
sce
|
protected DecoratedGridWidget<DTColumnConfig> |
widget
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
AbstractDecisionTableWidget(DecisionTableControlsWidget dtableCtrls,
SuggestionCompletionEngine sce)
Constructor |
Method Summary | |
---|---|
void |
addColumn(DTColumnConfig modelColumn)
Add a column to the table, at the appropriate position determined by the column subclass: RowNumberCol, Metadata columns, Attribute columns, Condition columns and lastly Action columns. |
void |
appendRow()
Append an empty row to the end of the table |
protected boolean |
canAcceptOtherwiseValues(CellValue<?> cell)
Check whether the given Cell can accept "otherwise" values |
void |
deleteColumn(DTColumnConfig modelColumn)
Delete the given column |
void |
deleteRow(DynamicDataRow row)
Delete the given row |
TypeSafeGuidedDecisionTable |
getModel()
Return the model |
SuggestionCompletionEngine |
getSCE()
Return the SCE associated with this Decision Table |
void |
insertRowBefore(DynamicDataRow rowBefore)
Insert an empty row before the given row |
void |
makeOtherwiseCell()
Mark a cell as containing the magical "otherwise" value. |
void |
redrawSystemControlledColumns()
Force the system controlled columns to be redrawn |
void |
scrapeColumns()
Update the Decision Table model with the columns contained in the grid. |
void |
scrapeData()
Update the Decision Table model with the data contained in the grid. |
void |
setColumnVisibility(DTColumnConfig modelColumn,
boolean isVisible)
|
void |
setModel(TypeSafeGuidedDecisionTable model)
Set the Decision Table's data. |
void |
setPixelSize(int width,
int height)
Ensure the wrapped DecoratedGridWidget's size is set too |
void |
updateColumn(ActionInsertFactCol origColumn,
ActionInsertFactCol editColumn)
Update an ActionSetFieldCol column |
void |
updateColumn(ActionSetFieldCol origColumn,
ActionSetFieldCol editColumn)
Update an ActionSetFieldCol column |
void |
updateColumn(ConditionCol origColumn,
ConditionCol editColumn)
Update a Condition column |
void |
updateSystemControlledColumnValues()
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TypeSafeGuidedDecisionTable model
protected DecoratedGridWidget<DTColumnConfig> widget
protected SuggestionCompletionEngine sce
protected DecisionTableCellFactory cellFactory
protected DecisionTableCellValueFactory cellValueFactory
protected DecisionTableControlsWidget dtableCtrls
Constructor Detail |
---|
public AbstractDecisionTableWidget(DecisionTableControlsWidget dtableCtrls, SuggestionCompletionEngine sce)
sce
- Method Detail |
---|
public void addColumn(DTColumnConfig modelColumn)
addColumn
in interface HasColumns<DTColumnConfig>
modelColumn
- The Decision Table column to insertpublic void appendRow()
appendRow
in interface HasRows
public void deleteColumn(DTColumnConfig modelColumn)
deleteColumn
in interface HasColumns<DTColumnConfig>
modelColumn
- The Decision Table column to deletepublic void deleteRow(DynamicDataRow row)
deleteRow
in interface HasRows
The
- Decision Table row to deletepublic TypeSafeGuidedDecisionTable getModel()
public SuggestionCompletionEngine getSCE()
public void insertRowBefore(DynamicDataRow rowBefore)
insertRowBefore
in interface HasRows
rowBefore
- The row before which the new (empty) row will be inserted. If
this value is null the row will be appended to the end of the
tablepublic void makeOtherwiseCell()
public void redrawSystemControlledColumns()
public void scrapeColumns()
public void scrapeData()
public void setColumnVisibility(DTColumnConfig modelColumn, boolean isVisible)
setColumnVisibility
in interface HasColumns<DTColumnConfig>
public void setModel(TypeSafeGuidedDecisionTable model)
data
- public void setPixelSize(int width, int height)
setPixelSize
in class com.google.gwt.user.client.ui.UIObject
public void updateColumn(ActionInsertFactCol origColumn, ActionInsertFactCol editColumn)
origCol
- The existing column in the grideditColumn
- A copy (not clone) of the original column containing the
modified valuespublic void updateColumn(ActionSetFieldCol origColumn, ActionSetFieldCol editColumn)
origCol
- The existing column in the grideditColumn
- A copy (not clone) of the original column containing the
modified valuespublic void updateColumn(ConditionCol origColumn, ConditionCol editColumn)
origCol
- The existing column in the grideditColumn
- A copy (not clone) of the original column containing the
modified valuespublic void updateSystemControlledColumnValues()
updateSystemControlledColumnValues
in interface HasSystemControlledColumns
protected boolean canAcceptOtherwiseValues(CellValue<?> cell)
cell
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |