public class RedirectField extends Field implements Translatable
Field.Type| Constructor and Description |
|---|
RedirectField(String name,
URI redirectUrl,
TranslatableMessage redirectMessage)
Creates a new field which facilitates redirection of the user
to another page.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRedirectUrl()
Returns the URL to which the user should be redirected.
|
TranslatableMessage |
getTranslatableMessage()
Returns a message which can be translated using a translation service,
consisting of a translation key and optional set of substitution
variables.
|
getName, getOptions, getType, setName, setOptions, setTypepublic RedirectField(String name, URI redirectUrl, TranslatableMessage redirectMessage)
name - The name of this field.redirectUrl - The URL to which the user should be redirected.redirectMessage - The translatable message that should be displayed for the user while
the browser redirects.public String getRedirectUrl()
public TranslatableMessage getTranslatableMessage()
TranslatablegetTranslatableMessage in interface TranslatableCopyright © 2020. All rights reserved.