Enum DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle
- java.lang.Object
-
- java.lang.Enum<DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle>
-
- com.vaadin.flow.component.spreadsheet.DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle>
- Enclosing class:
- DefaultHyperlinkCellClickHandler
public static enum DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle extends Enum<DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle>
Choose how external links should open
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NewTab
Note: for backward compatibility this opens in a new window/tab, but to do so it usesPage.open(String, String)
which is deprecated, and in most browsers is blocked by popup blocking privacy settings.Replace
replaces the contents of the current window/tab usingPage.setLocation(String)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
openExternalLink(String address)
open external linkstatic DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NewTab
public static final DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle NewTab
Note: for backward compatibility this opens in a new window/tab, but to do so it usesPage.open(String, String)
which is deprecated, and in most browsers is blocked by popup blocking privacy settings.
-
Replace
public static final DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle Replace
replaces the contents of the current window/tab usingPage.setLocation(String)
-
-
Method Detail
-
values
public static DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle c : DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultHyperlinkCellClickHandler.HyperlinkOpenStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
openExternalLink
public abstract void openExternalLink(String address)
open external link- Parameters:
address
-
-
-