The dissector requires that the normal menu markup for shard link menus is itself marked up with special dissector specific markup because the dissector decides which parts of the shard link menu are shown after it attempts dissection (either nothing, a next link, a previous link or both).
The extended menu model created by this class contains shard link information which is designed to be picked up by the various ShardLink*Renderers which decorate the normal renderers. These decorating renderers in turn pick out the shard link information in the extended menu model and use this to create the extra shard link specific markup for the dissector around the various parts of the normal menu markup.
As such, this builder must only be used to create menus which are in turn rendered using the ShardLink*Renderers, and vice versa.
Note that shard link menus must render with horizontal orientation by default, unlike normal menus which render vertically by default.
|
|