Package org.berlin.patterns.swing.app.gui.Components

Examples of org.berlin.patterns.swing.app.gui.Components.ITextArea


                } // End of try - catch BLOCK READ PROP FILE //
            } // End of the if - file exists //       
            final GlobalConfiguration globalConf = new GlobalConfiguration().load(GlobalConfiguration.PATH);
            globalConf.loadFromDynamicScript(propsLocalFile);                       
            // End of load conf //           
            final ITextArea textArea = new OutputTextArea(ta);
            textArea.defaultSettings();
            ta.setEditable(false);
            ((BasicWindow) this.getBasicWindow()).setOutputTextArea(textArea);
            textArea.setText("System Loaded - " + Version.num + (new Date()) + "\nWith action.command set to help, hit the execute button for help.\nAlso visit browser at http://localhost:7181\nParseLogs - the premier way to scan for errors and data in log files\n" + globalConf.getTopMessage() + "\n");     
            return this;
        } // End of the method //
View Full Code Here


         * Method withInputCommandArea.
         * @return WindowBuilder
         */
        public WindowBuilder withInputCommandArea() {           
            final JTextArea ta = new JTextArea("");
            final ITextArea textArea = new CommandInputArea(ta);                                  
            textArea.defaultSettings();
           
            final Font font = new Font("Courier New", Font.BOLD, 14);
            ta.setFont(font);                                              
            ((BasicWindow) this.getBasicWindow()).setInputTextArea(textArea);
           
            // Add initial input //
            final StringBuffer buf = new StringBuffer();
            buf.append("###############\n");
            buf.append("# Log Script DSL/Doman Language Input (property conf format)\n");
            buf.append("# Modify action.comand=XXXXX and then click execute to invoke a command\n");
            buf.append("#        action.comand=help  for standard commands\n");
            buf.append("###############\n\n");       
            buf.append("#unzipArchiveFiles=false\n\n");           
            buf.append("user.searchTerm=Exception\n");
            // Slightly editable
            buf.append("action.command=help\n");
            // Here is an example of some other command :
            //buf.append("action.command=errorTimeoutDownload\n");                      
            textArea.setText(buf.toString());                                                                              
            return this;
        }          
View Full Code Here

TOP

Related Classes of org.berlin.patterns.swing.app.gui.Components.ITextArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.