net.i2p.router.web
Class NavHelper

java.lang.Object
  extended by net.i2p.router.web.NavHelper

public class NavHelper
extends Object


Constructor Summary
NavHelper()
           
 
Method Summary
static String getClientAppLinks(I2PAppContext ctx)
          Translated string is loaded by PluginStarter
(package private) static List<HomeHelper.App> getClientApps(I2PAppContext ctx)
          For HomeHelper
static void registerApp(String name, String path, String tooltip, String iconpath)
          To register a new client application so that it shows up on the router console's nav bar, it should be registered with this singleton.
static void unregisterApp(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavHelper

public NavHelper()
Method Detail

registerApp

public static void registerApp(String name,
                               String path,
                               String tooltip,
                               String iconpath)
To register a new client application so that it shows up on the router console's nav bar, it should be registered with this singleton.

Parameters:
name - pretty name the app will be called in the link
path - full path pointing to the application's root (e.g. /i2ptunnel/index.jsp), non-null
tooltip - HTML escaped text or null
iconpath - path-only URL starting with /, HTML escaped, or null
Since:
0.9.20 added iconpath parameter

unregisterApp

public static void unregisterApp(String name)

getClientAppLinks

public static String getClientAppLinks(I2PAppContext ctx)
Translated string is loaded by PluginStarter

Parameters:
ctx - unused

getClientApps

static List<HomeHelper.App> getClientApps(I2PAppContext ctx)
For HomeHelper

Parameters:
ctx - unused
Returns:
non-null, possibly empty
Since:
0.9