Start page / Plug-In Development / Universal Extensions / Input Components / ContentCreator / Web Gadget Aspects (Server)
Web Gadget Aspects (Server-Side)
Gadget aspects extend the functional abilities of an input component within ContentCreator's user interface and interaction scheme.
For example, an input component may implement the functionality of the aspect SerializingValueHolder to support persisting input component data.
Providing Aspects
The aspect provisioning process requires implementation of a method <T> T getAspect(AspectType<T> aspect) within the web gadget's WebPluginGadget implementation.
ContentCreator occasionally calls the method getAspect(...) with various aspect types as a parameter to identify which input components support a given aspect. If the web gadget supports the requested aspect, the method should return an object which implements that aspect; otherwise, it should return null.
Gadget Aspects by Category
ContentCreator Gadget Aspects | ||
---|---|---|
Editing and storing component values | ||
Aspect | Description | Methods / Notes |
Enables storing the component's data using FirstSpirit's persistence functionality and retrieving such data for display in the component. | T getValue() | |
Drag and drop | ||
Aspect | Description | Methods / Notes |
This aspect enables a web gadget to receive transfer data of a drag and drop operation completed by a drop action on this gadget, allowing it to process that data. | ||