Class ExtensionUiBuilder

java.lang.Object
ch.ivyteam.ivy.process.extension.ui.ExtensionUiBuilder

public class ExtensionUiBuilder extends Object
The facade to create custom UI widgets for Third-Party Editors on Programmable elements.
Since:
9.4
See Also:
API:
This is a public API.
  • Method Details

    • label

      Creates a label widget for your inscription editor.

      Examples

      Simple label before an input field:
      ui.label("maximum retry attempts").create();

      Large help text:
      help = ui.label("Lorem ipsum dolor...").multiline().create();

      Parameters:
      text - to be shown on the label to be created.
      Returns:
      a builder for this label widget. Don't forget to call create() when all your configs are set.
      API:
      This public API is available in Java.
    • scriptField

      public ExtensionUiBuilder.ScriptBuilder scriptField(String configKey)
      Creates a new Ivy Script widget for your inscription editor.

      Examples

      Ivy Script Expression field, expecting a Number as return value:
      timeoutSeconds = ui.scriptField("timeout").requiredType(Number.class).create();

      Ivy Script Code Block:
      action = ui.scriptField("action").multiline().create();

      Returns:
      a builder for this scriptField widget. Don't forget to call create() when all your configs are set.
      API:
      This public API is available in Java.
    • scriptField

      @Deprecated(forRemoval=true, since="11.2") public ExtensionUiBuilder.ScriptBuilder scriptField()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use scriptField(String) instead.
      API:
      This public API is available in Java.
    • textField

      public ExtensionUiBuilder.TextBuilder textField(String configKey)
      Creates a new text widget for your inscription editor.

      Examples

      Single line text editor:
      name = ui.textField("name").create();

      Text block:
      extension description = ui.textField("description").multiline().create();

      Returns:
      a builder for this textField widget. Don't forget to call create() when all your configs are set.
      API:
      This public API is available in Java.
    • textField

      @Deprecated(forRemoval=true, since="11.2") public ExtensionUiBuilder.TextBuilder textField()
      Deprecated, for removal: This API element is subject to removal in a future version.
      use scriptField(String) instead.
      API:
      This public API is available in Java.