Klasse NoVNCConsole
java.lang.Object
com.vaadin.flow.component.Component
de.bytestore.hostinger.components.novnc.NoVNCConsole
- Alle implementierten Schnittstellen:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,Serializable
@Tag("novnc-console")
@NpmPackage(value="jquery",version="1.9.1") @NpmPackage(value="@novnc/novnc",version="1.4.0")
@CssImport("./src/novnc-console/novnc-console.css")
@JsModule("./src/novnc-console/novnc-console.js")
public class NoVNCConsole
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasSize
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class -
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidconnect()Connects to the specified server.voidDisconnects the connection to the server.Returns the hostname value for the NoVNCConsole.booleanReturns whether the NoVNCConsole is currently connected.booleanReturns the read-only state of the NoVNCConsole.voidsetFullscreen(boolean valueIO) Sets the fullscreen state of the NoVNCConsole.voidsetHostname(String valueIO) Sets the hostname value for the NoVNCConsole.voidsetPassword(String valueIO) Sets the password value for the NoVNCConsole.voidsetReadOnly(boolean valueIO) Sets the read-only state of the NoVNCConsole.voidsetUsername(String valueIO) Sets the username value for the NoVNCConsole.Von Klasse geerbte Methoden com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden com.vaadin.flow.component.AttachNotifier
addAttachListenerVon Schnittstelle geerbte Methoden com.vaadin.flow.component.DetachNotifier
addDetachListenerVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasElement
getElementVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullVon Schnittstelle geerbte Methoden com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Felddetails
-
VALUE_HOSTNAME
- Siehe auch:
-
VALUE_READONLY
- Siehe auch:
-
VALUE_FULLSCREEN
- Siehe auch:
-
VALUE_PASSWORD
- Siehe auch:
-
VALUE_USERNAME
- Siehe auch:
-
VALUE_CONNECTION
- Siehe auch:
-
EVENT_CONNECTION_CHANGED
- Siehe auch:
-
-
Konstruktordetails
-
NoVNCConsole
public NoVNCConsole()
-
-
Methodendetails
-
getHostname
Returns the hostname value for the NoVNCConsole.- Gibt zurück:
- the hostname value, or null if not set
-
setHostname
Sets the hostname value for the NoVNCConsole.- Parameter:
valueIO- the new hostname value to be set
-
isConnected
@Synchronize(property="connection", value="novnc-connection-changed") public boolean isConnected()Returns whether the NoVNCConsole is currently connected.- Gibt zurück:
- true if the NoVNCConsole is connected, false if not connected
-
setPassword
Sets the password value for the NoVNCConsole.- Parameter:
valueIO- the new password value to be set- Siehe auch:
-
-
ungültiges @see
NoVNCConsole#getPassword()
-
-
setUsername
Sets the username value for the NoVNCConsole.- Parameter:
valueIO- the new username value to be set
-
isReadOnly
public boolean isReadOnly()Returns the read-only state of the NoVNCConsole.- Gibt zurück:
- true if the NoVNCConsole is read-only, false otherwise
-
setReadOnly
public void setReadOnly(boolean valueIO) Sets the read-only state of the NoVNCConsole.- Parameter:
valueIO- the boolean value indicating whether the NoVNCConsole should be set as read-only
-
setFullscreen
public void setFullscreen(boolean valueIO) Sets the fullscreen state of the NoVNCConsole.- Parameter:
valueIO- the boolean value indicating whether the NoVNCConsole should be set as fullscreen
-
connect
public void connect()Connects to the specified server. -
disconnect
public void disconnect()Disconnects the connection to the server. This method calls the "disconnect" JavaScript function of the associated element.
-