int parameter specifying the message area type is an OR of the following elements:MessageAreaType.MESSAGEAREA_GLOBAL value will create one message area global to all tabsMessageAreaType.MESSAGEAREA_PER_TAB | MessageAreaType.MESSAGEAREA_EDITABLE_GLOBAL value will create one editable message area specific for each tab. Each message area will be editablleMessageAreaType.MESSAGEAREA_PER_TAB | MessageAreaType.MESSAGEAREA_SAVE_AS_TEXT | MessageAreaType.MESSAGEAREA_EDITABLE_PER_TAB value will create one message area global specific for each tab. The message area for a tab will be editable if the public class TestMDIApplication extends AbstractMDIApplication { public TestMDIApplication() { super("TestMDIApplication"); this.initConfiguration(); mfactory = new SimpleMenuFactory(); super.preparePanels(4, MessageAreaType.MESSAGEAREA_GLOBAL, true, true, mfactory); this.setSize(500, 500); this.getStatusBar().setMessage("Hello World!"); } }
public class TestMDIApplication extends AbstractMDIApplication { public TestMDIApplication() { super("TestMDIApplication"); this.initConfiguration(); mfactory = new SimpleMenuFactory(); super.preparePanels(4, MessageAreaType.MESSAGEAREA_PER_TAB, true, true, mfactory); this.setSize(500, 500); this.getStatusBar().setMessage("Hello World!"); } }
public class TestMDIApplication extends AbstractMDIApplication { public TestMDIApplication() { super("TestMDIApplication"); this.initConfiguration(); mfactory = new SimpleMenuFactory(); super.preparePanels(4, MessageAreaType.MESSAGEAREA_GLOBAL | MessageAreaType.MESSAGEAREA_EDITABLE_GLOBAL, true, true, mfactory); this.setSize(500, 500); this.getStatusBar().setMessage("Hello World!"); this.getMessageArea().addHandler(new MessageAreaHandler() { @Override public void handleEditText(String theText) { System.out.println(theText); } }); } }
public class TestMDIApplication extends AbstractMDIApplication { public TestMDIApplication() { super("TestMDIApplication"); this.initConfiguration(); mfactory = new SimpleMenuFactory(); super.preparePanels(4, MessageAreaType.MESSAGEAREA_PER_TAB | MessageAreaType.MESSAGEAREA_EDITABLE_PER_TAB, true, true, mfactory); this.setSize(500, 500); this.getStatusBar().setMessage("Hello World!"); } }
Copyright 2006-2023 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences