LinkLabel

Paweł Pastuszak edited this page Jun 26, 2016 · 5 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
	}
});
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.