-
Notifications
You must be signed in to change notification settings - Fork 130
LinkLabel
Pawel Pastuszak edited this page Dec 7, 2018
·
6 revisions
LinkLabel (source) allows to create label with clickable link. Links can have custom text. By default clicking link will open it in default browser, this can be changed by settings label listener. LinkLabel
was added in VisUI 0.7.2.
//LinkLabel with no custom text, will be just displayed as link
new LinkLabel("https://github.com/kotcrab/viseditor")).row();
//LinkLabel with custom text
new LinkLabel("kotcrab blog", "http://kotcrab.com")).row();
If you want to do something else than opening browser after clicking on label, you can set custom listener:
linkLabel.setListener(new LinkLabelListener() {
@Override
public void clicked (String url) {
//do something here
}
});
See README for VisUI introduction.