Next  

Tiles: A Sample Components

Program Features
Classes

The Tiles project provides an example of a Bean Works component that is more complicated than those provided in the Hello1 through Hello4 projects. A Tiles component allows the user to add "tiles" of predefined types to the component, change the color of selected tiles, and move tiles around the view. The user can also cut and paste selected tiles between Tiles components.

Tiles are of the type "Rock" (circle), "Paper" (square), or "Scissors" (triangle):

Program Features

The program features in the Tiles project code include:

Classes

The Tiles project implements model, view, controller, interface, and command classes, as well as a Tile class to represent each tile. Select any class below to see documented code:

Source code for the Tiles project is in WebRunner\BeanTools\samples\tiles. You can launch a Tiles component by typing run at the command prompt from this directory, or from the "VisualAge WebRunner" program group.


Next  

Copyright © Taligent, Inc. 1996 - 1997.
Copyright
© IBM Corporation 1996 - 1997.
All Rights Reserved.