|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.LinkInfo
public class LinkInfo
A simple String-based attribute model for hyperlinks.
Field Summary | |
---|---|
static java.lang.String |
CIRCLE
HTML image map shape specifier for circle areas. |
static java.lang.String |
HTML_ACCESSKEY
HTML element attribute name accesskey . |
static java.lang.String |
HTML_ALT
HTML generic element attribute name alt . |
static java.lang.String |
HTML_COORDINATES
HTML area element attribute name coords . |
static java.lang.String |
HTML_REFERENCE
HTML a element attribute name href . |
static java.lang.String |
HTML_SHAPE
HTML area element attribute name shape . |
static java.lang.String |
HTML_TABINDEX
HTML element attribute name tabindex . |
static java.lang.String |
HTML_TITLE
HTML generic element attribute name title . |
static java.lang.String |
HTML_TOOLTIP
Deprecated. Use HTML_TITLE and/or HTML_ALT instead. |
static java.lang.String |
POLYGON
HTML image map shape specifier for polygonal areas. |
static java.lang.String |
RECT
HTML image map shape specifier for rectangular areas. |
static java.lang.String |
SWF_TARGET
Target attribute for links in SWF files This should be the name of a specific window or frame or one of "_self", "_blank", "_parent" or "_top". |
static java.lang.String |
SWF_URL
Url attribute for links in SWF files |
static java.lang.String |
XLINK_REFERENCE
|
Constructor Summary | |
---|---|
LinkInfo()
Constructs an empty LinkInfo. |
Method Summary | |
---|---|
java.util.Iterator |
attributes()
Returns an iterator over the set of attribute names in this LinkInfo. |
void |
clear()
Removes all attributes from this LinkInfo. |
java.lang.String |
getAttribute(java.lang.String name)
Returns the value of attribute name . |
boolean |
hasAttribute(java.lang.String name)
Returns true if the attribute name has been set. |
boolean |
hasAttributes()
Returns true if any attributes have been set. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Sets the attribute name with value value . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XLINK_REFERENCE
public static final java.lang.String HTML_ACCESSKEY
accesskey
.
public static final java.lang.String HTML_COORDINATES
area
element attribute name coords
.
public static final java.lang.String HTML_REFERENCE
a
element attribute name href
.
public static final java.lang.String HTML_SHAPE
area
element attribute name shape
.
public static final java.lang.String HTML_TABINDEX
tabindex
.
public static final java.lang.String HTML_TOOLTIP
HTML_TITLE
and/or HTML_ALT
instead.alt
.
public static final java.lang.String HTML_ALT
alt
.
public static final java.lang.String HTML_TITLE
title
.
public static final java.lang.String RECT
public static final java.lang.String CIRCLE
public static final java.lang.String POLYGON
public static final java.lang.String SWF_URL
public static final java.lang.String SWF_TARGET
This should be the name of a specific window or frame or one of "_self", "_blank", "_parent" or "_top".
Constructor Detail |
---|
public LinkInfo()
Method Detail |
---|
public java.lang.String getAttribute(java.lang.String name)
name
.
name
-
name
;
or null
if name
has not been setpublic boolean hasAttributes()
true
if any attributes have been set.
true
if any attributes have been set;
false
otherwisepublic boolean hasAttribute(java.lang.String name)
true
if the attribute name
has been set.
name
-
true
if the attribute name
has been set;
false
otherwisepublic void setAttribute(java.lang.String name, java.lang.String value)
name
with value value
.
name
- value
- public java.util.Iterator attributes()
public void clear()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |