Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.components
Class URILink

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.util.components.URILink

public class URILink
extends Object

Link class based on URIs

Author:
Patrick Lieb

Constructor Summary
URILink(org.eclipse.swt.widgets.Composite parent, int style, URI uri, String text)
          Creates a Link based on an URI
 
Method Summary
 org.eclipse.swt.widgets.Link getLink()
           
 void refresh(URI uri)
          Refresh the UriLink with the given URI
 void setLayoutData(Object layoutData)
           
 void setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URILink

public URILink(org.eclipse.swt.widgets.Composite parent,
               int style,
               URI uri,
               String text)
Creates a Link based on an URI

Parameters:
parent - a composite control which will be the parent of the new instance (cannot be null)
style - the style of control to construct
uri - the URI of the file
text - the text which should be displayed
Method Detail

refresh

public void refresh(URI uri)
Refresh the UriLink with the given URI

Parameters:
uri - the URI of the of the file

setLayoutData

public void setLayoutData(Object layoutData)
Parameters:
layoutData - the new layout data for the receiver
See Also:
Control.setLayoutData(Object)

getLink

public org.eclipse.swt.widgets.Link getLink()
Returns:
the instance of a link

setText

public void setText(String text)
Parameters:
text - the text to set

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d