Build a custom Classic UI

Users can create their own custom widgets and custom actions for use in their Deephaven Classic workspaces.

Custom Widgets

Widgets are modular components in the GUI that enable users to access information or perform a specific function. For example, plots are one kind of widget, and the web GUI allows users to add Markdown Widgets to their workspaces from the Controls menu. Users can also create their own custom widgets for use in their workspace.

You can create your own custom widgets for various purposes:

  • Custom OneClick filters
  • Order Entry Panels
  • Highly customized views of market data, positions, or any other data within Deephaven

Creating a custom widget requires knowledge of Java and Swing programming techniques. To learn how to design and incorporate your own, see our full tutorial Creating Custom Widgets.

Custom Actions

A Custom Action is a block of custom code (a Groovy closure) that can be run from a table's context menu. Custom Action code is executed in the Deephaven console (the client side), not on the query server. However, the full power of the query language is available in a Custom Action, and all query operations invoked by a Custom Action are still executed on the server.

Because Custom Action code runs in the Deephaven console, it is aware of the rows the user has selected, and can prompt for additional inputs. This is especially useful for updating Input Tables — combining the user's selection, the user's input, and query data allows sophisticated settings and calculations stored in Input Tables to be easily adjusted on the fly. The values in the input table, in turn, can drive further analyses.

To learn how to design and incorporate your own, see our full tutorial Creating Custom Actions.