Class SwitchTabRequest

java.lang.Object
velox.api.layer1.messages.tab.SwitchTabRequest

public final class SwitchTabRequest extends Object
This message is used to create a request to switch to a tab in the application. Send created message via Layer1ApiAdminProvider.sendUserMessage(Object) and receive a SwitchTabResponse as a response to get the result of tab switching.
  • Method Details

    • of

      public static SwitchTabRequest of(String alias)
      Creates a request that switches to the tab of the given alias and activates the window containing it, equivalent to of(alias, true).
    • of

      public static SwitchTabRequest of(String alias, boolean activateWindow)
      Creates a request that switches to the tab of the given alias.
      Parameters:
      activateWindow - if true, the window containing the tab is brought to the front, restored if minimized, and may take input focus from the currently active window; if false, the tab is switched without raising, restoring or focusing any window
    • alias

      public String alias()
    • activateWindow

      public boolean activateWindow()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object