eu.esdihumboldt.hale.ui.util.components
Class URILink
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 constructuri
- the URI of the filetext
- the text which should be displayed
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
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d