com.smartgwt.client.widgets

## Class DataContextBinding

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.widgets.DataContextBinding

- All Implemented Interfaces:
    com.google.gwt.event.shared.HasHandlers

      public class DataContextBinding
      extends DataClass

  Identical to a `DataContext` but in addition to fixed values, `ruleContext` values can be specified by prefixing the `ruleContext` path with `$ruleScope.` as shown below:

  For example, in SmartGWT:

          Record customerRecord = new Record();
          customerRecord.setAttribute("customerNumber", "$ruleScope.customerGrid.values.customerNumber");

          DataContext dataContext = new DataContext();
          dataContext.addMapping("Customer", customerRecord);

  When used within a Workflow `SetScreenDataTask` or `AddScreenTask`, any applicable `TaskInputExpression` can be used as a value.

  To use a literal value that starts with one of the expressions described above, prefix the leading dollar sign ($) with a backslash (\) (ex. "\$ruleScope.goes.here") to prevent the value from being resolved as an expression.

- - ### Field Summary

    - ### Fields inherited from class com.smartgwt.client.core.DataClass

      `factoryCreated, factoryProperties`

    - ### Fields inherited from class com.smartgwt.client.core.JsObject

      `jsObj`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DataContextBinding()`
    `DataContextBinding(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static DataContextBinding` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`

    - ### Methods inherited from class com.smartgwt.client.core.DataClass

      `applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated`

    - ### Methods inherited from class com.smartgwt.client.core.JsObject

      `equals, getJsObj, hashCode, isCreated, setJavaScriptObject, setJsObj`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DataContextBinding

          public DataContextBinding()

    - #### DataContextBinding

          public DataContextBinding(com.google.gwt.core.client.JavaScriptObject jsObj)

  - ### Method Detail

    - #### getOrCreateRef

          public static DataContextBinding getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)