Dynamic Web Development with Seaside

Buy PDF Buy Print

2.4.1Defining a Category

To start with, we define a new category that will contain the class that defines our component. Open a class browser using World | Class Browser. Raise the context menu for the category pane and select Add category.... The menu can be found by clicking onto the little square above the scrollbar in the list pane or by right-clicking onto the list pane itself. You will get prompted to give a name as shown in Figure 3. We will use the name WebCounter for our category.

Create a category

Figure 4 shows that the category has been created. Now we are ready to define a component.

An empty category has been created

In Pharo and Squeak images you will often find the terms “Package” and “Category‘” used interchangeably. “Category” is a technical term based on the internal implementation, while “Package” better describes the intent of this pane. From now on, we will be using the term “Package”.

Add a Note

Copyright © 8 September 2010 Stéphane Ducasse, Lukas Renggli, C. David Shaffer, Rick Zaccone
This book is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.

This book is published using Seaside, Magritte and the Pier book publishing engine.