Class AIDataQuestionItem

All Implemented Interfaces:
HasHandlers, HasBlurHandlers, HasChangedHandlers, HasChangeHandlers, HasClickHandlers, HasDoubleClickHandlers, HasEditorEnterHandlers, HasEditorExitHandlers, HasFocusHandlers, HasIconClickHandlers, HasIconKeyPressHandlers, HasItemHoverHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasPendingStatusChangedHandlers, HasPickerIconClickHandlers, HasShowContextMenuHandlers, HasTitleClickHandlers, HasTitleDoubleClickHandlers, HasTitleHoverHandlers, HasValueHoverHandlers, HasValueIconClickHandlers

public class AIDataQuestionItem extends FormItem
A form item for managing existing, as well as creating new, Answer Engine DataQuestions.
  • Constructor Details

    • AIDataQuestionItem

      public AIDataQuestionItem()
    • AIDataQuestionItem

      public AIDataQuestionItem(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static AIDataQuestionItem getOrCreateRef(JavaScriptObject jsObj)
    • changeAutoChildDefaults

      public static void changeAutoChildDefaults(String autoChildName, Canvas defaults)
      Changes the defaults for Canvas AutoChildren named autoChildName.
      Parameters:
      autoChildName - name of an AutoChild to customize the defaults for.
      defaults - Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see SGWTProperties.
      See Also:
    • changeAutoChildDefaults

      public static void changeAutoChildDefaults(String autoChildName, FormItem defaults)
      Changes the defaults for FormItem AutoChildren named autoChildName.
      Parameters:
      autoChildName - name of an AutoChild to customize the defaults for.
      defaults - FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see SGWTProperties.
      See Also:
    • changePickerIconDefaults

      public static void changePickerIconDefaults(FormItemIcon defaults)
    • setAnswerEngineOperationProperties

      public AIDataQuestionItem setAnswerEngineOperationProperties(AnswerEngineOperation answerEngineOperationProperties)
      Properties to apply to new AnswerEngineOperation instances created by this item. Note that AnswerEngineOperation.dataQuestion, if specified, will be replaced.
      Parameters:
      answerEngineOperationProperties - New answerEngineOperationProperties value. Default value is null
      Returns:
      AIDataQuestionItem instance, for chaining setter calls
      See Also:
    • getAnswerEngineOperationProperties

      public AnswerEngineOperation getAnswerEngineOperationProperties()
      Properties to apply to new AnswerEngineOperation instances created by this item. Note that AnswerEngineOperation.dataQuestion, if specified, will be replaced.
      Returns:
      Current answerEngineOperationProperties value. Default value is null
    • setDataQuestionSettings

      public AIDataQuestionItem setDataQuestionSettings(DataQuestionSettings dataQuestionSettings)
      Settings to use for new DataQuestion objects created directly or indirectly by this item.
      Parameters:
      dataQuestionSettings - New dataQuestionSettings value. Default value is null
      Returns:
      AIDataQuestionItem instance, for chaining setter calls
    • getDataQuestionSettings

      public DataQuestionSettings getDataQuestionSettings()
      Settings to use for new DataQuestion objects created directly or indirectly by this item.
      Returns:
      Current dataQuestionSettings value. Default value is null
    • setShouldSaveValue

      public AIDataQuestionItem setShouldSaveValue(Boolean shouldSaveValue)
      By default, the value of this item is not saved with the form. Set to true and give this item a name to cause the data value (the DataQuestion.ID) to be saved.
      Overrides:
      setShouldSaveValue in class FormItem
      Parameters:
      shouldSaveValue - New shouldSaveValue value. Default value is false
      Returns:
      AIDataQuestionItem instance, for chaining setter calls
    • getShouldSaveValue

      public Boolean getShouldSaveValue()
      By default, the value of this item is not saved with the form. Set to true and give this item a name to cause the data value (the DataQuestion.ID) to be saved.
      Overrides:
      getShouldSaveValue in class FormItem
      Returns:
      Current shouldSaveValue value. Default value is false
    • setDefaultProperties

      public static void setDefaultProperties(AIDataQuestionItem aIDataQuestionItemProperties)
      Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties of the class instance passed to this function. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.

      Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.

      Parameters:
      aIDataQuestionItemProperties - properties that should be used as new defaults when instances of this class are created
      See Also: