org.xwiki.gwt.wysiwyg.client.plugin.link
Enum LinkConfig.LinkType
java.lang.Object
java.lang.Enum<LinkConfig.LinkType>
org.xwiki.gwt.wysiwyg.client.plugin.link.LinkConfig.LinkType
- All Implemented Interfaces:
- Serializable, Comparable<LinkConfig.LinkType>
- Enclosing class:
- LinkConfig
public static enum LinkConfig.LinkType
- extends Enum<LinkConfig.LinkType>
Enumeration type to store the type of link: wiki external link, link to an existing page, link to a new page,
etc.
|
Enum Constant Summary |
ATTACHMENT
|
EMAIL
|
EXTERNAL
Link types: external link (default for any unrecognized link), internal link targeting an existent page,
internal link targeting a new page, link targeting an attached file, external link to an email address. |
NEW_WIKIPAGE
|
WIKIPAGE
|
EXTERNAL
public static final LinkConfig.LinkType EXTERNAL
- Link types: external link (default for any unrecognized link), internal link targeting an existent page,
internal link targeting a new page, link targeting an attached file, external link to an email address.
NEW_WIKIPAGE
public static final LinkConfig.LinkType NEW_WIKIPAGE
WIKIPAGE
public static final LinkConfig.LinkType WIKIPAGE
ATTACHMENT
public static final LinkConfig.LinkType ATTACHMENT
EMAIL
public static final LinkConfig.LinkType EMAIL
values
public static LinkConfig.LinkType[] 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 (LinkConfig.LinkType c : LinkConfig.LinkType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LinkConfig.LinkType 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 name
NullPointerException - if the argument is null
Copyright © 2004-2012 XWiki. All Rights Reserved.