Tabnine Logo
DSLVariableValue.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
org.drools.guvnor.models.commons.shared.rule.DSLVariableValue

Best Java code snippets using org.drools.guvnor.models.commons.shared.rule.DSLVariableValue.getValue (Showing top 12 results out of 315)

origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public void setValue( DSLVariableValue value ) {
  this.oldVariableValue = value;
  box.setText( value.getValue() );
}
origin: org.drools/drools-guvnor-models-commons

/**
 * This will strip off any "{" stuff, substituting values accordingly
 */
public String interpolate() {
  getValues();
  if ( definition == null ) {
    return "";
  }
  int variableStart = definition.indexOf( "{" );
  if ( variableStart < 0 ) {
    return definition;
  }
  int index = 0;
  int variableEnd = 0;
  StringBuilder sb = new StringBuilder();
  while ( variableStart >= 0 ) {
    sb.append( definition.substring( variableEnd,
                     variableStart ) );
    variableEnd = getIndexForEndOfVariable( definition,
                        variableStart ) + 1;
    variableStart = definition.indexOf( "{",
                      variableEnd );
    sb.append( values.get( index++ ).getValue() );
  }
  if ( variableEnd < definition.length() ) {
    sb.append( definition.substring( variableEnd ) );
  }
  return sb.toString();
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

private DSLVariableValue visitDSLVariableValue( DSLVariableValue value ) {
  DSLVariableValue clone = new DSLVariableValue();
  clone.setValue( value.getValue() );
  return clone;
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public void refreshDropDownData() {
  resultWidget.setDropDownData( selectedValue.getValue(),
                 getDropDownData() );
}
origin: org.drools/drools-guvnor-models-commons

                    factAndField.length() );
fieldValueMap.put( field,
          values.get( iVariable ).getValue() );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public Widget getBox( DSLVariableValue variableDef,
           String regex,
           boolean readonly ) {
  FieldEditor currentBox = new FieldEditor();
  currentBox.setVisibleLength( variableDef.getValue().length() + 1 );
  currentBox.setValue( variableDef );
  currentBox.setRestriction( regex );
  currentBox.box.setEnabled( !readonly );
  return currentBox;
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

resultWidget = new EnumDropDown( value.getValue(),
                 handler,
                 dropDownData );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public DSLDateSelector( DSLVariableValue selectedDate,
            String dateFormat ) {
  resultWidget = new DatePickerLabel( selectedDate.getValue(),
                    dateFormat );
  resultWidget.addValueChanged( new ValueChanged() {
    public void valueChanged( String newValue ) {
      updateSentence();
      makeDirty();
    }
  } );
  //Wrap widget within a HorizontalPanel to add a space before and after the Widget
  HorizontalPanel hp = new HorizontalPanel();
  hp.add( new HTML( "&nbsp;" ) );
  hp.add( resultWidget );
  hp.add( new HTML( "&nbsp;" ) );
  initWidget( hp );
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void onClick( ClickEvent event ) {
    final CustomFormPopUp customFormPopUp =
        new CustomFormPopUp( GuidedRuleEditorImages508.INSTANCE.Wizard(),
                   Constants.INSTANCE.FieldValue(),
                   DSLCustomFormButton.this.customFormConfiguration );
    customFormPopUp.addOkButtonHandler( new ClickHandler() {
      public void onClick( ClickEvent event ) {
        String id = customFormPopUp.getFormId();
        String value = customFormPopUp.getFormValue();
        btnCustomForm.setText( value );
        selectedValue = new DSLComplexVariableValue( id,
                               value );
        updateSentence();
        makeDirty();
        customFormPopUp.hide();
      }
    } );
    //if selectedValue is an instance of DSLComplexVariableValue,
    //then both id and value are passed to the custom form
    //if not, only the value is passed and "" is passed as id
    if ( selectedValue instanceof DSLComplexVariableValue ) {
      DSLComplexVariableValue complexSelectedValue = (DSLComplexVariableValue) selectedValue;
      customFormPopUp.show( complexSelectedValue.getId(),
                 complexSelectedValue.getValue() );
    } else {
      customFormPopUp.show( "",
                 selectedValue.getValue() );
    }
  }
} );
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public DSLCheckBox( String variableDef,
          DSLVariableValue value ) {
  resultWidget = new ListBox();
  resultWidget.addItem( "true" );
  resultWidget.addItem( "false" );
  if ( value.getValue().equalsIgnoreCase( "true" ) ) {
    resultWidget.setSelectedIndex( 0 );
  } else {
    resultWidget.setSelectedIndex( 1 );
  }
  resultWidget.addChangeHandler( new ChangeHandler() {
    public void onChange( ChangeEvent event ) {
      updateSentence();
      makeDirty();
    }
  } );
  resultWidget.setVisible( true );
  //Wrap widget within a HorizontalPanel to add a space before and after the Widget
  HorizontalPanel hp = new HorizontalPanel();
  hp.add( new HTML( "&nbsp;" ) );
  hp.add( resultWidget );
  hp.add( new HTML( "&nbsp;" ) );
  initWidget( hp );
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

this.btnCustomForm = new Button( selectedValue.getValue() );
origin: org.drools/drools-guvnor-models-commons

assertTrue( values.get( 0 ) instanceof DSLComplexVariableValue );
assertEquals( "rating",
       values.get( 0 ).getValue() );
assertEquals( "ENUM:Applicant.creditRating",
       ( (DSLComplexVariableValue) values.get( 0 ) ).getId() );
org.drools.guvnor.models.commons.shared.ruleDSLVariableValuegetValue

Popular methods of DSLVariableValue

  • <init>
  • setValue

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now