com.jxcell
Class HyperLink

java.lang.Object
  extended by com.jxcell.HyperLink

public class HyperLink
extends java.lang.Object

This class represents a Hyperlink.


Field Summary
static int kFileAbs
           
static int kFileRel
           
static int kNet
           
static int kRange
           
static int kURLAbs
           
static int kURLRel
           
 
Method Summary
 java.lang.String getLinkString()
          Returns the hyperlink link string.
 java.lang.String getRange()
          Returns the range to which this hyperlink applies.
 java.lang.String getToolTipString()
          Returns the tool tip string.
 int getType()
          Returns the current hyperlink type.
 void setLinkString(java.lang.String link)
          set the hyperlink's link string
 void setRange(int row1, int col1, int row2, int col2)
          set the hyperlink range
 void setType(int type)
          set the hyperlink type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kRange

public static final int kRange
See Also:
Constant Field Values

kURLAbs

public static final int kURLAbs
See Also:
Constant Field Values

kURLRel

public static final int kURLRel
See Also:
Constant Field Values

kFileAbs

public static final int kFileAbs
See Also:
Constant Field Values

kFileRel

public static final int kFileRel
See Also:
Constant Field Values

kNet

public static final int kNet
See Also:
Constant Field Values
Method Detail

getType

public int getType()
Returns the current hyperlink type.

Returns:
an int indicating one of the following hyperlink types: kUnknown kRange kURLAbs kURLRel kFileAbs kFileRel kNet

setType

public void setType(int type)
set the hyperlink type

Parameters:
type - one of the following hyperlink types: kUnknown kRange kURLAbs kURLRel kFileAbs kFileRel kNet

getLinkString

public java.lang.String getLinkString()
Returns the hyperlink link string.

Returns:
a string that is the link

setLinkString

public void setLinkString(java.lang.String link)
set the hyperlink's link string

Parameters:
link - link string

getToolTipString

public java.lang.String getToolTipString()
Returns the tool tip string.

Returns:
the tool tip as a string.

getRange

public java.lang.String getRange()
Returns the range to which this hyperlink applies.

Returns:
a string containing the range reference.

setRange

public void setRange(int row1,
                     int col1,
                     int row2,
                     int col2)
set the hyperlink range

Parameters:
row1 - top row
col1 - left col
row2 - bottom row
col2 - right col