Package Torello.Browser.BrowserAPI
Class Page.VisualViewport
- java.lang.Object
-
- Torello.Browser.BaseType<Page.VisualViewport>
-
- Torello.Browser.BrowserAPI.Page.VisualViewport
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- Page
public static class Page.VisualViewport extends BaseType<Page.VisualViewport> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in thePagedomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Visual viewport position, dimensions, and scale.- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/Page.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/Page.java
File Size: 2,919 Bytes Line Count: 74 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: Page$$VisualViewport$$.java
- Open New Browser-Tab: Page$$VisualViewport$$.java
File Size: 10,986 Bytes Line Count: 265 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description NumberclientHeightHeight (CSS pixels), excludes scrollbar if present.NumberclientWidthWidth (CSS pixels), excludes scrollbar if present.NumberoffsetXHorizontal offset relative to the layout viewport (CSS pixels).NumberoffsetYVertical offset relative to the layout viewport (CSS pixels).NumberpageXHorizontal offset relative to the document (CSS pixels).NumberpageYVertical offset relative to the document (CSS pixels).NumberscaleScale relative to the ideal viewport (size at width=device-width).NumberzoomPage zoom factor (CSS to device independent pixels ratio).
-
Constructor Summary
Constructors Constructor Description VisualViewport(ReadOnlyList<Boolean> isPresent, Number offsetX, Number offsetY, Number pageX, Number pageY, Number clientWidth, Number clientHeight, Number scale, Number zoom)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static Page.VisualViewportfromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<Page.VisualViewport>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
offsetX
public final java.lang.Number offsetX
Horizontal offset relative to the layout viewport (CSS pixels).
-
offsetY
public final java.lang.Number offsetY
Vertical offset relative to the layout viewport (CSS pixels).
-
pageX
public final java.lang.Number pageX
Horizontal offset relative to the document (CSS pixels).
-
pageY
public final java.lang.Number pageY
Vertical offset relative to the document (CSS pixels).
-
clientWidth
public final java.lang.Number clientWidth
Width (CSS pixels), excludes scrollbar if present.
-
clientHeight
public final java.lang.Number clientHeight
Height (CSS pixels), excludes scrollbar if present.
-
scale
public final java.lang.Number scale
Scale relative to the ideal viewport (size at width=device-width).
-
zoom
public final java.lang.Number zoom
Page zoom factor (CSS to device independent pixels ratio).
OPTIONAL
-
-
Constructor Detail
-
VisualViewport
public VisualViewport(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.Number offsetX, java.lang.Number offsetY, java.lang.Number pageX, java.lang.Number pageY, java.lang.Number clientWidth, java.lang.Number clientHeight, java.lang.Number scale, java.lang.Number zoom)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static Page.VisualViewport fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<Page.VisualViewport> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-