- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 38 of file HelpContext.java.
◆ exists()
static boolean org.turro.help.HelpContext.exists |
( |
ElContext |
current | ) |
|
|
static |
Definition at line 71 of file HelpContext.java.
72 return help(current)!=
null;
static ElContext help(String path)
◆ getHelpContextAttribute()
static String org.turro.help.HelpContext.getHelpContextAttribute |
( |
String |
attribute, |
|
|
String |
defaultValue |
|
) |
| |
|
static |
Definition at line 79 of file HelpContext.java.
80 return ElephantProperties.getContextProperty(HELP_CONTEXT, attribute, defaultValue);
◆ help() [1/2]
Definition at line 67 of file HelpContext.java.
68 return current !=
null ? ElContextMap.getContext(
getHelpContextAttribute(
"root",
"/docs/contextual") + current.getPath()) :
null;
static String getHelpContextAttribute(String attribute, String defaultValue)
◆ help() [2/2]
static ElContext org.turro.help.HelpContext.help |
( |
String |
path | ) |
|
|
static |
◆ helpLink() [1/2]
static String org.turro.help.HelpContext.helpLink |
( |
ElContext |
current | ) |
|
|
static |
Definition at line 59 of file HelpContext.java.
60 return current !=
null ?
helpLink(current.getPath()) : null;
static String helpLink(String current)
◆ helpLink() [2/2]
static String org.turro.help.HelpContext.helpLink |
( |
String |
current | ) |
|
|
static |
Definition at line 40 of file HelpContext.java.
41 ElContext ctx =
help(current);
42 if(ctx !=
null && ctx.getFile().exists()) {
43 String webPath = ctx.getWebPath();
44 if(webPath.startsWith(
"/")) {
45 try(DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(ElephantContext.getRealPath(ctx.getPath())),
"*.html")) {
46 if(stream.iterator().hasNext()) {
49 }
catch (IOException ex) {
50 Logger.getLogger(HelpContext.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(current), ex);
The documentation for this class was generated from the following file: