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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) voidonBeforeShow(io.jmix.flowui.view.View.BeforeShowEvent event) Handles the event triggered before the view is shown.voidonInit(io.jmix.flowui.view.View.InitEvent event) voidonPerformanceDetailsOpenedChange(com.vaadin.flow.component.details.Details.OpenedChangeEvent event) voidonReady(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, setPreventBrowserTabClosingMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
findAncestor, from, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, isAttached, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, setVisibleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods 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:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler- Overrides:
beforeEnterin classio.jmix.flowui.view.View<io.jmix.flowui.component.layout.ViewLayout>
-