Configuration
To configure and register the widget processor you must:
-
Create a file called
HelloWorldWidgetDefaultViewWidgetProcessor.properties
. -
Enter the following in the file:
$class=com.mycompany.view.processor.HelloWorldWidgetDefaultViewWidgetProcessor viewNames=default
You can specify several view names in
viewNames
, separated by commas. -
Create a file called
HelloWorldWidgetDescriptor.properties
. -
Enter the following in the file:
$class=com.escenic.framework.descriptor.WidgetDescriptor widgetName=helloWorld widgetProcessor.helloWorld.1=/com/mycompany/view/processor/HelloWorldWidgetDefaultViewWidgetProcessor
Note the
.1
on the last line above: you can specify more than one widget processor for a widget. If, for example, you wanted to add a second widget processor to handle acustom
view then you would need to add another entry like this:widgetProcessor.helloWorld.2=/com/mycompany/view/processor/HelloWorldWidgetCustomViewWidgetProcessor
(Of course you would then also need to repeat steps 1 and 2 to configure your
HelloWorldWidgetCustomViewWidgetProcessor
as well.) -
Create a file called
DescriptorRegistry.properties
. -
Enter the following in the file:
$class=com.escenic.framework.descriptor.
DescriptorRegistry
widgetDescriptor.helloWorld=./HelloWorldWidgetDescriptor