XHTML
The text appearing in a task panel is coded in XHTML.
You can write the text in either of two ways: by using XHTML formatted text strings (XHTML fragments), or by referencing XHTML files in the Java files.
Use formatted text strings for brief messages and referenced XHTML files for extended text.
This example uses the XHTML fragment format:
@StarAssistantTask(display="Hello Task",
contentFragment="<ul><li>
<a href=\"staraction:hello\">Hello</a>!</li></ul>",
controller=HelloWorld.HelloWorldTask.
HelloWorldTaskController.class)
This example uses an XHTML file:
@StarAssistantTask(display="Create A Continuum With
Pre-defined Models"
contentPath="html/CreateContinuaTask.xhtml",
controller=CreateContinuaTask.
CreateContinuaTaskController.class)
XHTML text can be used only once in a task panel. However, a task panel can display any one of several alternate passages, depending on conditions. For situations like this one, you can use the HTMLFileContent and HTMLFragmentContent classes to specify the alternate text.