- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 34 of file WebActions.java.
◆ constructor()
◆ execute()
void org.turro.elephant.web.actions.WebActions.execute |
( |
| ) |
throws IOException |
Definition at line 110 of file WebActions.java.
113 switch(wl.getType()) {
114 case NAVIGATE -> constructor.
redirect(wl.getUrl());
115 case URL, MAIL, TEL -> constructor.
redirect(wl.getUrl());
116 case ACTION -> constructor.
redirect(wl.getUrl());
117 case TAG -> constructor.
redirect(wl.getUrl());
void redirect(String path)
◆ image()
WebActions org.turro.elephant.web.actions.WebActions.image |
( |
String |
image | ) |
|
◆ link()
WebLink org.turro.elephant.web.actions.WebActions.link |
( |
| ) |
|
Definition at line 46 of file WebActions.java.
47 WebActionType type = WebActionType.typeOf(action);
49 String command = WebActionType.actionOf(action);
50 if(image ==
null) image = WebActionType.imageOf(action);
51 String caption =
null, url =
null, icon =
null;
54 ElContext elctx = ElContextMap.getContext(command);
56 caption = elctx.getName();
57 url = elctx.getFullPath();
61 ElContext elctx = ElContextMap.getContextFromWebTag(command);
63 caption = elctx.getName();
64 url = elctx.getFullPath();
72 caption = I_.get(
"Email");
76 caption = I_.get(
"Call");
80 return switch(command) {
81 case "signup" -> WebActions.of(
"nav:/user/signup").link();
82 case "tellsomeone" -> WebActions.of(
"nav:/user/tellsomeone").link();
88 url =
"https://api.whatsapp.com/send?phone=" + command;
92 url =
"https://t.me/" + command;
95 if(!Strings.isBlank(url)) {
96 return new WebLink(type, caption, url, Strings.isBlank(image, icon));
99 return new WebLink(
null,
null,
null);
◆ of()
static WebActions org.turro.elephant.web.actions.WebActions.of |
( |
String |
action | ) |
|
|
static |
◆ silentExecute()
void org.turro.elephant.web.actions.WebActions.silentExecute |
( |
| ) |
|
Definition at line 102 of file WebActions.java.
105 }
catch (IOException ex) {
106 Logger.getLogger(WebActions.class.getName()).log(Level.SEVERE,
null, ex);
The documentation for this class was generated from the following file: