Hyperlink

Inheritance: java.lang.Object, com.aspose.slides.PVIObject

All Implemented Interfaces: com.aspose.slides.IHyperlink, com.aspose.slides.IDOMObject

public class Hyperlink extends PVIObject implements IHyperlink, IDOMObject

Represents a hyperlink.

Constructors

Constructor Description
Hyperlink(String url) Creates an instance of a hyperlink.
Hyperlink(ISlide slide) Creates an instance of a hyperlink which points to specific slide.
Hyperlink(Hyperlink source, String targetFrame, String tooltip, boolean history, boolean stopSoundsOnClick, boolean highlightClick) Creates an instance of a hyperlink using another hyperlink as source, overriding secondary properties.

Methods

Method Description
getNoAction() Returns a special “do nothing” hyperlink.
getMedia() Returns a special “play mediafile” hyperlink.
getNextSlide() Returns a hyperlink to the next slide.
getPreviousSlide() Returns a hyperlink to the previous slide.
getFirstSlide() Returns a hyperlink to the first slide of the presentation.
getLastSlide() Returns a hyperlink to the last slide of the presentation.
getLastVievedSlide() Returns a hyperlink to the last viewed slide.
getEndShow() Returns a hyperlink which ends the show.
getActionType() Returns type of Hyperlink’s action.
getExternalUrl() Specifies the external URL.
getTargetSlide() If the Hyperlink targets specific slide returns this slide.
getTargetFrame() Returns the frame within the parent HTML frameset for the target of the parent hyperlink when one exists.
setTargetFrame(String value) Returns the frame within the parent HTML frameset for the target of the parent hyperlink when one exists.
getTooltip() Returns the string which may be surfaced in a user interface as associated with the parent hyperlink.
setTooltip(String value) Returns the string which may be surfaced in a user interface as associated with the parent hyperlink.
getHistory() Determines whether the target of the parent hyperlink shall be added to a list of viewed hyperlinks when it is invoked.
setHistory(boolean value) Determines whether the target of the parent hyperlink shall be added to a list of viewed hyperlinks when it is invoked.
getHighlightClick() Determines whether the hyperlink should be highlighted on click.
setHighlightClick(boolean value) Determines whether the hyperlink should be highlighted on click.
getStopSoundOnClick() Determines whether the sound should be stopped on hyperlink click.
setStopSoundOnClick(boolean value) Determines whether the sound should be stopped on hyperlink click.
getColorSource() Represents the source of hyperlink color - either styles or portion format.
setColorSource(int value) Represents the source of hyperlink color - either styles or portion format.
equals(Object obj) Determines whether the two Hyperlink instances are equal.
equals(IHyperlink hlink) Determines whether the two Hyperlink instances are equal.
op_Equality(Hyperlink hlink1, Hyperlink hlink2) Tests two hyperlinks for equality.
op_Inequality(Hyperlink hlink1, Hyperlink hlink2) Tests two hyperlinks for inequality.
hashCode() Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
getParent_Immediate()
public Hyperlink(String url)

Creates an instance of a hyperlink.

Parameters:

Parameter Type Description
url java.lang.String Hyperlink URL.
public Hyperlink(ISlide slide)

Creates an instance of a hyperlink which points to specific slide. Note: created hyperlink should be assigned to some object from the same presentation, otherwise link will be saved as NoAction.

Parameters:

Parameter Type Description
slide ISlide Target slide.
public Hyperlink(Hyperlink source, String targetFrame, String tooltip, boolean history, boolean stopSoundsOnClick, boolean highlightClick)

Creates an instance of a hyperlink using another hyperlink as source, overriding secondary properties.

Parameters:

Parameter Type Description
source Hyperlink Source hyperlink
targetFrame java.lang.String Target frame
tooltip java.lang.String Tooltip text
history boolean Determines whether the target of the parent hyperlink shall be added to a list of viewed hyperlinks when it is invoked.
stopSoundsOnClick boolean Determines whether the sound should be stopped on hyperlink click.
highlightClick boolean Determines whether the hyperlink should be highlighted on click.

getNoAction()

public static Hyperlink getNoAction()

Returns a special “do nothing” hyperlink. Read-only Hyperlink.

Returns: Hyperlink

getMedia()

public static Hyperlink getMedia()

Returns a special “play mediafile” hyperlink. Used in AudioFrame and VideoFrame. Read-only Hyperlink.

Returns: Hyperlink

getNextSlide()

public static Hyperlink getNextSlide()

Returns a hyperlink to the next slide. Read-only Hyperlink.

Returns: Hyperlink

getPreviousSlide()

public static Hyperlink getPreviousSlide()

Returns a hyperlink to the previous slide. Read-only Hyperlink.

