Basic examples
These examples are relatively simple WBI plugins. You can just run them
to try them out or study their source code to learn the basic concepts
of how to program a plugin. We recommend you read the pages on Architecture
and Programming to fully understand plug-in
programming.
Demo
The demo plugin illustrates a few simple ways to use WBI. It is described
at some length in the programming section.
PageFilter
The Page Filter plugin blocks a web browser from displaying sites that are not on
a list of approved sites. This example demonstrates the
use of the Section
class, as well as the use of request editors and generators.
Yahoo
Categories The Yahoo Categories plugin is
designed to keep track of the Yahoo categories a user
visits over time. This example demonstrates the use of
the Section
class, as well as the use of monitors and generators.
AnnotateUrl
This plugin color codes links. It demonstrates use of a setup page to
set plugin preferences and how to put a custom style sheet into every
page using a LinkAnnotationEditor
WebServer
Demonstrates how to write a simple web server using
several of WBI bean classes. This web server is
configurable from a property file and comes set up to
serve the WBI DK documentation. This plugin
demonstartes the use of the Section class, as well as
the use of several beans, such as FileGenerator
and CgiGenerator.
We also have more advanced examples.
|