|
Guvnor web application Drools 6.0.0-SNAPSHOT | |||||||||
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 DecisionTableDropDownManager |
dropDownManager
|
protected com.google.gwt.event.shared.EventBus |
eventBus
|
protected boolean |
isReadOnly
|
protected GuidedDecisionTable52 |
model
|
protected static DecisionTableResourcesProvider |
resources
|
protected SuggestionCompletionEngine |
sce
|
protected AbstractDecoratedDecisionTableGridWidget |
widget
|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
AbstractDecisionTableWidget(GuidedDecisionTable52 model,
SuggestionCompletionEngine sce,
org.uberfire.security.Identity identity,
boolean isReadOnly,
com.google.gwt.event.shared.EventBus eventBus)
Constructor |
Method Summary | |
---|---|
void |
addColumn(ActionCol52 modelColumn)
Add a column to the table. |
void |
addColumn(AttributeCol52 modelColumn)
Add a column to the table. |
void |
addColumn(BRLActionColumn modelColumn)
Add a column to the table. |
void |
addColumn(BRLConditionColumn modelColumn)
Add a column to the table. |
void |
addColumn(LimitedEntryBRLActionColumn modelColumn)
Add a column to the table. |
void |
addColumn(LimitedEntryBRLConditionColumn modelColumn)
Add a column to the table. |
void |
addColumn(MetadataCol52 modelColumn)
Add a column to the table. |
void |
addColumn(Pattern52 pattern,
ConditionCol52 modelColumn)
Add a column to the table. |
void |
analyze()
|
void |
appendRow()
|
void |
deleteColumn(ActionCol52 modelColumn)
Delete the given column |
void |
deleteColumn(AttributeCol52 modelColumn)
Delete the given column |
void |
deleteColumn(BRLActionColumn modelColumn)
Delete the given column |
void |
deleteColumn(BRLConditionColumn modelColumn)
Delete the given column |
void |
deleteColumn(ConditionCol52 modelColumn)
Delete the given column from the given pattern |
void |
deleteColumn(LimitedEntryBRLActionColumn modelColumn)
Delete the given column |
void |
deleteColumn(LimitedEntryBRLConditionColumn modelColumn)
Delete the given column |
void |
deleteColumn(MetadataCol52 modelColumn)
Delete the given column |
SuggestionCompletionEngine |
getSCE()
Return the SCE associated with this Decision Table |
void |
makeOtherwiseCell()
Mark a cell as containing the magical "otherwise" value. |
void |
moveAction(ActionCol52 action,
int actionTargetIndex)
Move an action to the given index in the model |
void |
moveCondition(Pattern52 pattern,
ConditionCol52 condition,
int conditionTargetIndex)
Move a Condition to the given index on a Pattern in the model |
void |
movePattern(CompositeColumn<?> pattern,
int patternTargetIndex)
Move a Pattern to the given index in the model |
void |
onAppendRow(AppendRowEvent event)
|
void |
onCopyRows(CopyRowsEvent event)
|
void |
onDeleteColumn(DeleteColumnEvent event)
|
void |
onDeleteRow(DeleteRowEvent event)
|
void |
onInsertColumn(InsertColumnEvent<BaseColumn,DTCellValue52> event)
|
void |
onInsertRow(InsertRowEvent event)
|
void |
onMoveColumns(MoveColumnsEvent event)
|
void |
onPasteRows(PasteRowsEvent event)
|
void |
onSelectedCellChange(SelectedCellChangeEvent event)
|
void |
onUpdateModel(UpdateModelEvent event)
|
void |
setColumnVisibility(DTColumnConfig52 modelColumn,
boolean isVisible)
|
protected abstract void |
setEnableOtherwiseButton(boolean isEnabled)
|
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(ActionRetractFactCol52 origColumn,
ActionRetractFactCol52 editColumn)
Update an ActionRetractFactCol52 column |
void |
updateColumn(ActionSetFieldCol52 origColumn,
ActionSetFieldCol52 editColumn)
Update an ActionSetFieldCol column |
void |
updateColumn(ActionWorkItemCol52 origColumn,
ActionWorkItemCol52 editColumn)
Update an ActionWorkItemCol52 column |
void |
updateColumn(ActionWorkItemSetFieldCol52 origColumn,
ActionWorkItemSetFieldCol52 editColumn)
Update an ActionWorkItemSetFieldCol52 column |
void |
updateColumn(BRLActionColumn origColumn,
BRLActionColumn editColumn)
Update a BRLActionColumn column |
void |
updateColumn(BRLConditionColumn origColumn,
BRLConditionColumn editColumn)
Update a BRLConditionColumn column |
void |
updateColumn(LimitedEntryBRLActionColumn origColumn,
LimitedEntryBRLActionColumn editColumn)
Update a LimitedEntryBRLActionColumn column |
void |
updateColumn(LimitedEntryBRLConditionColumn origColumn,
LimitedEntryBRLConditionColumn editColumn)
Update a LimitedEntryBRLConditionColumn column |
void |
updateColumn(Pattern52 origPattern,
ConditionCol52 origColumn,
Pattern52 editPattern,
ConditionCol52 editColumn)
Update a Condition column |
void |
updateSystemControlledColumnValues()
Update values controlled by the decision table itself |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, 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 final GuidedDecisionTable52 model
protected AbstractDecoratedDecisionTableGridWidget widget
protected final SuggestionCompletionEngine sce
protected final DecisionTableCellFactory cellFactory
protected final DecisionTableCellValueFactory cellValueFactory
protected final DecisionTableDropDownManager dropDownManager
protected final com.google.gwt.event.shared.EventBus eventBus
protected final boolean isReadOnly
protected static final DecisionTableResourcesProvider resources
Constructor Detail |
---|
public AbstractDecisionTableWidget(GuidedDecisionTable52 model, SuggestionCompletionEngine sce, org.uberfire.security.Identity identity, boolean isReadOnly, com.google.gwt.event.shared.EventBus eventBus)
sce
- Method Detail |
---|
public void addColumn(ActionCol52 modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(BRLActionColumn modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(LimitedEntryBRLActionColumn modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(BRLConditionColumn modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(LimitedEntryBRLConditionColumn modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(AttributeCol52 modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(MetadataCol52 modelColumn)
modelColumn
- The Decision Table column to insertpublic void addColumn(Pattern52 pattern, ConditionCol52 modelColumn)
pattern
- The Pattern to which the column will be addedmodelColumn
- The Decision Table column to insertpublic void deleteColumn(ActionCol52 modelColumn)
modelColumn
- public void deleteColumn(BRLActionColumn modelColumn)
modelColumn
- public void deleteColumn(LimitedEntryBRLActionColumn modelColumn)
modelColumn
- public void deleteColumn(BRLConditionColumn modelColumn)
modelColumn
- public void deleteColumn(LimitedEntryBRLConditionColumn modelColumn)
modelColumn
- public void deleteColumn(AttributeCol52 modelColumn)
modelColumn
- public void deleteColumn(MetadataCol52 modelColumn)
modelColumn
- public void deleteColumn(ConditionCol52 modelColumn)
modelColumn
- public void appendRow()
public SuggestionCompletionEngine getSCE()
public void makeOtherwiseCell()
public void setColumnVisibility(DTColumnConfig52 modelColumn, boolean isVisible)
public void setPixelSize(int width, int height)
setPixelSize
in class com.google.gwt.user.client.ui.UIObject
public void updateColumn(ActionInsertFactCol52 origColumn, ActionInsertFactCol52 editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(ActionSetFieldCol52 origColumn, ActionSetFieldCol52 editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(ActionWorkItemSetFieldCol52 origColumn, ActionWorkItemSetFieldCol52 editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(ActionRetractFactCol52 origColumn, ActionRetractFactCol52 editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(ActionWorkItemCol52 origColumn, ActionWorkItemCol52 editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(BRLActionColumn origColumn, BRLActionColumn editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(BRLConditionColumn origColumn, BRLConditionColumn editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(LimitedEntryBRLConditionColumn origColumn, LimitedEntryBRLConditionColumn editColumn)
origColumn
- The existing column in the grideditColumn
- A copy of the original column containing the modified valuespublic void updateColumn(LimitedEntryBRLActionColumn origColumn, LimitedEntryBRLActionColumn editColumn)
origColumn
- The existing column in the grideditColumn
- A copy 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 relatedorigColumn
- 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()
public void analyze()
public void movePattern(CompositeColumn<?> pattern, int patternTargetIndex)
pattern
- The Pattern to which the Condition relatespatternTargetIndex
- The index to which the pattern will be movedpublic void moveCondition(Pattern52 pattern, ConditionCol52 condition, int conditionTargetIndex)
pattern
- The Pattern to which the Condition relatescondition
- The Condition being movedconditionIndex
- The index in the pattern to which the column will be movedpublic void moveAction(ActionCol52 action, int actionTargetIndex)
action
- The Action being movedactionIndex
- The index in the model to which the column will be movedpublic void onDeleteRow(DeleteRowEvent event)
onDeleteRow
in interface DeleteRowEvent.Handler
public void onInsertRow(InsertRowEvent event)
onInsertRow
in interface InsertRowEvent.Handler
public void onCopyRows(CopyRowsEvent event)
onCopyRows
in interface CopyRowsEvent.Handler
public void onPasteRows(PasteRowsEvent event)
onPasteRows
in interface PasteRowsEvent.Handler
public void onAppendRow(AppendRowEvent event)
onAppendRow
in interface AppendRowEvent.Handler
public void onDeleteColumn(DeleteColumnEvent event)
onDeleteColumn
in interface DeleteColumnEvent.Handler
public void onInsertColumn(InsertColumnEvent<BaseColumn,DTCellValue52> event)
onInsertColumn
in interface InsertColumnEvent.Handler<BaseColumn,DTCellValue52>
public void onSelectedCellChange(SelectedCellChangeEvent event)
onSelectedCellChange
in interface SelectedCellChangeEvent.Handler
protected abstract void setEnableOtherwiseButton(boolean isEnabled)
public void onMoveColumns(MoveColumnsEvent event)
onMoveColumns
in interface MoveColumnsEvent.Handler
public void onUpdateModel(UpdateModelEvent event)
onUpdateModel
in interface UpdateModelEvent.Handler
|
Guvnor web application Drools 6.0.0-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |