Configuration

To configure and register the widget processor you must:

  1. Create a file called HelloWorldWidgetDefaultViewWidgetProcessor.properties.

  2. 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.

  3. Create a file called HelloWorldWidgetDescriptor.properties.

  4. 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 a custom 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.)

  5. Create a file called DescriptorRegistry.properties.

  6. Enter the following in the file:

    $class=com.escenic.framework.descriptor.DescriptorRegistry
    widgetDescriptor.helloWorld=./HelloWorldWidgetDescriptor