Class JsWidgetExportedObject
java.lang.Object
io.deephaven.web.client.api.widget.JsWidgetExportedObject
- All Implemented Interfaces:
ServerObject
@TsInterface
@TsName(namespace="dh",
name="WidgetExportedObject")
public class JsWidgetExportedObject
extends Object
implements ServerObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.web.client.api.ServerObject
ServerObject.Union
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Releases the server-side resources associated with this object, regardless of whether other client-side objects exist that also use that object.elemental2.promise.Promise<?>
fetch()
Returns a promise that will fetch the object represented by this reference.@JsNullable String
getType()
Returns the type of this export, typically one ofJsVariableType
, but may also include plugin types.elemental2.promise.Promise<JsWidgetExportedObject>
reexport()
Exports another copy of this reference, allowing it to be fetched separately.
-
Constructor Details
-
JsWidgetExportedObject
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceServerObject
-
getType
Returns the type of this export, typically one ofJsVariableType
, but may also include plugin types. If null, this object cannot be fetched, but can be passed to the server, such as viaJsWidget.sendMessage(JsWidget.MessageUnion, JsArray)
.- Returns:
- the string type of this server-side object, or null.
-
typedTicket
- Specified by:
typedTicket
in interfaceServerObject
-
reexport
Exports another copy of this reference, allowing it to be fetched separately. Results in rejection if the ticket was already closed (either by callingclose()
or closing the object returned fromfetch()
).- Returns:
- a promise returning a reexported copy of this object, still referencing the same server-side object.
-
fetch
@JsMethod public elemental2.promise.Promise<?> fetch()Returns a promise that will fetch the object represented by this reference. Multiple calls to this will return the same instance.- Returns:
- a promise that will resolve to a client side object that represents the reference on the server.
-
close
@JsMethod public void close()Releases the server-side resources associated with this object, regardless of whether other client-side objects exist that also use that object. Should not be called after fetch() has been invoked.
-