public class Linker extends AbstractContexed implements MessageEditLinker
conn
Constructor and Description |
---|
Linker(AppContext conn,
MessageHandler h) |
Modifier and Type | Method and Description |
---|---|
void |
addButton(ContentBuilder cb,
EditAction action,
java.util.List<java.lang.String> path,
java.lang.String text)
Add a single button form to a HtmlBuilder page that invokes the named
operation on the encapsulated Message
|
void |
addLink(ContentBuilder builder,
java.util.List<java.lang.String> args,
java.lang.String file,
java.lang.String text)
Create a HTML link to the associated message or part of the message.
|
MessageProvider |
getMessageProvider()
Get the MessageProvider associated with this object
|
getContext, getLogger, resetLogger
public Linker(AppContext conn, MessageHandler h)
public void addButton(ContentBuilder cb, EditAction action, java.util.List<java.lang.String> path, java.lang.String text)
MessageEditLinker
addButton
in interface MessageEditLinker
public void addLink(ContentBuilder builder, java.util.List<java.lang.String> args, java.lang.String file, java.lang.String text)
MessageLinker
addLink
in interface MessageLinker
builder
- HtmlBuilder to add link toargs
- args identifying part of message to accessfile
- filename to add to URLtext
- text of linkpublic MessageProvider getMessageProvider() throws java.lang.Exception
MessageLinker
getMessageProvider
in interface MessageLinker
java.lang.Exception