public class

BalloonPopupButton

extends Object
java.lang.Object
   ↳ com.carto.vectorelements.BalloonPopupButton

Class Overview

A button that can be used to add interactivity to balloon popups.

Summary

Public Constructors
BalloonPopupButton(BalloonPopupButtonStyle style, String text)
Constructs a BalloonPopupButton object with the specified style and text.
Public Methods
synchronized void delete()
BalloonPopupButtonStyle getStyle()
Returns the style of this button.
Variant getTag()
Returns the user-defined tag associated with the button.
String getText()
Returns the text of this button.
void setTag(Variant tag)
Sets the user-defined tag associated with the button.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BalloonPopupButton (BalloonPopupButtonStyle style, String text)

Constructs a BalloonPopupButton object with the specified style and text.

Parameters
style The style that defines what this button looks like.
text The text for this button.

Public Methods

public synchronized void delete ()

public BalloonPopupButtonStyle getStyle ()

Returns the style of this button.

Returns
  • The style that defines what this button looks like.

public Variant getTag ()

Returns the user-defined tag associated with the button.

Returns
  • The user-defined tag value. By default the tag is empty.

public String getText ()

Returns the text of this button.

Returns
  • The text of this button.

public void setTag (Variant tag)

Sets the user-defined tag associated with the button.

Parameters
tag The new user-defined tag value.