manageClipboard(true)
method must be called to be able to show this additional action. For example:public BasicTutorialMDI() { super("BasicTutorialMDI"); this.initConfiguration(); SimpleMenuFactory() mfactory = new SimpleMenuFactory(); super.preparePanels(4, true, false, mfactory); this.getMessageArea().manageClipBoard(true); }
area.append("the red crossed text in bold", "red", MessageLogger.DEFAULT_FONT_SIZE, MessageLogger.BOLD & MessageLogger.CROSSED);
public class MyApplication extends AbstractMDIApplication { public MyApplication() { super("My Application"); // create the menus with the Application menu factory mfactory = new SimpleMenuFactory(); super.preparePanels(4, true, true, mfactory); // set the size of the Application window this.setSize(500, 500); this.message.setHandleRightClick(true); }
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