Class ConsoleView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<io.jmix.flowui.component.layout.ViewLayout>
io.jmix.flowui.view.StandardView
de.bytestore.hostinger.view.console.ConsoleView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, io.jmix.flowui.fragment.FragmentOwner, Serializable

@Route(value="console/:type/:id", layout=MainView.class) @ViewController("host_Console") @ViewDescriptor("console.xml") public class ConsoleView extends io.jmix.flowui.view.StandardView implements com.vaadin.flow.router.BeforeEnterObserver
Class representing the ConsoleView for managing and interacting with a terminal console. This class handles various functionalities related to terminal console management, including setting up the terminal, managing virtualized objects or machines, handling events, and processing statistics. It also integrates VNC features and manages actions such as start, stop, restart, and pause for the process. Fields in this class include UI components, configurations, services, and state flags related to the console's behavior and settings. The class also incorporates methods to handle interactions, updates, and rendering for the terminal console view. Extends: - io.jmix.flowui.view.StandardView Key methods: - Event handling methods annotated with @Subscribe for managing lifecycle and user actions. - Methods for terminal preparation and setup. - Methods to manage the preferred console display, VNC connections, and rendering statistics. - Action methods for managing the process status (start, stop, restart, pause) and updating the system state.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.jmix.flowui.view.View

    io.jmix.flowui.view.View.AfterCloseEvent, io.jmix.flowui.view.View.BeforeCloseEvent, io.jmix.flowui.view.View.BeforeShowEvent, io.jmix.flowui.view.View.InitEvent, io.jmix.flowui.view.View.PostReadyEvent, io.jmix.flowui.view.View.QueryParametersChangeEvent, io.jmix.flowui.view.View.ReadyEvent, io.jmix.flowui.view.View.RestoreComponentsStateEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
     
    void
    onBeforeShow(io.jmix.flowui.view.View.BeforeShowEvent event)
    Handles the event triggered before the view is shown.
    void
    onInit(io.jmix.flowui.view.View.InitEvent event)
     
    void
    onPerformanceDetailsOpenedChange(com.vaadin.flow.component.details.Details.OpenedChangeEvent event)
     
    void
    onReady(io.jmix.flowui.view.View.ReadyEvent event)
    Handles the onReady event.

    Methods inherited from class io.jmix.flowui.view.View

    afterNavigation, beforeLeave, close, close, closeWithDefaultAction, getId, getPageTitle, isPreventBrowserTabClosing, setId, setPageTitle, setPreventBrowserTabClosing

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement

    Methods inherited from class com.vaadin.flow.component.Component

    findAncestor, from, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, isAttached, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, setVisible

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • ConsoleView

      public ConsoleView()
  • Method Details

    • onInit

      @Subscribe public void onInit(io.jmix.flowui.view.View.InitEvent event)
    • onPerformanceDetailsOpenedChange

      @Subscribe("performanceDetails") public void onPerformanceDetailsOpenedChange(com.vaadin.flow.component.details.Details.OpenedChangeEvent event)
    • onReady

      @Subscribe public void onReady(io.jmix.flowui.view.View.ReadyEvent event)
      Handles the onReady event. Subscribes to the ReadyEvent and performs certain actions based on the event.
      Parameters:
      event - the ReadyEvent
    • onBeforeShow

      @Subscribe public void onBeforeShow(io.jmix.flowui.view.View.BeforeShowEvent event)
      Handles the event triggered before the view is shown. Executes actions based on the current process status and prepares the terminal for use with a background task.
      Parameters:
      event - the BeforeShowEvent representing the event fired before the view is displayed
    • beforeEnter

      public void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler
      Overrides:
      beforeEnter in class io.jmix.flowui.view.View<io.jmix.flowui.component.layout.ViewLayout>