Interface OKCode

All Superinterfaces:
Clickable, DoubleClickable, EnabledProvider, LocationInfoProvider, SupportDragAndDrop, SupportSendKeys, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilEnabledProvider, WaitUntilVisibleProvider

public interface OKCode extends UiObjectBase
An OK Code box in a SAP NetWeaver Business Client application.
  • Method Details

    • setText

      void setText(String text) throws GeneralLeanFtException
      Sets the value of the edit box.
      Parameters:
      text - The text to be entered in the edit box.
      Throws:
      GeneralLeanFtException - if an error occurs during the operation.
    • submit

      void submit() throws GeneralLeanFtException
      Submits the entered information.
      Throws:
      GeneralLeanFtException - if an error occurs during the operation.
    • setSingleLineSelection

      void setSingleLineSelection(int columnFrom, int ColumnTo) throws GeneralLeanFtException
      Selects the text in a single-line edit box. All positions are 0-based.
      Parameters:
      columnFrom - The column at which the selection starts (in characters).
      ColumnTo - The column at which the selection ends (in characters).
      Throws:
      GeneralLeanFtException
    • setMultiLineSelection

      void setMultiLineSelection(int lineFrom, int columnFrom, int lineTo, int ColumnTo) throws GeneralLeanFtException
      Selects the text in a multi-line edit box. All positions are 0-based.
      Parameters:
      lineFrom - The line at which the selection starts.
      columnFrom - The column at which the selection starts (in characters).
      lineTo - The line at which the selection ends.
      ColumnTo - The column at which the selection ends (in characters).
      Throws:
      GeneralLeanFtException
    • supportsTextSelection

      boolean supportsTextSelection() throws GeneralLeanFtException
      Indicates whether the edit box supports text selection.
      Returns:
      true if the edit box supports text selection; otherwise, false.
      Throws:
      GeneralLeanFtException