Class GridSetEditValueTask

All Implemented Interfaces:
HasHandlers

public class GridSetEditValueTask extends ComponentTask
Sets the edit value of a given field. The targeted row is determined in the following order:
  1. the current edit row
  2. the selected rows
  3. the first row in the grid
  4. a new edit row
See Also:
  • Constructor Details

    • GridSetEditValueTask

      public GridSetEditValueTask()
    • GridSetEditValueTask

      public GridSetEditValueTask(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static GridSetEditValueTask getOrCreateRef(JavaScriptObject jsObj)
    • create

      public JavaScriptObject create()
      Overrides:
      create in class ComponentTask
    • setTargetField

      public GridSetEditValueTask setTargetField(Integer targetField) throws IllegalStateException
      Target field in current edit row to be updated
      Parameters:
      targetField - New targetField value. Default value is null
      Returns:
      GridSetEditValueTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
    • getTargetField

      public Integer getTargetField()
      Target field in current edit row to be updated
      Returns:
      Current targetField value. Default value is null
    • setTargetField

      public GridSetEditValueTask setTargetField(String targetField) throws IllegalStateException
      Target field in current edit row to be updated
      Parameters:
      targetField - New targetField value. Default value is null
      Returns:
      GridSetEditValueTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
    • getTargetFieldAsString

      public String getTargetFieldAsString()
      Target field in current edit row to be updated
      Returns:
      Current targetField value. Default value is null