Package io.deephaven.web.client.ide
Class IdeSession
java.lang.Object
io.deephaven.web.client.api.event.HasEventHandling
io.deephaven.web.client.ide.IdeSession
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.web.client.api.event.HasEventHandling
HasEventHandling.EventPair<T>
-
Field Summary
FieldsFields inherited from class io.deephaven.web.client.api.event.HasEventHandling
INTERNAL_EVENT_RELEASED
-
Constructor Summary
ConstructorsConstructorDescriptionIdeSession
(WorkerConnection connection, Ticket connectionResult, JsRunnable closer) -
Method Summary
Modifier and TypeMethodDescriptionelemental2.promise.Promise<Void>
bindTableToVariable
(JsTable table, String name) void
changeDocument
(Object params) void
close()
void
closeDocument
(Object params) elemental2.promise.Promise<JsTable>
emptyTable
(double size) Creates an empty table with the specified number of rows.elemental2.promise.Promise<elemental2.core.JsArray<CompletionItem>>
getCompletionItems
(Object params) elemental2.promise.Promise<JsFigure>
Load the named Figure, including its tables and tablemaps as needed.elemental2.promise.Promise<JsTreeTable>
getHierarchicalTable
(String name) elemental2.promise.Promise<Hover>
elemental2.promise.Promise<?>
getObject
(@TsTypeRef(JsVariableDescriptor.class) jsinterop.base.JsPropertyMap<Object> definitionObject) elemental2.promise.Promise<JsPartitionedTable>
getPartitionedTable
(String name) elemental2.promise.Promise<?>
getSharedObject
(SharedExportBytesUnion sharedTicketBytes, String type) Reads an object shared by another client to this server with thesharedTicketBytes
.elemental2.promise.Promise<elemental2.core.JsArray<SignatureInformation>>
getSignatureHelp
(Object params) elemental2.promise.Promise<JsTable>
Load the named table, with columns and size information already fully populated.elemental2.promise.Promise<JsTreeTable>
getTreeTable
(String name) Loads the named tree table or roll-up table, with column data populated.elemental2.promise.Promise<JsTable>
mergeTables
(JsTable[] tables) Merges the given tables into a single table.elemental2.promise.Promise<JsTable>
onLogMessage
(JsConsumer<LogItem> callback) void
openDocument
(Object params) elemental2.promise.Promise<SharedExportBytesUnion>
shareObject
(ServerObject.Union object, SharedExportBytesUnion sharedTicketBytes) Makes theobject
available to another user or another client on this same server which knows the value of thesharedTicketBytes
.subscribeToFieldUpdates
(JsConsumer<JsVariableChanges> callback) elemental2.promise.Promise<JsTable>
timeTable
(double periodNanos, DateWrapper startTime) Creates a new table that ticks automatically every "periodNanos" nanoseconds.Methods inherited from class io.deephaven.web.client.api.event.HasEventHandling
addEventListener, addEventListenerOneShot, addEventListenerOneShot, failureHandled, fireCriticalEvent, fireCriticalEvent, fireEvent, fireEvent, fireEvent, hasListener, hasListeners, isSuppress, logPrefix, nextEvent, removeEventListener, suppressEvents, unsuppressEvents
-
Field Details
-
EVENT_COMMANDSTARTED
- See Also:
-
EVENT_REQUEST_FAILED
- See Also:
-
-
Constructor Details
-
Method Details
-
getTable
public elemental2.promise.Promise<JsTable> getTable(String name, @JsOptional Boolean applyPreviewColumns) Load the named table, with columns and size information already fully populated.- Parameters:
name
-applyPreviewColumns
- optional boolean- Returns:
Promise
ofJsTable
-
getFigure
Load the named Figure, including its tables and tablemaps as needed.- Parameters:
name
-- Returns:
- promise of dh.plot.Figure
-
getTreeTable
Loads the named tree table or roll-up table, with column data populated. All nodes are collapsed by default, and size is presently not available until the viewport is first set.- Parameters:
name
-- Returns:
Promise
ofJsTreeTable
-
getHierarchicalTable
-
getPartitionedTable
-
getObject
public elemental2.promise.Promise<?> getObject(@TsTypeRef(JsVariableDescriptor.class) @TsTypeRef(JsVariableDescriptor.class) jsinterop.base.JsPropertyMap<Object> definitionObject) -
newTable
-
mergeTables
Merges the given tables into a single table. Assumes all tables have the same structure.- Parameters:
tables
-- Returns:
Promise
ofJsTable
-
bindTableToVariable
-
close
public void close() -
runCode
-
openDocument
-
changeDocument
-
getCompletionItems
public elemental2.promise.Promise<elemental2.core.JsArray<CompletionItem>> getCompletionItems(Object params) -
getSignatureHelp
public elemental2.promise.Promise<elemental2.core.JsArray<SignatureInformation>> getSignatureHelp(Object params) -
getHover
-
closeDocument
-
emptyTable
Creates an empty table with the specified number of rows. Optionally columns and types may be specified, but all values will be null.- Parameters:
size
-- Returns:
Promise
ofJsTable
-
timeTable
public elemental2.promise.Promise<JsTable> timeTable(double periodNanos, @JsOptional DateWrapper startTime) Creates a new table that ticks automatically every "periodNanos" nanoseconds. A start time may be provided; if so the table will be populated with the interval from the specified date until now.- Parameters:
periodNanos
-startTime
-- Returns:
Promise
ofJsTable
-