public class Credits extends AbstractConfigurationObject
| Constructor and Description |
|---|
Credits() |
Credits(Boolean enabled) |
Credits(String text) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getEnabled() |
String |
getHref() |
Position |
getPosition() |
String |
getText() |
void |
setEnabled(Boolean enabled)
Whether to show the credits text.
|
void |
setHref(String href)
The URL for the credits label.
|
void |
setPosition(Position position)
Position configuration for the credits label.
|
void |
setText(String text)
The text for the credits label.
|
void |
setUnsafeHref(String href)
Sets the URL for the credits label without validating its scheme.
|
public Credits()
public Credits(Boolean enabled)
public Credits(String text)
public Boolean getEnabled()
setEnabled(Boolean)public void setEnabled(Boolean enabled)
Defaults to: true
public String getHref()
setHref(String)public void setHref(String href)
Defaults to: http://www.highcharts.com
IllegalArgumentException - if href uses a scheme that is not considered safe
according to
DeploymentConfiguration.getUrlSafeSchemes(); see
setUnsafeHref(String) and the
configuration
propertysetUnsafeHref(String)public void setUnsafeHref(String href)
Unlike setHref(String), this method does not reject URLs based
on the configuration. Use it
only for URLs that are fully under your control and known to be safe.
Passing untrusted input here can expose the application to cross-site
scripting (XSS) attacks.
href - the URL for the credits labelsetHref(String)public Position getPosition()
setPosition(Position)public void setPosition(Position position)
public String getText()
setText(String)public void setText(String text)
Defaults to: Highcharts.com
Copyright © 2026. All rights reserved.