use of org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView in project drools-wb by kiegroup.
the class ColumnHeaderPopOverHandler method onNodeMouseMove.
@Override
public void onNodeMouseMove(final NodeMouseMoveEvent event) {
columnPopOverPresenter.hide();
for (GuidedDecisionTableView.Presenter dtPresenter : modellerPresenter.getAvailableDecisionTables()) {
final GuidedDecisionTableView dtView = dtPresenter.getView();
if (!dtView.isVisible()) {
continue;
}
final Point2D ap = CoordinateUtilities.convertDOMToGridCoordinate(dtView, new Point2D(event.getX(), event.getY()));
if (!isMouseOverTableHeader(dtView, ap.getY())) {
continue;
}
final Integer uiColumnIndex = getUiColumn(dtView, ap.getX());
if (uiColumnIndex == null) {
continue;
}
columnPopOverPresenter.show(modellerPresenter.getView(), dtPresenter, uiColumnIndex);
}
}
use of org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView in project drools-wb by kiegroup.
the class DeleteCell method clearCells.
@Override
protected void clearCells(final GridWidget gridWidget) {
final GridData gridModel = gridWidget.getModel();
final GridData.SelectedCell origin = gridModel.getSelectedCellsOrigin();
if (origin == null) {
return;
}
if (!(gridWidget instanceof GuidedDecisionTableView)) {
return;
}
final GuidedDecisionTableView view = (GuidedDecisionTableView) gridWidget;
final GuidedDecisionTableView.Presenter dtPresenter = view.getPresenter();
dtPresenter.onDeleteSelectedCells();
}
use of org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView in project drools-wb by kiegroup.
the class SelectionCopy method perform.
@Override
public boolean perform(final GridWidget gridWidget, final boolean isShiftKeyDown, final boolean isControlKeyDown) {
final GridData gridModel = gridWidget.getModel();
final GridData.SelectedCell origin = gridModel.getSelectedCellsOrigin();
if (origin == null) {
return false;
}
if (!(gridWidget instanceof GuidedDecisionTableView)) {
return false;
}
final GuidedDecisionTableView view = (GuidedDecisionTableView) gridWidget;
final GuidedDecisionTableView.Presenter dtPresenter = view.getPresenter();
dtPresenter.onCopy();
return false;
}
Aggregations