utm parameters in links to homepage

czech translation improved
This commit is contained in:
Jindra Petřík
2015-02-21 08:33:50 +01:00
parent 17c34d86c4
commit ae06be4703
5 changed files with 14 additions and 8 deletions
@@ -32,19 +32,25 @@ public class LinkLabel extends JLabel {
* The normal text set by the user.
*/
private String text;
private String url;
/**
* Creates a new LinkLabel with the given text.
*
* @param text
*/
public LinkLabel(String text) {
public LinkLabel(String text,String url) {
super(text);
this.url = url;
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
enableEvents(MouseEvent.MOUSE_EVENT_MASK);
}
public LinkLabel(String text) {
this(text,text);
}
/**
* Sets the text of the label.
@@ -80,6 +86,6 @@ public class LinkLabel extends JLabel {
}
protected void clicked() {
View.navigateUrl(getNormalText());
View.navigateUrl(url);
}
}