Class FigureWidgetTypePlugin

All Implemented Interfaces:
Plugin, Registration, ObjectType

@AutoService(ObjectType.class) public final class FigureWidgetTypePlugin extends ObjectTypeClassBase.FetchOnly<FigureWidget>
An object type named "Figure" of java class type FigureWidget.
  • Field Details

  • Constructor Details

    • FigureWidgetTypePlugin

      public FigureWidgetTypePlugin()
  • Method Details

    • writeToImpl

      public void writeToImpl(Exporter exporter, FigureWidget figureWidget, OutputStream out) throws IOException
      Description copied from class: ObjectTypeClassBase.FetchOnly
      Serializes object as bytes to out. Must only be called with a compatible object. Server-side objects that should be sent as references to the client (but not themselves serialized in this payload) can be exported using the exporter - each returned Exporter.Reference will have an index, denoting its position on the array of exported objects to be received by the client.
      Specified by:
      writeToImpl in class ObjectTypeClassBase.FetchOnly<FigureWidget>
      Parameters:
      exporter - the exporter
      figureWidget - the compatible object
      out - the output stream
      Throws:
      IOException - if output stream operations failed, the export will then fail, and the client will get a generic error