public class WebUrlButton extends Button
| Modifier and Type | Field and Description |
|---|---|
protected String |
title
The button title.
|
| Constructor and Description |
|---|
WebUrlButton(String title,
String url)
Default constructor.
|
WebUrlButton(String title,
String url,
WebViewHeightRatioType ratioType)
Instantiates a new web url button.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getTitle()
Gets the title.
|
String |
getUrl()
Gets the url.
|
int |
hashCode() |
void |
setTitle(String title)
Sets the title.
|
void |
setUrl(String url)
Sets the url.
|
String |
toString() |
@Size(max=20) @NotBlank protected String title
public WebUrlButton(String title, String url)
ButtonFactory. It checks that the title is not null, not empty
and shorter than 20 characters and that the URL is not empty. The button
type is set to ButtonType.WEB_URL.title - the button title. It can't be null or empty and has to be
shorter than 20 characters.url - the button URL. It can't be null or empty.public WebUrlButton(String title, String url, WebViewHeightRatioType ratioType)
title - the titleurl - the urlratioType - the ratio typepublic String getUrl()
public void setUrl(String url)
url - the new urlpublic String getTitle()
public void setTitle(String title)
title - the new titleCopyright © 2017 BotMill. All rights reserved.