Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2011 JBoss Inc
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.drools.workbench.screens.guided.dtable.client.wizard.pages;
Base page for the guided Decision Table Wizard
        WizardPage {
    protected static final String NEW_FACT_PREFIX = "f";
    protected final SimplePanel content = new SimplePanel();
    protected NewAssetWizardContext context;
    protected GuidedDecisionTable52 model;
    protected Validator validator;
    protected DTCellValueUtilities cellUtils;
    protected PackageDataModelOracle oracle;
    public Widget asWidget() {
        return ;
    public void setContentfinal NewGuidedDecisionTableAssetWizardContext context,
                            final PackageDataModelOracle oracle,
                            final GuidedDecisionTable52 model,
                            final Validator validator ) {
        this. = context;
        this. = oracle;
        this. = model;
        this. = validator;
        this. = new DTCellValueUtilitiesthis.,
                                                   this. );
        this. = new GuidedDecisionTableUtilsthis.,
                                                        this. );
    public Validator getValidator() {
        return this.;

When the Widget is finished a GuidedDecisionTable52 instance is passed to each page for enrichment. Some pages are able to work on this instance directly (i.e. the model is suitable for direct use in the page, such as FactPatternsPage) however others maintain their own representation of the model that must be copied into the GuidedDecisionTable52.

    public void makeResultfinal GuidedDecisionTable52 model ) {
        //Default implementation does nothing

Check whether empty values are permitted

True if empty values are permitted
    protected boolean allowEmptyValues() {
New to GrepCode? Check out our FAQ X