Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.hyperlink
Class URLHyperlink

java.lang.Object
  extended by 
org.eclipse.jface.text.hyperlink.URLHyperlink
All Implemented Interfaces:
IHyperlink

public class URLHyperlink
extends Object
implements IHyperlink

URL hyperlink.

Since:
3.1

Constructor Summary
URLHyperlink ( IRegion region, String urlString)
          Creates a new URL hyperlink.
 
Method Summary
  IRegion getHyperlinkRegion ()
          The region covered by this type of hyperlink.
  String getHyperlinkText ()
          Optional text for this hyperlink.
  String getTypeLabel ()
          Optional label for this type of hyperlink.
  String getURLString ()
          Returns the URL string of this hyperlink.
 void open ()
          Opens the given hyperlink.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLHyperlink

public URLHyperlink(
IRegion region,
                    
String urlString)
Creates a new URL hyperlink.

Parameters:
region - the region
urlString - the URL string
Method Detail

getHyperlinkRegion

public 
IRegion getHyperlinkRegion()
Description copied from interface: IHyperlink
The region covered by this type of hyperlink.

Specified by:
getHyperlinkRegion in interface IHyperlink
Returns:
the hyperlink region

open

public void open()
Description copied from interface: IHyperlink
Opens the given hyperlink.

Specified by:
open in interface IHyperlink

getTypeLabel

public 
String getTypeLabel()
Description copied from interface: IHyperlink
Optional label for this type of hyperlink.

This type label can be used by IHyperlinkPresenters which show several hyperlinks at once.

Specified by:
getTypeLabel in interface IHyperlink
Returns:
the type label or null if none

getHyperlinkText

public 
String getHyperlinkText()
Description copied from interface: IHyperlink
Optional text for this hyperlink.

This can be used in situations where there are several targets for the same hyperlink location.

Specified by:
getHyperlinkText in interface IHyperlink
Returns:
the text or null if none

getURLString

public 
String getURLString()
Returns the URL string of this hyperlink.

Returns:
the URL string
Since:
3.2

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire