Style Intelligence v12.0

inetsoft.graph.data
Class HRef

java.lang.Object
  extended by inetsoft.graph.data.HRef
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Hyperlink.Ref

public class HRef
extends Object
implements Serializable

Hyperlink.Ref contains the actual hyperlink and the link parameter values.

See Also:
Serialized Form

Constructor Summary
HRef()
          Create an empty hyperlink.
HRef(String link)
          Create a hyperlink def.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another Hyperlink.Ref.
 String getLink()
          Get the hyperlink.
 Object getParameter(String name)
          Get the value for the parameter.
 int getParameterCount()
          Get the number of parameters defined for this link.
 Enumeration getParameterNames()
          Get all parameter names.
 String getTargetFrame()
          Get the hyperlink target frame
 String getToolTip()
          Get the tooltip.
 void removeAllParameters()
          Remove all parameter values.
 void removeParameter(String name)
          Remove a parameter field.
 void setLink(String link)
          Set the hyperlink.
 void setParameter(String name, Object data)
          Set the value for the parameter.
 void setTargetFrame(String targetFrame)
          Set the hyperlink target frame.
 void setToolTip(String tip)
          Set the tooltip.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HRef

public HRef()
Create an empty hyperlink. The setLink() must be called to set the hyperlink before it can be used.


HRef

public HRef(String link)
Create a hyperlink def.

Parameters:
link - the hyperlink href string.
Method Detail

setLink

public void setLink(String link)
Set the hyperlink. It could be a report name (path) or a URL.

Parameters:
link - for Web URL, the link must be the full URL including the protocol. If the link is to another report, it should be the report path as registered in report server.

getLink

public String getLink()
Get the hyperlink.


setTargetFrame

public void setTargetFrame(String targetFrame)
Set the hyperlink target frame. It is only used in DHTML viewer

Parameters:
targetFrame - is the window name for hyperlink

getTargetFrame

public String getTargetFrame()
Get the hyperlink target frame


setToolTip

public void setToolTip(String tip)
Set the tooltip. If tooltip is set, the tip is shown when mouse moves into the hyperlink.


getToolTip

public String getToolTip()
Get the tooltip.


getParameterNames

public Enumeration getParameterNames()
Get all parameter names.


getParameterCount

public int getParameterCount()
Get the number of parameters defined for this link.


getParameter

public Object getParameter(String name)
Get the value for the parameter.


setParameter

public void setParameter(String name,
                         Object data)
Set the value for the parameter.

Parameters:
name - parameter name.
data - parameter value.

removeParameter

public void removeParameter(String name)
Remove a parameter field.

Parameters:
name - parameter name.

removeAllParameters

public void removeAllParameters()
Remove all parameter values.


equals

public boolean equals(Object obj)
Check if equals another Hyperlink.Ref.

Overrides:
equals in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.