Navigation:  Guided Tour > Class Browser >

Protocol Filter Pane

Previous pageReturn to chapter overviewNext page

The Protocols Filter Pane displays a list of the method protocols used by the currently selected class. The protocols for the currently selected method (if any) are highlighted in bold. You can filter the method list display to only show the methods in a particular protocol by selecting the protocol you want in this pane.

Method protocols are the Smalltalk equivalent of Java interfaces. A protocol consists of a series of message selectors that must be implemented by a class if it is to conform to that protocol. In Smalltalk, protocols are advisory only and not enforced.

 

Icons

The filter pane uses icons to distinguish between different types of method protocol:

This is the default protocol icon and would normally be used to represent any protocols that you define yourself.

This is the ANSI protocol icon, which identifies protocols which are part of the ANSI standard for Smalltalk.

This icon indicates that the protocol has been marked as "read only". It is normally used to show protocol that are defined by the Dolphin class library.

Common Operations

You can choose to drag a protocol from this pane and drop it over a class object. This will attempt to make the class conform to the protocol by implementing stub methods for any that are not already available. Various other operations concerning protocols are available using the context menu for this pane.