public class NavHelper extends Object
Constructor and Description |
---|
NavHelper() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getBinary(String name)
Retrieve binary icon for a plugin
|
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 |
setBinary(String name,
byte[] arr)
Store binary icon for a plugin
|
static void |
unregisterApp(String name) |
public static void registerApp(String name, String path, String tooltip, String iconpath)
name
- pretty name the app will be called in the linkpath
- full path pointing to the application's root
(e.g. /i2ptunnel/index.jsp), non-nulltooltip
- HTML escaped text or nulliconpath
- path-only URL starting with /, HTML escaped, or nullpublic static void unregisterApp(String name)
public static byte[] getBinary(String name)
name
- plugin namepublic static void setBinary(String name, byte[] arr)
name
- plugin namepublic static String getClientAppLinks(I2PAppContext ctx)
ctx
- unusedstatic List<HomeHelper.App> getClientApps(I2PAppContext ctx)
ctx
- unused