Search this API

y.io
Class LinkInfo

java.lang.Object
  extended by y.io.LinkInfo

public class LinkInfo
extends java.lang.Object

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

XLINK_REFERENCE

public static final java.lang.String XLINK_REFERENCE
See Also:
Constant Field Values

HTML_ACCESSKEY

public static final java.lang.String HTML_ACCESSKEY
HTML element attribute name accesskey.

See Also:
Constant Field Values

HTML_COORDINATES

public static final java.lang.String HTML_COORDINATES
HTML area element attribute name coords.

See Also:
Constant Field Values

HTML_REFERENCE

public static final java.lang.String HTML_REFERENCE
HTML a element attribute name href.

See Also:
Constant Field Values

HTML_SHAPE

public static final java.lang.String HTML_SHAPE
HTML area element attribute name shape.

See Also:
Constant Field Values

HTML_TABINDEX

public static final java.lang.String HTML_TABINDEX
HTML element attribute name tabindex.

See Also:
Constant Field Values

HTML_TOOLTIP

public static final java.lang.String HTML_TOOLTIP
Deprecated. Use HTML_TITLE and/or HTML_ALT instead.
HTML generic element attribute name alt.

See Also:
Constant Field Values

HTML_ALT

public static final java.lang.String HTML_ALT
HTML generic element attribute name alt.

See Also:
Constant Field Values

HTML_TITLE

public static final java.lang.String HTML_TITLE
HTML generic element attribute name title.

See Also:
Constant Field Values

RECT

public static final java.lang.String RECT
HTML image map shape specifier for rectangular areas.

See Also:
Constant Field Values

CIRCLE

public static final java.lang.String CIRCLE
HTML image map shape specifier for circle areas.

See Also:
Constant Field Values

POLYGON

public static final java.lang.String POLYGON
HTML image map shape specifier for polygonal areas.

See Also:
Constant Field Values

SWF_URL

public static final java.lang.String SWF_URL
Url attribute for links in SWF files

See Also:
Constant Field Values

SWF_TARGET

public static final 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".

See Also:
Constant Field Values
Constructor Detail

LinkInfo

public LinkInfo()
Constructs an empty LinkInfo.

Method Detail

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Returns the value of attribute name.

Parameters:
name -
Returns:
the value of name; or null if name has not been set

hasAttributes

public boolean hasAttributes()
Returns true if any attributes have been set.

Returns:
true if any attributes have been set; false otherwise

hasAttribute

public boolean hasAttribute(java.lang.String name)
Returns true if the attribute name has been set.

Parameters:
name -
Returns:
true if the attribute name has been set; false otherwise

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)
Sets the attribute name with value value.

Parameters:
name -
value -

attributes

public java.util.Iterator attributes()
Returns an iterator over the set of attribute names in this LinkInfo.

Returns:
an iterator over the set of attribute names in this LinkInfo.

clear

public void clear()
Removes all attributes from this LinkInfo.


© Copyright 2000-2018,
yWorks GmbH.
All rights reserved.