|
||||||||||
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 GuidedDecisionTable52 |
model
|
protected SuggestionCompletionEngine |
sce
|
protected DecoratedGridWidget<DTColumnConfig52> |
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(DTColumnConfig52 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(DTColumnConfig52 modelColumn)
Delete the given column |
void |
deleteRow(DynamicDataRow row)
Delete the given row |
GuidedDecisionTable52 |
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(DTColumnConfig52 modelColumn,
boolean isVisible)
|
void |
setModel(GuidedDecisionTable52 model)
Set the Decision Table's data. |
void |
setPixelSize(int width,
int height)
Ensure the wrapped DecoratedGridWidget's size is set too |
void |
updateColumn(ActionInsertFactCol52 origColumn,
ActionInsertFactCol52 editColumn)
Update an ActionSetFieldCol column |
void |
updateColumn(ActionSetFieldCol52 origColumn,
ActionSetFieldCol52 editColumn)
Update an ActionSetFieldCol column |
void |
updateColumn(Pattern52 origPattern,
ConditionCol52 origColumn,
Pattern52 editPattern,
ConditionCol52 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, addBitlessDomHandler, 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, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected GuidedDecisionTable52 model
protected DecoratedGridWidget<DTColumnConfig52> 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(DTColumnConfig52 modelColumn)
addColumn
in interface HasColumns<DTColumnConfig52>
modelColumn
- The Decision Table column to insertpublic void appendRow()
appendRow
in interface HasRows
public void deleteColumn(DTColumnConfig52 modelColumn)
deleteColumn
in interface HasColumns<DTColumnConfig52>
modelColumn
- The Decision Table column to deletepublic void deleteRow(DynamicDataRow row)
deleteRow
in interface HasRows
The
- Decision Table row to deletepublic GuidedDecisionTable52 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(DTColumnConfig52 modelColumn, boolean isVisible)
setColumnVisibility
in interface HasColumns<DTColumnConfig52>
public void setModel(GuidedDecisionTable52 model)
data
- public void setPixelSize(int width, int height)
setPixelSize
in class com.google.gwt.user.client.ui.UIObject
public void updateColumn(ActionInsertFactCol52 origColumn, ActionInsertFactCol52 editColumn)
origCol
- The existing column in the grideditColumn
- A copy (not clone) of the original column containing the
modified valuespublic void updateColumn(ActionSetFieldCol52 origColumn, ActionSetFieldCol52 editColumn)
origCol
- The existing column in the grideditColumn
- A copy (not clone) of the original column containing the
modified valuespublic void updateColumn(Pattern52 origPattern, ConditionCol52 origColumn, Pattern52 editPattern, ConditionCol52 editColumn)
origPattern
- The existing pattern to which the column relatedorigCol
- The existing column in the grideditPattern
- The new pattern to which the column relateseditColumn
- A copy 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 |