Class XTermBase

java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.xterm.XTermBase
All Implemented Interfaces:
ITerminal, ITerminalOptions, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable
Direct Known Subclasses:
XTerm

@NpmPackage(value="xterm", version="5.1.0") @JsModule("./fc-xterm/xterm-element.ts") @CssImport("xterm/css/xterm.css") public abstract class XTermBase extends com.vaadin.flow.component.Component implements ITerminal, ITerminalOptions, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasEnabled
Server-side component for the XTerm component.
See Also:
  • Constructor Details

    • XTermBase

      public XTermBase()
      Constructs a new instance of XTerm
  • Method Details

    • executeJs

      protected void executeJs(String expression, Serializable... parameters)
    • addCustomKeyListener

      public com.vaadin.flow.shared.Registration addCustomKeyListener(com.vaadin.flow.dom.DomEventListener listener, com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier... modifiers)
      Add a server-side key listener. This method is equivalent to calling addCustomKeyListener(DomEventListener, Key, KeyModifier...) with a KeyLocation of null.
      Returns:
      a registration for the listener.
    • addCustomKeyListener

      public com.vaadin.flow.shared.Registration addCustomKeyListener(com.vaadin.flow.dom.DomEventListener listener, com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyLocation location, com.vaadin.flow.component.KeyModifier... modifiers)
      Add a server-side key listener.
      Returns:
      a registration for the listener.
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface com.vaadin.flow.component.HasEnabled