Console sample overview
The console sample program demonstrates how to create a console task
extension that can be launched from within Director.
Adding a console task extension is described in
Creating Console Task Extensions and
is just one of the three aspects outlined in
Creating IBM Director Tasks.
Detail of the console sample
IBM Director requires that the TWGTaskFrame class be extended in order
to create a GUI task frame that can be launched from the IBM Director console.
The console sample extends this class and
demonstrates how your organization can create its own task GUI's.
This sample:
-
Creates a GUI task frame that has two buttons and a label as a placeholder for where
your application would normally have their logic.
-
Demonstrates how
you can add help support for your task into the IBM Director help system.
The sample code consists of Java source for the frame and extensions and an
HTML file for the help source.
-
BCSendMsgFrame
-
Extends the
TWGTaskFrame
class to allow this task to be launched from Director.
The BCSendMsgFrame class contains a client area that contains a label and two buttons.
-
BCSendMsgExtension
-
Extends the
TWGExtension
class.
This class is the means by which the server recognizes that an additional
task has been added.
It indicates the property file the server registers for this task.
-
BCResources
-
Defines a resource bundle of strings used by the utility.
-
BCSendMsg.properties
-
Defines the properties of the task.
Among many other items, it specifies the GUI class, how it should appear on
the main console, and title.
Source files of the sample