Returns: Hyperlink

getFirstSlide()

public static Hyperlink getFirstSlide()

Returns a hyperlink to the first slide of the presentation. Read-only Hyperlink.

Returns: Hyperlink

getLastSlide()

public static Hyperlink getLastSlide()

Returns a hyperlink to the last slide of the presentation. Read-only Hyperlink.

Returns: Hyperlink

getLastVievedSlide()

public static Hyperlink getLastVievedSlide()

Returns a hyperlink to the last viewed slide. Read-only Hyperlink.

Returns: Hyperlink

getEndShow()

public static Hyperlink getEndShow()

Returns a hyperlink which ends the show. Read-only Hyperlink.

Returns: Hyperlink

getActionType()

public final int getActionType()

Returns type of Hyperlink’s action. Read-only HyperlinkActionType.

Returns: int

getExternalUrl()

public final String getExternalUrl()

Specifies the external URL. Read-only String.

Returns: java.lang.String

getTargetSlide()

public final ISlide getTargetSlide()

If the Hyperlink targets specific slide returns this slide. Read-only ISlide.

Returns: ISlide

getTargetFrame()

public final String getTargetFrame()

Returns the frame within the parent HTML frameset for the target of the parent hyperlink when one exists. Read/wite String.

Returns: java.lang.String

setTargetFrame(String value)

public final void setTargetFrame(String value)

Returns the frame within the parent HTML frameset for the target of the parent hyperlink when one exists. Read/wite String.

Parameters:

Parameter Type Description
value java.lang.String

getTooltip()

public final String getTooltip()

Returns the string which may be surfaced in a user interface as associated with the parent hyperlink. Read/write String.

Returns: java.lang.String

setTooltip(String value)

public final void setTooltip(String value)

Returns the string which may be surfaced in a user interface as associated with the parent hyperlink. Read/write String.

Parameters:

Parameter Type Description
value java.lang.String

getHistory()

public final boolean getHistory()

Determines whether the target of the parent hyperlink shall be added to a list of viewed hyperlinks when it is invoked. Read/write boolean.

Returns: boolean

setHistory(boolean value)

public final void setHistory(boolean value)

Determines whether the target of the parent hyperlink shall be added to a list of viewed hyperlinks when it is invoked. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getHighlightClick()

public final boolean getHighlightClick()

Determines whether the hyperlink should be highlighted on click. Read/write boolean.

Returns: boolean

setHighlightClick(boolean value)

public final void setHighlightClick(boolean value)

Determines whether the hyperlink should be highlighted on click. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getStopSoundOnClick()

public final boolean getStopSoundOnClick()

Determines whether the sound should be stopped on hyperlink click. Read/write boolean.

Returns: boolean

setStopSoundOnClick(boolean value)

public final void setStopSoundOnClick(boolean value)

Determines whether the sound should be stopped on hyperlink click. Read/write boolean.

Parameters:

Parameter Type Description
value boolean

getColorSource()

public final int getColorSource()

Represents the source of hyperlink color - either styles or portion format. Read/write HyperlinkColorSource.

Returns: int

setColorSource(int value)

public final void setColorSource(int value)

Represents the source of hyperlink color - either styles or portion format. Read/write HyperlinkColorSource.

Parameters:

Parameter Type Description
value int

equals(Object obj)

public boolean equals(Object obj)

Determines whether the two Hyperlink instances are equal.

Parameters:

Parameter Type Description
obj java.lang.Object The Hyperlink to compare with the current Hyperlink.

Returns: boolean - true if the specified Hyperlink is equal to the current Hyperlink; otherwise, false.

public final boolean equals(IHyperlink hlink)

Determines whether the two Hyperlink instances are equal.

Parameters:

Parameter Type Description
hlink IHyperlink The Hyperlink to compare with the current Hyperlink.

Returns: boolean - true if the specified Hyperlink is equal to the current Hyperlink; otherwise, false.

public static boolean op_Equality(Hyperlink hlink1, Hyperlink hlink2)

Tests two hyperlinks for equality.

Parameters:

Parameter Type Description
hlink1 Hyperlink First hyperlink to be tested.
hlink2 Hyperlink Second hyperlink to be tested.

Returns: boolean - true if hyperlinks are equal.

public static boolean op_Inequality(Hyperlink hlink1, Hyperlink hlink2)

Tests two hyperlinks for inequality.

Parameters:

Parameter Type Description
hlink1 Hyperlink First hyperlink to be tested.
hlink2 Hyperlink Second hyperlink to be tested.

Returns: boolean - false if hyperlinks are equal.

hashCode()

public int hashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns: int - Hash code for an URL.

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject