pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.site.map
Class SitemapMenuController

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.site.map.SitemapMenuController
All Implemented Interfaces:
DeprecatedConfigurable

public final class SitemapMenuController
extends Controller
implements DeprecatedConfigurable

displays the visible part of the Sitemap for the Locale of the current ServiceRequest.

The configuration of the SitemapMenuController offers a choice of two different menu generation schemes:

  1. tree, for a tree like menu with the expanded to the current SitemapNode
  2. compact, for a three level display, showing the current SitemapNode and its neighboring nodes.

When the action of the Command equals <em>sitemap</em>, the complete visible Sitemap is returned.

Version:
$Revision: 1914 $
Author:
Thomas Weber

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
SitemapMenuController()
           
 
Method Summary
 void init(ConfigBean c)
          used to initialise the bundle from its configuration.
 MenuResult run(ServiceRequest request)
          displays the visible part of the Sitemap for the Locale of the current ServiceRequest.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitemapMenuController

public SitemapMenuController()
Method Detail

init

public void init(ConfigBean c)
Description copied from interface: DeprecatedConfigurable
used to initialise the bundle from its configuration.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the configuration

run

@AnyAction
public MenuResult run(ServiceRequest request)
displays the visible part of the Sitemap for the Locale of the current ServiceRequest.

Parameters:
request - the current ServiceRequest
Returns:
the MenuResult