MessageAreaHandler can be registered to the MessageArea by using one of these methods:MessageArea area = this.getMessageArea(); area.addHandler(MyAreaLinkHandler()); area.appendLink("My link", "link1");You can perform in the handler:
public void handleLinkSelection(String linkID) { System.out.println("The link ID: " + linkID)); }
File file =... MessageArea area = this.getMessageArea(); area.addHandler(MyAreaLinkHandler()); area.appendLink("My link", "link1", file);You can perform in the handler:
public void handleLinkSelection(String linkID, Object o) { - if (o instanceof File) { File file = (File)o; System.out.println("The file path: " + file.getPath())); }
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences